Re: program gets stuck
Bill Abt <[email protected]> Fri, 27 Sep 2002 09:48:18 -0400
| Newsgroups | gmane.linux.ngpt.user |
|---|---|
| Message-ID | <[email protected]> |
On 09/26/2002 at 07:39:38 PM AST, Ignacio Llamas <[email protected]> wrote: > > > Hi, > I've tried versions 2.0.1 and 2.0.3 of NGPT on an SMP Linux Redhat 7.3 > system with Kernel 2.4.19 patched with the patch-futex for version 2.0.3. > I've followed the installation instructions, to make ngpt initialize at > boot time (by the way, the ngptinit file that I had tried to execute > //bin/ngptc, which does not exist, I modified it to be /usr/bin/ngptc. This part should've been fixed in 2.0.3. I'll have a look to see what's up. > So as I was saying, I decided to give a try to NGPT. So I installed it and > recompiled the application after that. But it gets stuck before the main > window is spawned, as if all threads were sleeping... > Maybe I'm doing something wrong. Or maybe our code does something that is > not compatible with NGPT implementation. > > I have found almost no documentation about NGPT, and nothing that I found > explains this. The documentation for NGPT users is the POSIX spec ;-) We're working on a design spec. > I would appreciate some hint on what could be going wrong. > Thank you, > Have you setup the gdb patch as well? If you haven't, please set it up. If you have, try running the program in the debugger. After the program hangs, break in using gdb and using "info threads" get a stack trace of each of the running threads and pass it on to us. That'll give a clue as to what is going on. The info you've passed so far doesn't give us much to go on. If you have any question, post back to the list and we'll try and help. Thanks. BTW, the pthreads-devel list is a very active list and you may run into someone who's experienced the problem and dealt with it before. Might want to post there as well in the meantime. Regards, Bill Abt Senior Software Engineer Next Generation POSIX Threading for Linux IBM Cambridge, MA, USA 02142 Ext: +(00)1 603-673-3440 T/L: 253-9938 Cell: +(00)1 617-803-7514 [email protected] or [email protected] http://oss.software.ibm.com/developerworks/opensource/pthreads