comp.lang.ada
 help / color / mirror / Atom feed
* gnat 4.1.0 stack overflow on Fedora Core 5
@ 2006-04-23 16:23 brian.b.mcguinness
  2006-04-23 18:02 ` Jeffrey Creem
  2006-04-23 18:03 ` Björn Persson
  0 siblings, 2 replies; 4+ messages in thread
From: brian.b.mcguinness @ 2006-04-23 16:23 UTC (permalink / raw)


I made the mistake of upgrading from Fedora Core 4 to Fedora Core 5 and
now a number of programs are broken, including gnat:

# cat zz.adb
with Ada.Text_IO;
use  Ada.Text_IO;

procedure zz is
  N : Natural;
begin
  N := Natural'Last;

  Put_Line ("Natural ranges from 0 to " & Natural'Image (N));
end zz;

# gnatmake zz.adb
gcc -c zz.adb
+===========================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.

zz.adb

compilation abandoned
gnatmake: "zz.adb" compilation error

# uname -a
Linux localhost.localdomain 2.6.16-1.2096_FC5 #1 Wed Apr 19 05:14:36
EDT 2006 i686 i686 i386 GNU/Linux




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gnat 4.1.0 stack overflow on Fedora Core 5
  2006-04-23 16:23 gnat 4.1.0 stack overflow on Fedora Core 5 brian.b.mcguinness
@ 2006-04-23 18:02 ` Jeffrey Creem
  2006-04-24 12:15   ` brian.b.mcguinness
  2006-04-23 18:03 ` Björn Persson
  1 sibling, 1 reply; 4+ messages in thread
From: Jeffrey Creem @ 2006-04-23 18:02 UTC (permalink / raw)


brian.b.mcguinness@lmco.com wrote:
> I made the mistake of upgrading from Fedora Core 4 to Fedora Core 5 and
> now a number of programs are broken, including gnat:
> 
>

This is most likely due to the default state of the exec shield.

Check out this discussion (it has pointers into the GCC forums as well)

http://sourceforge.net/forum/forum.php?thread_id=1479304&forum_id=40858

Original submitter on that thread is still convinced there is a bug. I 
am not so sure I would call it a bug but I understand his basic premise.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gnat 4.1.0 stack overflow on Fedora Core 5
  2006-04-23 16:23 gnat 4.1.0 stack overflow on Fedora Core 5 brian.b.mcguinness
  2006-04-23 18:02 ` Jeffrey Creem
@ 2006-04-23 18:03 ` Björn Persson
  1 sibling, 0 replies; 4+ messages in thread
From: Björn Persson @ 2006-04-23 18:03 UTC (permalink / raw)


brian.b.mcguinness@lmco.com skrev:
> I made the mistake of upgrading from Fedora Core 4 to Fedora Core 5 and
> now a number of programs are broken, including gnat:

Updating Fedora 4 with the latest security fixes would also have broken 
Gnat. The immediate workaround is "echo 9 > 
/proc/sys/kernel/exec-shield". To make the workaround survive a reboot, 
put "kernel.exec-shield = 9" in /etc/sysctl.conf. See 
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=187853 for the details.

-- 
Bj�rn Persson                              PGP key A88682FD
                    omb jor ers @sv ge.
                    r o.b n.p son eri nu



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gnat 4.1.0 stack overflow on Fedora Core 5
  2006-04-23 18:02 ` Jeffrey Creem
@ 2006-04-24 12:15   ` brian.b.mcguinness
  0 siblings, 0 replies; 4+ messages in thread
From: brian.b.mcguinness @ 2006-04-24 12:15 UTC (permalink / raw)


Ok, thanks to all for the help.

--- Brian




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-24 12:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-23 16:23 gnat 4.1.0 stack overflow on Fedora Core 5 brian.b.mcguinness
2006-04-23 18:02 ` Jeffrey Creem
2006-04-24 12:15   ` brian.b.mcguinness
2006-04-23 18:03 ` Björn Persson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox