comp.lang.ada
 help / color / mirror / Atom feed
From: Preben Randhol <randhol+abuse@pvv.org>
Subject: Re: reasons for segmentation faults on linux
Date: Thu, 29 Nov 2001 11:01:06 +0000 (UTC)
Date: 2001-11-29T11:01:06+00:00	[thread overview]
Message-ID: <slrna0c56p.1ao.randhol+abuse@kiuk0156.chembio.ntnu.no> (raw)
In-Reply-To: slrna0c3oh.1ao.randhol+abuse@kiuk0156.chembio.ntnu.no

On Thu, 29 Nov 2001 10:36:27 +0000 (UTC), Preben Randhol wrote:
> On 28 Nov 2001 19:36:56 -0800, Robert Dewar wrote:
>> Because you chose to run with stack checking disabled,
>> and GNAT followed your directions!
> 
> % set GNAT_STACK_LIMIT=1600
> 
> % gnatmake -fstack-check A
> gnatgcc -c -fstack-check 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

ARG! *Bonking my head on the keyboard* 

Forget the above I made the mistake of writing :

   set GNAT_STACK_LIMIT=1600

but in bash shell it is :

   export GNAT_STACK_LIMIT=1600

when I now recompile and run I get.

% ./A

raised STORAGE_ERROR : stack overflow detected

Preben
-- 
 ()   Join the worldwide campaign to protect fundamental human rights.
'||}
{||'                                           http://www.amnesty.org/



      reply	other threads:[~2001-11-29 11:01 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
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 [this message]
replies disabled

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