Messages in this thread |  | | Subject | Re: Pthreads, linux, gdb, oh my! (fwd) | Date | Fri, 8 Dec 2000 17:18:59 +0000 (GMT) | From | Alan Cox <> |
| |
> I have seen two failure modes: on my machine (linux 2.2.5-22, glibc > 2.1.1), when run under gdb 5.0, the created pthreads stick around as
glibc 2.1.1 definitely has problems with several bits of pthreads. You want 2.1.3 or higher I believe.
> zombies until the machine runs out of resources. On some friends' > machines (kernel 2.2.15, glibc 2.1.94), the program creates one pthread, > waits for it to exit, and then exits. > > and happy, and look forward to finding out what it is. If it's a kernel > bug, I submit that this makes pthreads unusable, and want to inquire if > anyone is working on fixing this?
Its unlikely to be remotely kernel related
> tg->running++; > if (tg->running >= tg->created) {
tg->created may be out of date
> /* Create a thread that will run and exit. */ > rc = pthread_create(thread, attr, (void *)threads_test_count_seq_proc, tg
You can create it, count it, then up tg->created out of order
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |