From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 7 14:07:48 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 772771065677 for ; Fri, 7 Mar 2008 14:07:48 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from www.pkgsrc-box.org (www.ostsee-abc.de [62.206.222.50]) by mx1.freebsd.org (Postfix) with ESMTP id 330FD8FC28 for ; Fri, 7 Mar 2008 14:07:47 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (www.pkgsrc-box.org [127.0.0.1]) by www.pkgsrc-box.org (Postfix) with ESMTP id 29FB84B67E3 for ; Fri, 7 Mar 2008 14:07:46 +0000 (UTC) Received: by britannica.bec.de (Postfix, from userid 1000) id 4E7A8175D5; Fri, 7 Mar 2008 15:07:02 +0100 (CET) Date: Fri, 7 Mar 2008 15:07:02 +0100 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20080307140702.GE2032@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <87D91DEDB1111C44BBFB9E3E90FF1E6E9553E0@host.lodgenet.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87D91DEDB1111C44BBFB9E3E90FF1E6E9553E0@host.lodgenet.com> User-Agent: Mutt/1.5.16 (2007-06-09) Subject: Re: libpthread/fork issue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2008 14:07:48 -0000 On Thu, Mar 06, 2008 at 09:45:15PM -0600, Marko, Shaun wrote: > In short, if a process creates a thread, joins > the thread, then forks a child process which creates a thread, the > child's attempt to create a thread will cause the program to dump core > with the following error message. fork and pthread should not be mixed. You can and normally should only assume that the current thread is present in the child. Joerg