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.66.74.102 with SMTP id s6mr673517pav.21.1347644795020; Fri, 14 Sep 2012 10:46:35 -0700 (PDT) Path: t10ni43249804pbh.0!nntp.google.com!border1.nntp.dca.giganews.com!backlog1.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.panservice.it!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Stumped: Seg Fault with System.Secondary_Stack.SS_Mark() Date: Fri, 07 Sep 2012 16:35:42 +0100 Organization: A noiseless patient Spider Message-ID: 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> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="a9272c9c584810f74e3f95ce46cbeceb"; logging-data="26086"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9X4YNpmBlVfKhyvLgo/TSk8I/dz/sd5E=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (darwin) Cancel-Lock: sha1:JvsmSpoyHb1wh0yJ6GqcQwj0tYo= sha1:8wRI9O8UNt+Lq/EBb+585jp6XU4= X-Original-Bytes: 1673 Content-Type: text/plain Date: 2012-09-07T16:35:42+01:00 List-Id: awdorrin writes: > 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.) Have you registered these threads with the Ada RTS? See g-thread.ads. You need to do this before doing anything (such as accessing the secondary stack) which requires Ada-specific setup in the TCB or equivalent.