From owner-freebsd-threads@FreeBSD.ORG Fri Aug 29 13:41:59 2008 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95CF41065682 for ; Fri, 29 Aug 2008 13:41:59 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (w.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id 5D0238FC0A for ; Fri, 29 Aug 2008 13:41:59 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id m7TDTZW8024502 for ; Fri, 29 Aug 2008 07:29:35 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.2/8.14.2) with ESMTP id m7TD4sNm027101; Fri, 29 Aug 2008 07:04:54 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.2/8.14.2/Submit) id m7TD4r6W027098; Fri, 29 Aug 2008 07:04:53 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18615.62453.623443.27126@gromit.timing.com> Date: Fri, 29 Aug 2008 07:04:53 -0600 From: John Hein To: Andriy Gapon In-Reply-To: <48B71BA6.5040504@icyb.net.ua> References: <48B70A98.5060501@icyb.net.ua> <48B7101E.7060203@icyb.net.ua> <48B71BA6.5040504@icyb.net.ua> X-Mailer: VM 7.19 under Emacs 22.1.1 X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on Daffy.timing.com X-Virus-Status: Clean Cc: freebsd-threads@freebsd.org Subject: Re: mysterious hang in pthread_create X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2008 13:41:59 -0000 Andriy Gapon wrote at 00:41 +0300 on Aug 29, 2008: > This seems to be it. > I can reproduce the issue with the following small C++ program: > > /*********************************************/ > #include > > > static void * thrfunc(void * arg) > { > return NULL; > } > > int main(void) > { > pthread_t thr; > > try { > throw int(1); > } > catch (...) {} > > pthread_create(&thr, NULL, thrfunc, NULL); > > return 0; > } > /*********************************************/ > > > $ uname -a > ... FreeBSD 7.0-STABLE #9: Sun Jul 6 17:13:22 EEST 2008 ... i386 FYI... I reproduced it on an older 7-stable (May 07), too (stuck in uwait). But it works fine on 6-stable with libthr or libpthread.