Bug 111264

Summary: ada compiler crashes on even hello-world
Product: Red Hat Enterprise Linux 3 Reporter: Frank Ch. Eigler <fche>
Component: kernelAssignee: Jim Paradis <jparadis>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: jason, peterm, ryan
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: 2004-05-12 01:07:50 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:
Bug Depends On:    
Bug Blocks: 107562    

Description Frank Ch. Eigler 2003-12-01 15:58:20 UTC
gcc-gnat-3.2.3-24, when building the hello-world ada source "foo.ads"

    with Text_Io; use Text_Io;
 
    procedure hello is
    begin
       put ("Hello world!");
    end hello;

incurs a compiler SEGV.

Comment 1 Jakub Jelinek 2003-12-01 17:00:32 UTC
If the kernel uses non-executable stack by default on AMD64 and doesn't honor
PT_GNU_STACK marking (only FC1+ kernel honors it AFAIK), it is a kernel bug.
Ada certainly uses trampolines, as well as several other programs.

You might want to try noexec=off noexec32=off kernel options.

Comment 2 Jim Paradis 2003-12-16 20:21:18 UTC
The noexec=off option does indeed eliminate the SEGV.  I'm now looking
into now invasive it would be to support PT_GNU_STACK for RHEL3-U2.


Comment 3 Jim Paradis 2003-12-23 20:53:42 UTC
I've got a patch that fixes this; now under code review.



Comment 4 Jim Paradis 2004-01-19 20:24:03 UTC
Patch slated for U2

Comment 5 Suzanne Hillman 2004-02-17 21:13:59 UTC
*** Bug 115282 has been marked as a duplicate of this bug. ***

Comment 6 John Flanagan 2004-05-12 01:07:50 UTC
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2004-188.html