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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,36b7e7727bd42cf4 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.224.75.137 with SMTP id y9mr2221355qaj.3.1366809697339; Wed, 24 Apr 2013 06:21:37 -0700 (PDT) X-Received: by 10.49.119.99 with SMTP id kt3mr3136918qeb.22.1366809697321; Wed, 24 Apr 2013 06:21:37 -0700 (PDT) Path: ef9ni12521qab.0!nntp.google.com!gp5no5612933qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 24 Apr 2013 06:21:37 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=12.5.121.5; posting-account=XdFqAwoAAAC3CL5ypnv9tErwt70GvLUu NNTP-Posting-Host: 12.5.121.5 References: <9a00b621-0b00-4ef3-8600-ebcb9dd159c6@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <01ac99b6-291a-4f6d-aafd-830f22d0fac2@googlegroups.com> Subject: Re: Gnat Version 4.5.4 v protected objects v tasking From: stvcook53@gmail.com Injection-Date: Wed, 24 Apr 2013 13:21:37 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2013-04-24T06:21:37-07:00 List-Id: On Tuesday, April 23, 2013 5:03:12 PM UTC-5, Simon Wright wrote: > stvcook53@gmail.com writes: > > > > > Symptoms out of 4.5.4 relate to the tasking portion of the Ada > > > run-time system, and relate to protected objects when located outside > > > the main program. Symptoms manifest as a silent hang when a program > > > is run that includes the tasking portion of the runtime system. The > > > gdb debugger exhibits a SIGSEGV while in the run-time package > > > System.Secondary_Stack. Symptom occurs at the end of elaboration > > > before control enters main program. Please comment on sample code or > > > planned, related Gnat updates. > > > > No problems here on Mac OS X - x86_64 - with GNAT GPL 2011/2 or with FSF > > 4.8.0. > > > > I don't see anything wrong with your code. > > > > The symptoms sound as though the tasking part of the RTS isn't getting > > initialised (or not properly, anyway). > > > > I had related symptoms when I had a library that involved tasking and a > > main program that didn't; you don't have a separate library, but could > > you perhaps try linking with the static RTS vs linking with the dynamic > > RTS? If you're using gnatmake, add "-bargs -static" or "-bargs -shared", > > or if you're running gnatbind by hand it's "gnatbind -static" or > > "gnatbind -shared". Thanks Simon. My coworker will be happy that you work with Mac. We'll check it out. Steve