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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no 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.224.111.8 with SMTP id q8mr2860239qap.3.1347028728236; Fri, 07 Sep 2012 07:38:48 -0700 (PDT) Received: by 10.236.180.41 with SMTP id i29mr814284yhm.4.1347028728207; Fri, 07 Sep 2012 07:38:48 -0700 (PDT) Path: da15ni12456543qab.0!nntp.google.com!b19no4132156qas.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 7 Sep 2012 07:38:48 -0700 (PDT) In-Reply-To: <0b591914-1915-4c8b-b0d5-ebf188fc2de4@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=192.91.171.36; posting-account=YkFdLgoAAADpWnfCBA6ZXMWTz2zHNd0j NNTP-Posting-Host: 192.91.171.36 References: <6dfcb108-01de-42e4-962a-87a9ac91741c@googlegroups.com> <87fw6u2abw.fsf@ludovic-brenta.org> <016ff78a-64f9-4a42-a079-e544526e2f8a@googlegroups.com> <87bohi26kl.fsf@ludovic-brenta.org> <0b591914-1915-4c8b-b0d5-ebf188fc2de4@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Stumped: Seg Fault with System.Secondary_Stack.SS_Mark() From: awdorrin Injection-Date: Fri, 07 Sep 2012 14:38:48 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-09-07T07:38:48-07:00 List-Id: I have done some more investigation this morning. As suggested, I removed the string concat in the ADD_TO_Q() call. Checking the rde_b.ada.dg file showed that there was no references to the s= econdary stack, within that function. (Unfortunately, looking at all the ot= her .dg files generated, I saw over 5000 references to usage of the seconda= ry stack.) I verified that each pthread is being provided with 8MB of space for their = stack. (This program starts off from C and spawns threads, which are mixed = Ada and C.) I'm not yet sure how to verify the default stack/secondary stack sizes in G= NAT (although I've seen the -d/-D gnat flags for explicitly setting the siz= es) - still researching. Yesterday, this program could run for random amounts of time before seg fau= lting, sometimes over 30 minutes, so I have it running again to see what I = can get to happen. I figure it very well could crash in another routine whi= ch uses the secondary stack - until I figure out what the root cause is...