[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#220832: marked as done (libc6: joined pthreads are not reaped)



Your message dated Wed, 18 Apr 2007 18:38:44 +0200
with message-id <20070418163842.GA13996@amd64.aurel32.net>
and subject line libc6: joined pthreads are not reaped
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libc6
Version: 2.3.2.ds1-10
Severity: normal

Minimal test program to demonstrate problem:

#include <stdio.h>
#include <pthread.h>

#define NTHREADS 30

void * thread(void * arg)
{
   return NULL;
}

int main()
{
   int i;
   pthread_t threadid;
   
   for (i=0; i<NTHREADS ; i++) {
      pthread_create(&threadid, NULL, &thread, NULL);
      pthread_join(threadid, NULL);
   }

   printf("Press RETURN: ");
   while (getchar() != '\n');
   return(0);
}

When it prompts for keyboard input, notice how many "defunct" pids
there are.

Expected behaviour appears to happen under libc6 2.3.2-7, and when
running under kernel 2.6.0test9 (the .deb in sid) with or without
LD_ASSUME_KERNEL=2.4.0. It doesn't appear to matter whether I have
libc6-i686 installed.

(I'm not ruling out that it might be a bug in kernel 2.4.22)

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux manlap 2.4.22-1-686 #6 Sat Oct 4 14:09:08 EST 2003 i686
Locale: LANG=en_GB, LC_CTYPE=en_GB

Versions of packages libc6 depends on:
ii  libdb1-compat                 2.1.3-7    The Berkeley database routines [gl

-- no debconf information


-- 
Paul Martin <pm@debian.org>


--- End Message ---
--- Begin Message ---
Version: 2.5-1

On Fri, Nov 14, 2003 at 09:36:59PM +0000, Paul Martin wrote:
> Package: libc6
> Version: 2.3.2.ds1-10
> Severity: normal
> 
> Minimal test program to demonstrate problem:
> 
> #include <stdio.h>
> #include <pthread.h>
> 
> #define NTHREADS 30
> 
> void * thread(void * arg)
> {
>    return NULL;
> }
> 
> int main()
> {
>    int i;
>    pthread_t threadid;
>    
>    for (i=0; i<NTHREADS ; i++) {
>       pthread_create(&threadid, NULL, &thread, NULL);
>       pthread_join(threadid, NULL);
>    }
> 
>    printf("Press RETURN: ");
>    while (getchar() != '\n');
>    return(0);
> }
> 
> When it prompts for keyboard input, notice how many "defunct" pids
> there are.
> 
> Expected behaviour appears to happen under libc6 2.3.2-7, and when
> running under kernel 2.6.0test9 (the .deb in sid) with or without
> LD_ASSUME_KERNEL=2.4.0. It doesn't appear to matter whether I have
> libc6-i686 installed.
> 
> (I'm not ruling out that it might be a bug in kernel 2.4.22)
> 

glibc 2.5 which is now in unstable has switched to NPTL only, which fixes 
this problem. Closing the bug.

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net

--- End Message ---

Reply to: