Bug 146200

Summary: x86_64 RHE3 internal error: segmentation fault when compiling ada with gcc
Product: Red Hat Enterprise Linux 3 Reporter: Jack Pogue <pogue.iii>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-01-26 17:15:00 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 Jack Pogue 2005-01-25 22:26:14 UTC
Description of problem:
Compiling a simple ada "hello world" results in error...

+========================GNAT BUG DETECTED========================+
| 3.2.3 20030502 (3.2.3-13) (x86_64-redhat-linux-gnu) GCC error:  |
| internal error: Segmentation fault                              |
| No source file position information available                   |
| Please submit a bug report, see http://gcc.gnu.org/bugs.html    |
| 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

hello.adb

compilation abandoned

-----------------------------

I removed and recompiled gcc-gnat and the error remains.
The hello.adb file looks like....

with Ada.Text_IO; use Ada.Text_IO; procedure Hello is begin Put_Line 
("Hello WORLD!"); end Hello;

and this was compiled using

gcc -c hello.adb


lastly, I already sent the bug report to gcc bugzilla and they said 
to send the bug report to redhat.


Version-Release number of selected component (if applicable):
3.2.3-20  (although the error output says 3.2.3-13)

How reproducible:
Every time

Steps to Reproduce:
1.Install/compile default gcc-gnat
2.Create the hello.adb file shown above
3.type gcc -c hello.adb
  
Actual results:
+========================GNAT BUG DETECTED========================+
| 3.2.3 20030502 (3.2.3-13) (x86_64-redhat-linux-gnu) GCC error:  |
| internal error: Segmentation fault                              |
| No source file position information available                   |
| Please submit a bug report, see http://gcc.gnu.org/bugs.html    |
| 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

hello.adb

compilation abandoned


Expected results:
The file should have compiled

Additional info:

Comment 1 Jakub Jelinek 2005-01-26 10:17:26 UTC
What kernel are you using?
The early RHEL3 kernels did not grok PT_GNU_STACK markings properly, so you
needed booting with noexec=off noexec32=off.  This got fixed either in U2, or in
U3, not sure ATM.

Comment 2 Jack Pogue 2005-01-26 17:03:59 UTC
Kernel: 2.4.21-4.ELsmp





Comment 3 Jakub Jelinek 2005-01-26 17:15:00 UTC
Yeah, that's too old.
So you either need to reboot with noexec=off noexec32=off kernel command line
arguments, or up2date the box to U4 including kernel and reboot into that kernel.