Bug 189289

Summary: gcc (gcc-gnat) fails with "stack overflow" error when compiling any ADA program
Product: [Fedora] Fedora Reporter: James Hunt <jamesodhunt>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-04-18 20:52:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description James Hunt 2006-04-18 20:34:07 UTC
Description of problem:

The GCC "GNAT" Ada translator fails to compile any ADA source files.

Version-Release number of selected component (if applicable):

gcc-gnat-4.1.0-3
gcc-4.1.0-3

How reproducible:

Always.

Steps to Reproduce:
1. create a simple ".adb" file, for example put the lines below in file "hello.adb":

-------------------------------
with Ada.Text_IO; use Ada.Text_IO;
procedure Hello is
begin
  Put_Line("hello, world");
end Hello;

-------------------------------
2. Run, "gcc -c hello.adb"
  
Actual results:

+===========================GNAT BUG DETECTED==============================+
| 4.1.0 20060304 (Red Hat 4.1.0-3) (i386-redhat-linux-gnu) Storage_Error stack
overflow (or erroneous memory access)|
| Error detected at a-tags.adb:448:7                                       |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| Use a subject line meaningful to you and us to track the bug.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact gcc or gnatmake command that you entered.              |
| Also include sources listed below in gnatchop format                     |
| (concatenated together with no headers between files).                   |
+==========================================================================+

Please include these source files with error report
Note that list may not be accurate in some cases, 
so please double check that the problem can still 
be reproduced with the set of files listed.

hello.adb

compilation abandoned


Expected results:

No errors.

Additional info:

gcc-gnat-4.1.0-3
gcc-4.1.0-3

Comment 1 Jakub Jelinek 2006-04-18 20:52:32 UTC

*** This bug has been marked as a duplicate of 187853 ***