From owner-freebsd-threads@FreeBSD.ORG Thu Mar 10 06:30:04 2005 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3CDAB16A4CE for ; Thu, 10 Mar 2005 06:30:04 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3B3B43D73 for ; Thu, 10 Mar 2005 06:30:03 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2A6U36E097497 for ; Thu, 10 Mar 2005 06:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2A6U3p4097496; Thu, 10 Mar 2005 06:30:03 GMT (envelope-from gnats) Resent-Date: Thu, 10 Mar 2005 06:30:03 GMT Resent-Message-Id: <200503100630.j2A6U3p4097496@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, Thomas Lange Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B718816A4CE for ; Thu, 10 Mar 2005 06:22:29 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95B1B43D5A for ; Thu, 10 Mar 2005 06:22:29 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j2A6MTJj066261 for ; Thu, 10 Mar 2005 06:22:29 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j2A6MTZn066260; Thu, 10 Mar 2005 06:22:29 GMT (envelope-from nobody) Message-Id: <200503100622.j2A6MTZn066260@www.freebsd.org> Date: Thu, 10 Mar 2005 06:22:29 GMT From: Thomas Lange To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: threads/78660: Java hangs unkillably in STOP state after fork() X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 06:30:04 -0000 >Number: 78660 >Category: threads >Synopsis: Java hangs unkillably in STOP state after fork() >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-threads >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Mar 10 06:30:03 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Thomas Lange >Release: 5.3 Release >Organization: >Environment: FreeBSD hellraiser.smega.com 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #2: Fri Feb 18 17:19:29 CET 2005 root@hellraiser.smega.com:/usr/obj/usr/src/sys/HELLRAISER-05-02-02 i386 >Description: After many calls of Runtime.getRuntime().exec(), which starts an external process, Java hangs reproducably in a STOP state and cannot be killed. (Not even with kill -9) >How-To-Repeat: Run any Java application, which makes extensive use of Runtime.getRuntime().exec(). With my application, I can reproduce the problem within an hour or so - on two different machines. >Fix: Apply David Xu's patch to kern_thread.c as described in http://lists.freebsd.org/pipermail/freebsd-current/2004-November/042407.html That change is also commited to 5.3-stable. However, maybe someone with a thorough understanding of the internal kernel structure should have a look at it. >Release-Note: >Audit-Trail: >Unformatted: