pthread_cancel crashing simplified

Roman Divacky rdivacky at freebsd.org
Mon Jul 16 20:48:23 UTC 2007


hi...

after a little looking around I managed to simplify the crashing case
to simple:

main()
{
      kill(getpid(), 32);
}

when you compile this as "gcc foo.c" it works, but when compiled with
"gcc foo.c -lpthread" it crashes. the handler for this signal can be
seen in glibc sources at: nptl/init.c:140 (glibc 2.3.6 which is what I
am using to test and also what fc4 uses)

I reckon the solution is close so if someone wants to step in and
take the eternal glory of fixing it.. go ahead! :) or at least.. can someone
confirm that it crashes on amd64-linuxulator? that would rule out TLS bug.

btw. I think/hope this is the cause of flash9 crashing etc. also jdk15 crash.

thnx

roman



More information about the freebsd-emulation mailing list