comp.lang.ada
 help / color / mirror / Atom feed
From: David Starner <dvdeug@x8b4e53cd.dhcp.okstate.edu>
Subject: Re: reasons for segmentation faults on linux
Date: 28 Nov 2001 22:31:41 GMT
Date: 2001-11-28T22:31:41+00:00	[thread overview]
Message-ID: <9u3okd$9ic2@news.cis.okstate.edu> (raw)
In-Reply-To: slrna0a2ch.3dp.randhol+abuse@kiuk0156.chembio.ntnu.no

On Wed, 28 Nov 2001 15:59:45 +0000 (UTC), Preben Randhol <randhol+abuse@pvv.org> wrote:
> procedure A is
> begin
>    A;
> end A;
> 
> % gnatmake a.adb 
> gnatgcc -c a.adb
> a.adb:3:04: warning: possible infinite aursion
> a.adb:3:04: warning: Storage_Error may be raised at run time
> gnatbind -x a.ali
> gnatlink a.ali
> 
> % ./a
> Segmentation fault
> 
> Why isn't Storage_Error raised? GNAT 3.13p on GNU/Debian Linux.

If I remember the GNAT RM/UG right, trapping stack overflow is
infeasable on Linux system, so by default it doesn't attempt it. There
are switchs you can add to make an attempt at it.

-- 
David Starner - starner@okstate.edu
Pointless website: http://dvdeug.dhis.org
"I saw a daemon stare into my face, and an angel touch my breast; each 
one softly calls my name . . . the daemon scares me less."
- "Disciple", Stuart Davis



  parent reply	other threads:[~2001-11-28 22:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-28 12:03 reasons for segmentation faults on linux Tony
2001-11-28 12:49 ` Marc A. Criley
2001-11-28 15:59   ` Preben Randhol
2001-11-28 18:04     ` Mark Johnson
2001-11-28 22:31     ` David Starner [this message]
2001-11-29  3:39       ` Robert Dewar
2001-11-29 18:42         ` David Starner
2001-11-29  3:36     ` Robert Dewar
2001-11-29 10:36       ` Preben Randhol
2001-11-29 11:01         ` Preben Randhol
replies disabled

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