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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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 15:37:35 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!unlnews.unl.edu!newsfeed.ksu.edu!nntp.ksu.edu!news.okstate.edu!not-for-mail From: David Starner Newsgroups: comp.lang.ada Subject: Re: reasons for segmentation faults on linux Date: 28 Nov 2001 22:31:41 GMT Organization: Oklahoma State University Message-ID: <9u3okd$9ic2@news.cis.okstate.edu> References: <9eb165bd.0111280403.3f6bc3ea@posting.google.com> <3C04CF6F.C42B1DFC@earthlink.net> Reply-To: starner@okstate.edu NNTP-Posting-Host: x8b4e5301.dhcp.okstate.edu User-Agent: slrn/0.9.7.3 (Linux) Xref: archiver1.google.com comp.lang.ada:17142 Date: 2001-11-28T22:31:41+00:00 List-Id: On Wed, 28 Nov 2001 15:59:45 +0000 (UTC), Preben Randhol 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