From owner-freebsd-threads@FreeBSD.ORG Fri Aug 24 00:50:07 2007 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A97716A417 for ; Fri, 24 Aug 2007 00:50:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7FD2A13C428 for ; Fri, 24 Aug 2007 00:50:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l7O0o79N034917 for ; Fri, 24 Aug 2007 00:50:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7O0o75k034916; Fri, 24 Aug 2007 00:50:07 GMT (envelope-from gnats) Date: Fri, 24 Aug 2007 00:50:07 GMT Message-Id: <200708240050.l7O0o75k034916@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: "Craig Rodrigues" Cc: Subject: Re: threads/115211: pthread_atfork misbehaves in initial thread X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Craig Rodrigues List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2007 00:50:07 -0000 The following reply was made to PR threads/115211; it has been noted by GNATS. From: "Craig Rodrigues" To: bug-followup@FreeBSD.org, sysmaint@contek.com Cc: Subject: Re: threads/115211: pthread_atfork misbehaves in initial thread Date: Fri, 24 Aug 2007 08:41:56 -0400 Hi, On FreeBSD-CURRENT, if I do: gcc pthread_atforkbug.c -lkse && ./a.out This is the output: parent pid (48871) Child exiting: (48872) child (48872) returned If I do: gcc pthread_atforkbug.c -lkse && ./a.out parent pid (48877) af_prepare: pid (48877) af_parent: pid (48877) af_child: pid (48878) Child exiting: (48878) child (48878) returned On FreeBSD 6.2, -pthread is mapped to -lkse, while on CURRENT, it is mapped to -lthr. Can you try your test again with -lthr on FreeBSD 6.2? This looks like a libkse bug. -- Craig Rodrigues rodrigc@crodrigues.org