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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.129.62.39 with SMTP id l39mr1411374ywa.61.1490937059955; Thu, 30 Mar 2017 22:10:59 -0700 (PDT) X-Received: by 10.157.51.141 with SMTP id u13mr217311otc.15.1490937059881; Thu, 30 Mar 2017 22:10:59 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!n21no3977478qta.1!news-out.google.com!j72ni1909itb.0!nntp.google.com!y18no2368270itc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 30 Mar 2017 22:10:59 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=136.163.203.9; posting-account=g0yTkgoAAADdZGEYyZahxGlO3EkjH0Wv NNTP-Posting-Host: 136.163.203.9 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: gnatbind get stack overflow, how do I investigate the cause? From: Petter Fryklund Injection-Date: Fri, 31 Mar 2017 05:10:59 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2885 X-Received-Body-CRC: 2870659475 Xref: news.eternal-september.org comp.lang.ada:46512 Date: 2017-03-30T22:10:59-07:00 List-Id: Den torsdag 30 mars 2017 kl. 18:22:09 UTC+2 skrev Per Sandberg: > Hi >=20 > I did the same journey a on our system many years ago, and it was=20 > "interesting" since we found a whole bunch of serious bugs just by=20 > follow up on warnings and later enable all validity checks. >=20 > You might increase the stacksize with: > -dnn[k|m] Default primary stack size =3D nn [kilo|mega] bytes > -Dnn[k|m] Default secondary stack size =3D nn [kilo|mega] bytes > from "gnatbind -h" >=20 > And expect a bunch of elaboration circles that needs to be broken out by= =20 > factoring out generics and separates into child packages. >=20 > And as Anh mentions ask AdaCore, since they usually gives good answers. >=20 > /Per >=20 >=20 > Den 2017-03-30 kl. 15:00, skrev Petter Fryklund: > > Hi all, > > > > after a couple of years with C# I'm back! I am currently porting a larg= e project from Ada-95 in ObjectAda to GNAT 17, first on Linux and later on = W7. I've managed to compile the all files, but gnatbind hits a stack overfl= ow. How do I get more information about the cause? > > > > Regards, > > Petter > > Hi again, Isn't -d for the produced output? it is the gnatbind itself that suffers fr= om Storage_Error hinting at stack overflow. The output from gnatbind is: [gprbind]
.bexch [Ada]
.ali raised STORAGE_ERROR : stack overflow or erroneous memory access gprbind: invocation of gnatbind failed gprbuild: unable to bind
.adb Anh Vo: yes we have support, I or the person responsible for tools will cre= ate a ticket ASAP. In the meanwhile I'd like to gather information. Regards, Petter=20