From owner-freebsd-emulation@FreeBSD.ORG Tue Jul 17 10:53:57 2007 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4134516A401 for ; Tue, 17 Jul 2007 10:53:57 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id EE92213C4A3 for ; Tue, 17 Jul 2007 10:53:54 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 60FE38BFF2C for ; Tue, 17 Jul 2007 12:53:53 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oMncnSXDbC0J for ; Tue, 17 Jul 2007 12:53:51 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 1F9388BFF20 for ; Tue, 17 Jul 2007 12:53:51 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id l6HAroN3043804 for emulation@freebsd.org; Tue, 17 Jul 2007 12:53:50 +0200 (CEST) (envelope-from rdivacky) Date: Tue, 17 Jul 2007 12:53:50 +0200 From: Roman Divacky To: emulation@freebsd.org Message-ID: <20070717105350.GA43780@freebsd.org> References: <20070716204819.GA25205@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070716204819.GA25205@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: Subject: Re: pthread_cancel crashing simplified X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jul 2007 10:53:57 -0000 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