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!fu-berlin.de!uni-berlin.de!not-for-mail From: "Marc A. Criley" Newsgroups: comp.lang.ada Subject: Re: Problem with tasking when root Date: Wed, 4 Aug 2004 08:11:12 -0500 Message-ID: <2nc5jjFv53gkU1@uni-berlin.de> References: X-Trace: news.uni-berlin.de cmYIgc78vPa6k7FavqrWkQP9TueFGb+tnYHmY7wansA6jtdNzN X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Xref: g2news1.google.com comp.lang.ada:2533 Date: 2004-08-04T08:11:12-05:00 List-Id: "Jean-Pierre Rosen" wrote: > 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). > > Does this ring a bell to someone? Is this possibly the NPTL threads problem? Have you got LD_ASSUME_KERNEL set to 2.4.1 when running as a normal user, but perhaps left unset when running as root? An immediate hang is what happens when hitting the first tasking construct with GNAT 3.15p in an NPTL threads environment. HTH, Marc A. Criley McKae Technologies www.mckae.com