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: a07f3367d7,4590cbe206fc9bb9 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.180.82.166 with SMTP id j6mr829758wiy.1.1347644502427; Fri, 14 Sep 2012 10:41:42 -0700 (PDT) Path: ed8ni64838138wib.0!nntp.google.com!feeder3.cambriumusenet.nl!feeder1.cambriumusenet.nl!feed.tweaknews.nl!94.232.116.11.MISMATCH!feed.xsnews.nl!border-1.ams.xsnews.nl!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.panservice.it!feeder.erje.net!news2.arglkargh.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Stumped: Seg Fault with System.Secondary_Stack.SS_Mark() Date: Thu, 06 Sep 2012 21:57:39 +0200 Organization: A noiseless patient Spider Message-ID: <87fw6u2abw.fsf@ludovic-brenta.org> References: <6dfcb108-01de-42e4-962a-87a9ac91741c@googlegroups.com> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="a00df1fe83d3d63e05de133aebe10e23"; logging-data="9509"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ojawOpJmNRmiZ372VE0Pt" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:NY41ZYd3InIu7tfS585GIW8exYw= sha1:auTC6nGbOgSH8CbrTm2joCgNM+Q= Content-Type: text/plain; charset=us-ascii Date: 2012-09-06T21:57:39+02:00 List-Id: awdorrin writes: > My assembly knowledge is more than a little rusty... :) > > Anyone have any suggestions on what I can look at? Try compiling your program with -gnatDG and look at the file rde_b.ada.dg, this is an intermediate representation of your program in a language looking like Ada. This might at least tell you why this function uses the secondary stack; I see nothing in its spec that requires the secondary stack (i.e. returning objects of unconstrained type or declaring controlled objects on the stack). see http://gcc.gnu.org/onlinedocs/gcc-4.6.3/gnat_ugn_unw/Debugging-Control.html Sorry I cannot help more, HTH anyway. -- Ludovic Brenta.