comp.lang.ada
 help / color / mirror / Atom feed
From: Bill Findlay <yaldnif.w@blueyonder.co.uk>
Subject: Re: Can't set executable stack size during compilation
Date: Wed, 04 Jan 2012 17:22:50 +0000
Date: 2012-01-04T17:22:50+00:00	[thread overview]
Message-ID: <CB2A3B6A.DD62%yaldnif.w@blueyonder.co.uk> (raw)
In-Reply-To: 4f047e0f$0$6582$9b4e6d93@newsspool3.arcor-online.net

On 04/01/2012 16:27, in article
4f047e0f$0$6582$9b4e6d93@newsspool3.arcor-online.net, "Georg Bauhaus"
<rm.dash-bauhaus@futureapps.de> 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;




  reply	other threads:[~2012-01-04 17:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-04 15:49 Can't set executable stack size during compilation Erich
2012-01-04 16:27 ` Georg Bauhaus
2012-01-04 17:22   ` Bill Findlay [this message]
2012-01-04 21:36     ` Georg Bauhaus
2012-01-05  1:06       ` Randy Brukardt
2012-01-05  4:35         ` Bill Findlay
2012-01-05 10:19           ` Georg Bauhaus
2012-01-05 12:35             ` Erich
2012-01-05  3:03   ` Jerry
2012-01-05 13:20   ` Mark Lorenzen
2012-01-05  3:12 ` Jerry
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox