From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b5a7187422c2042a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-29 03:01:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: reasons for segmentation faults on linux Date: Thu, 29 Nov 2001 11:01:06 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <9eb165bd.0111280403.3f6bc3ea@posting.google.com> <3C04CF6F.C42B1DFC@earthlink.net> <5ee5b646.0111281936.734ce031@posting.google.com> NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1007031666 16936 129.241.83.82 (29 Nov 2001 11:01:06 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Thu, 29 Nov 2001 11:01:06 +0000 (UTC) User-Agent: slrn/0.9.7.3 (Linux) Xref: archiver1.google.com comp.lang.ada:17157 Date: 2001-11-29T11:01:06+00:00 List-Id: 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/