From owner-freebsd-emulation@FreeBSD.ORG Mon Jul 16 20:48:23 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 213B916A403 for ; Mon, 16 Jul 2007 20:48:23 +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 CF95E13C4A5 for ; Mon, 16 Jul 2007 20:48:22 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 15FB58BFEA8 for ; Mon, 16 Jul 2007 22:48:21 +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 mFxr2ZDPnjLE for ; Mon, 16 Jul 2007 22:48:20 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 00E088BFB2D for ; Mon, 16 Jul 2007 22:48:19 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id l6GKmJGV025371 for emulation@freebsd.org; Mon, 16 Jul 2007 22:48:19 +0200 (CEST) (envelope-from rdivacky) Date: Mon, 16 Jul 2007 22:48:19 +0200 From: Roman Divacky To: emulation@freebsd.org Message-ID: <20070716204819.GA25205@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: 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: Mon, 16 Jul 2007 20:48:23 -0000 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