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 19:39:02 PST Path: archiver1.google.com!news1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: reasons for segmentation faults on linux Date: 28 Nov 2001 19:39:01 -0800 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0111281939.23c5280c@posting.google.com> References: <9eb165bd.0111280403.3f6bc3ea@posting.google.com> <3C04CF6F.C42B1DFC@earthlink.net> <9u3okd$9ic2@news.cis.okstate.edu> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1007005141 19711 127.0.0.1 (29 Nov 2001 03:39:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 29 Nov 2001 03:39:01 GMT Xref: archiver1.google.com comp.lang.ada:17145 Date: 2001-11-29T03:39:01+00:00 List-Id: David Starner wrote in message news:<9u3okd$9ic2@news.cis.okstate.edu>... > 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. This is misleading. Stack checking is off in gcc by default (and gnat always follows general gcc decisions on defaults for gcc switches, since it would get very confusing if the defaults were language dependent. If you turn on the switch, you get stack checking, nothing "infeasible" about it.