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-Thread: 103376,bf2571446148ae30 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.204.152.89 with SMTP id f25mr2174256bkw.0.1325697773717; Wed, 04 Jan 2012 09:22:53 -0800 (PST) Path: cj8ni43987bkb.0!nntp.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news2.arglkargh.de!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bill Findlay Newsgroups: comp.lang.ada Subject: Re: Can't set executable stack size during compilation Date: Wed, 04 Jan 2012 17:22:50 +0000 Message-ID: References: <4f047e0f$0$6582$9b4e6d93@newsspool3.arcor-online.net> Mime-Version: 1.0 X-Trace: individual.net UVUCcZOdNT2D15K25rewbgKMRyFTGxRFBph8gXTHTT/TIb9bYv Cancel-Lock: sha1:HbMb8o2Y4hBnCEfeZs/+nWs7kS0= User-Agent: Microsoft-Entourage/12.28.0.101117 Thread-Topic: Can't set executable stack size during compilation Thread-Index: AczLBXvZypOAUlm+I0aSYpIwvB1PoA== Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: 2012-01-04T17:22:50+00:00 List-Id: On 04/01/2012 16:27, in article 4f047e0f$0$6582$9b4e6d93@newsspool3.arcor-online.net, "Georg Bauhaus" wrote: > > FWIW, I made a little test program; I think it is legal > but it crashes consistently when translated with GNAT/GCC. > With -fstack-check given, the most unexpected thing to see is a > segmentation fault! With GNAT GPL 2011 on OS X: > /Users/wf/KDF9/emulation/Build: ./onstack > > raised STORAGE_ERROR : stack overflow It's not legal, of course: it fetches unassigned variables, though that is nothing to do with the stack overflow. -- Bill Findlay with blueyonder.co.uk; use surname & forename;