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-28 07:59:47 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.213.112.26!newsfeed1.ulv.nextra.no!nextra.com!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: reasons for segmentation faults on linux Date: Wed, 28 Nov 2001 15:59:45 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <9eb165bd.0111280403.3f6bc3ea@posting.google.com> <3C04CF6F.C42B1DFC@earthlink.net> NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1006963185 9844 129.241.83.82 (28 Nov 2001 15:59:45 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Wed, 28 Nov 2001 15:59:45 +0000 (UTC) User-Agent: slrn/0.9.7.2 (Linux) Xref: archiver1.google.com comp.lang.ada:17109 Date: 2001-11-28T15:59:45+00:00 List-Id: On Wed, 28 Nov 2001 12:49:54 GMT, Marc A. Criley wrote: > Tony wrote: >> >> I'm getting a segmentation fault in linux, >> >> I 've wapped up the storage size and this has no effect, >> >> I'm using three AVL trees in a task if thats any help >> >> Does anyone know the common reasons for segmentation faults in >> Gnat on Linux ? > > Misaligned data... Dereferencing dangling pointers... Stack overflows > (if stack checking is disabled)... Infinite recursion: 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. Preben -- () Join the worldwide campaign to protect fundamental human rights. '||} {||' http://www.amnesty.org/