pthread_cancel crashing simplified

Roman Divacky rdivacky at freebsd.org
Tue Jul 17 10:53:57 UTC 2007


On Mon, Jul 16, 2007 at 10:48:19PM +0200, Roman Divacky wrote:
> 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.

it works ok on amd64 so I think something's wrong with i386/TLS


More information about the freebsd-emulation mailing list