Re: Hangs with NGPT 1.2.1

"Praveen Gonugunta" <[email protected]> Fri, 26 Apr 2002 16:08:45 -0700 (PDT)
Newsgroups gmane.linux.ngpt.user
Message-ID <Pine.GSO.4.21.0204261551270.16882-100000@searchdev>
We're experiencing a similar hang. NGPT 1.2.0 works well, but with NGPT
1.2.1, none of the tests that come with the package run. They all hang.

Here's a chunk of strace output of test_pthread. The main thread hangs
after the select() call at the end. The child threads never wake up to
print anything.

--------------------------------------------------------
write(2, "main: joining...\n", 17main: joining...
)      = 17
fcntl64(0x2, 0x3, 0, 0x2)               = 34818
fcntl64(0x2, 0x4, 0x8002, 0x2)          = 0
mmap2(NULL, 44, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x400b4000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, ~[KILL STOP 33 34 35 36 37 38 39 40 41 42 43
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62], NULL, 8) = 0
gettimeofday({1019860744, 600486}, NULL) = 0
gettimeofday({1019860744, 600516}, NULL) = 0
rt_sigpending([])                       = 0
read(3, 0x40213394, 128)                = -1 EAGAIN (Resource temporarily
unavailable)
sigprocmask(SIG_SETMASK, [], ~[KILL STOP]) = 0
select(4, [3], [], [], NULL
-------------------------------------------------------

We also tried the solution below (two step installation) but it didnt
work. 
Any ideas?

Thanks,
praveen

---------------------------

If you has an older version installed, did you do the two step
installation,
i.e. configure; make; make install; make distclean; configure; make ? We
got
tripped by this back a few internal releases when the spin lock alignment
had
changed but old headers still had the original, I kinda remember that the 
symptoms were very similar.

-----Original Message-----
From: Paul Larson [mailto:[email protected]]
Sent: Thursday, April 18, 2002 2:06 PM
To: [email protected]
Subject: [pthreads-users] Hangs with NGPT 1.2.1


I have been trying, unsuccessfully, to run any of my tests with NGPT
1.2.1.  Even the tests that come with NGPT hang.  All of the threaded
prgrams I have tried exhibit the same behaviour.  Right after a call to
gettid, there is a modify_ldt followed by an endless stream of
nanosleeps.  Part of an strace below.  Has anyone else seen this