lkml.org 
[lkml]   [2000]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Pthreads, linux, gdb, oh my! (fwd)
Date
From
> 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/

\
 
 \ /
  Last update: 2005-03-22 12:51    [W:0.084 / U:3.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site