Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jul 2007 12:53:50 +0200
From:      Roman Divacky <rdivacky@freebsd.org>
To:        emulation@freebsd.org
Subject:   Re: pthread_cancel crashing simplified
Message-ID:  <20070717105350.GA43780@freebsd.org>
In-Reply-To: <20070716204819.GA25205@freebsd.org>
References:  <20070716204819.GA25205@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070717105350.GA43780>