bug-hurd
[Top][All Lists]
Advanced

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

bug in libpthreads


From: Thomas Thomas
Subject: bug in libpthreads
Date: Thu, 10 May 2012 17:38:26 -0700 (PDT)

In function initialize_pthread in file pthread/pt-alloc.c, you need to
initialize the value of have_kernel_resources to zero if the thread
structure is not recycled. Following the logic of
__pthread_create_internal: we go from __pthread_alloc to
__pthread_thread_alloc without touching have_kernel_resources.

Then, __pthread_thread_alloc exits immediately if
have_kernel_resources is non-zero: not good if we haven't
actually allocated these resources.

Sorry this isn't a patch, but it is only a one line fix,
Thomas D




reply via email to

[Prev in Thread] Current Thread [Next in Thread]