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.224.111.8 with SMTP id q8mr2880148qap.3.1347029704636; Fri, 07 Sep 2012 07:55:04 -0700 (PDT) Received: by 10.52.99.8 with SMTP id em8mr981678vdb.16.1347029704578; Fri, 07 Sep 2012 07:55:04 -0700 (PDT) Path: da15ni11522341qab.0!nntp.google.com!v8no4186210qap.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 7 Sep 2012 07:55:04 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC NNTP-Posting-Host: 153.98.68.197 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: <3f420d6b-b289-4e20-ae7d-6046d356b4d1@googlegroups.com> Subject: Re: Stumped: Seg Fault with System.Secondary_Stack.SS_Mark() From: Ludovic Brenta Injection-Date: Fri, 07 Sep 2012 14:55:04 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-09-07T07:55:04-07:00 List-Id: awdorrin wrote on comp.lang.ada: > 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 GNAT (although I've seen the -d/-D gnat flags for > explicitly setting the sizes) - still researching. The secondary stack is actually a region of the heap. See the package GNAT.Secondary_Stack_Info if you want to monitor usage and see http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Switches-for-gnatbind.html for a quick introduction (look for "-Dnn[k|m]"). The gritty details of the secondary stack are in the sources of GCC: s-secsta.ad[bs]; on Debian and most OSes with virtual memory, the secondary stack is theoretically unlimited in size because System.Parameters.Sec_Stack_Percentage is set to Dynamic. HTH -- Ludovic Brenta.