From owner-freebsd-threads@FreeBSD.ORG Wed Jan 23 10:30:02 2008 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 AB73816A46E for ; Wed, 23 Jan 2008 10:30:02 +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 7F15413C4CE for ; Wed, 23 Jan 2008 10:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0NAU26e002555 for ; Wed, 23 Jan 2008 10:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0NAU2w6002554; Wed, 23 Jan 2008 10:30:02 GMT (envelope-from gnats) Resent-Date: Wed, 23 Jan 2008 10:30:02 GMT Resent-Message-Id: <200801231030.m0NAU2w6002554@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-threads@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Bernard Buri Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C901F16A468 for ; Wed, 23 Jan 2008 10:26:53 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id B242B13C4CE for ; Wed, 23 Jan 2008 10:26:53 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m0NAPK45088571 for ; Wed, 23 Jan 2008 10:25:20 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m0NAPK69088569; Wed, 23 Jan 2008 10:25:20 GMT (envelope-from nobody) Message-Id: <200801231025.m0NAPK69088569@www.freebsd.org> Date: Wed, 23 Jan 2008 10:25:20 GMT From: Bernard Buri To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: threads/119920: fork broken in libpthread 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: Wed, 23 Jan 2008 10:30:02 -0000 >Number: 119920 >Category: threads >Synopsis: fork broken in libpthread >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-threads >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 23 10:30:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Bernard Buri >Release: 6.3-RELEASE >Organization: ask! >Environment: FreeBSD host.domain 6.3-RELEASE FreeBSD 6.3-RELEASE #12: Mon Jan 21 13:23:06 CET 2008 root@host.domain:/usr/obj/usr/src/sys/SMP i386 >Description: Sometimes, when a multithreaded application tries to spawn another process, the child process loops with 100% CPU in the fork () procedure. Here is the backtrace after attaching gdb to the child process: #0 0x6809c198 in pthread_sigmask () from /lib/libpthread.so.2 #1 0x6809c148 in sigprocmask () from /lib/libpthread.so.2 #2 0x680a660c in pthread_mutexattr_init () from /lib/libpthread.so.2 #3 0x680992db in fork () from /lib/libpthread.so.2 #4 0x68ae735d in jdk_fork_wrapper () from /usr/local/jdk1.6.0/jre/lib/i386/libjava.so #5 0x68ae798c in Java_java_lang_UNIXProcess_forkAndExec () from /usr/local/jdk1.6.0/jre/lib/i386/libjava.so #6 0x68b1868e in ?? () #7 0x08a958ec in ?? () #8 0xbf1778a0 in ?? () .. >How-To-Repeat: Most of the time, the problem was observed with a java process, but also, after logging into a gnome session, there are sometimes processes running 100% CPU. I can regularly reproduce this behaviour with Eclipse CDT (C/C++ Development Tools). >Fix: The problem could not be observed with libthr. >Release-Note: >Audit-Trail: >Unformatted: