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,ed4b6964018509ca X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Problem with tasking when root Date: 06 Aug 2004 05:54:15 +0100 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1091768378 20053 62.49.19.209 (6 Aug 2004 04:59:38 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Fri, 6 Aug 2004 04:59:38 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: g2news1.google.com comp.lang.ada:2591 Date: 2004-08-06T05:54:15+01:00 List-Id: "Jean-Pierre Rosen" writes: > Context: Gnat 3.15p+Glade, Linux 2.4.21, Mandrake. > > I have a distributed application that works OK under Windows, and > under Linux as a normal user. When run as root, it deadlocks at > task creation, i.e. I never return from a "new T", where T is a task > type. According to strace, it blocks within the runtime (getting > into sigsuspend). One of the conditions for a (Linux, Solaris) Ada program to actually respect priority assignments is that it is running as root. There may be other conditions too, I believe that this area has changed quite a lot. Are you perhaps having a deadlock? -- Simon Wright 100% Ada, no bugs.