Bug 111264 - ada compiler crashes on even hello-world
Summary: ada compiler crashes on even hello-world
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: kernel
Version: 3.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jim Paradis
QA Contact: Brian Brock
URL:
Whiteboard:
: 115282 (view as bug list)
Depends On:
Blocks: 107562
TreeView+ depends on / blocked
 
Reported: 2003-12-01 15:58 UTC by Frank Ch. Eigler
Modified: 2013-08-06 01:03 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-05-12 01:07:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2004:188 0 normal SHIPPED_LIVE Important: Updated kernel packages available for Red Hat Enterprise Linux 3 Update 2 2004-05-11 04:00:00 UTC

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



Note You need to log in before you can comment on or make changes to this bug.