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: 103376,36b7e7727bd42cf4 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.66.121.227 with SMTP id ln3mr2080846pab.8.1366754594092; Tue, 23 Apr 2013 15:03:14 -0700 (PDT) Path: bp1ni533pbd.1!nntp.google.com!news.glorb.com!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Gnat Version 4.5.4 v protected objects v tasking Date: Tue, 23 Apr 2013 23:03:12 +0100 Organization: A noiseless patient Spider Message-ID: References: <9a00b621-0b00-4ef3-8600-ebcb9dd159c6@googlegroups.com> Mime-Version: 1.0 Injection-Info: mx05.eternal-september.org; posting-host="759faf2487b2ffad9ca6f5463a606de4"; logging-data="5530"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+LPecDfquv6n/aVT9nPIrayBd5XCq9yYM=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (darwin) Cancel-Lock: sha1:lB9xOyo0Om3uzqLjzQrFJ7kzuYc= sha1:r+0XUzUKmwtZiOZxAoMzmiFgyHQ= Content-Type: text/plain Date: 2013-04-23T23:03:12+01:00 List-Id: 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".