Hello! First: thanks for reporting this!
On Tue, Aug 18, 2009 at 11:42:20AM -0700, Daniel Moerner wrote:
> configure:8557: gcc -o conftest -g -O2 -pthread -rdynamic conftest.c -lnsl
> -ldl -lm >&5
> configure:8561: $? = 0
> configure:8567: ./conftest
> ./configure: line 8569: 16392 Resource lost ./conftest$ac_exeext
> configure:8571: $? = 160
> configure: program exited with status 160
> configure: failed program was:
> | /* confdefs.h. */
> | #define [...]
> | #define HAVE_PTHREAD_H 1
> | /* end confdefs.h. */
> | #include <pthread.h>
> | int
> | main(void)
> | {
> | pthread_kill(pthread_self(), 0);
> | }
This can indeed be reproduce independently:
tho...@dirichlet:~ $ cat p.c
#include <pthread.h>
int
main(void)
{
pthread_kill(pthread_self(), 0);
}
tho...@dirichlet:~ $ uname -a
Linux dirichlet 2.6.31-5-generic #24-Ubuntu SMP Sat Aug 1 12:48:18 UTC 2009
i686 GNU/Linux
tho...@dirichlet:~ $ gcc p.c -lpthread
tho...@dirichlet:~ $ ./a.out
tho...@dirichlet:~ $ echo $?
0
tschwi...@flubber:~ $ uname -a
GNU flubber 0.3 GNU-Mach 1.3.99/Hurd-0.3 i386-AT386 GNU
tschwi...@flubber:~ $ gcc p.c -lpthread
tschwi...@flubber:~ $ ./a.out
Resource lost
tschwi...@flubber:~ $ echo $?
160
So this is either something invalid to do (I didn't check yet), or it is
a bug in our libpthread. Stay tuned.
Regards,
Thomas
signature.asc
Description: Digital signature

