From owner-freebsd-java@FreeBSD.ORG Wed Aug 15 18:10:01 2007 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92A4F16A41B for ; Wed, 15 Aug 2007 18:10:01 +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 53C6613C465 for ; Wed, 15 Aug 2007 18:10:01 +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 l7FIA17i071751 for ; Wed, 15 Aug 2007 18:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7FIA1ai071750; Wed, 15 Aug 2007 18:10:01 GMT (envelope-from gnats) Resent-Date: Wed, 15 Aug 2007 18:10:01 GMT Resent-Message-Id: <200708151810.l7FIA1ai071750@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-java@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Ronald Klop" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07F7B16A418 for ; Wed, 15 Aug 2007 18:06:27 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out2.tiscali.nl (smtp-out2.tiscali.nl [195.241.79.177]) by mx1.freebsd.org (Postfix) with ESMTP id BDEC913C457 for ; Wed, 15 Aug 2007 18:06:26 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from [82.171.39.195] (helo=guido.klop.ws) by smtp-out2.tiscali.nl with smtp (Tiscali http://www.tiscali.nl) id 1ILN1Y-0002r9-Dh for ; Wed, 15 Aug 2007 19:51:16 +0200 Received: (qmail 50828 invoked from network); 15 Aug 2007 17:51:11 -0000 Received: from localhost (HELO guido.klop.ws) (127.0.0.1) by localhost with SMTP; 15 Aug 2007 17:51:11 -0000 Message-Id: <1187200271.50815@guido.klop.ws> Date: Wed, 15 Aug 2007 19:51:11 +0200 From: "Ronald Klop" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.8 Cc: ronald-freebsd8@klop.yi.org Subject: java/115557: jdk1.6.0: Runtime.exec(...) fails always X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Aug 2007 18:10:01 -0000 >Number: 115557 >Category: java >Synopsis: jdk1.6.0: Runtime.exec(...) fails always >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-java >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 15 18:10:00 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Ronald Klop >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD 6.2-STABLE #29: Sat Jul 14 14:44:18 CEST 2007 root@guido.klop.ws:/usr/obj/usr/src/sys/GUIDO >Description: When I run this programm, I always get exitCode == 255. $ java -version java version "1.6.0_01-p1" Java(TM) SE Runtime Environment (build 1.6.0_01-p1-root_12_aug_2007_22_50-b00) Java HotSpot(TM) Client VM (build 1.6.0_01-p1-root_12_aug_2007_22_50-b00, mixed mode) $ uname -a FreeBSD ronald.office.base.nl 6.2-STABLE FreeBSD 6.2-STABLE #74: Sat Jul 14 13:11:40 CEST 2007 root@ronald.office.base.nl:/usr/obj/usr/src/sys/RONALD i386 I found it with other code, but this is my small testcase to reproduce it. >How-To-Repeat: Compile and run this java programm. import java.io.IOException; final class ExecTest { public static void main(String[] args) throws IOException, InterruptedException { Runtime rt = Runtime.getRuntime(); Process p = rt.exec("/bin/ls"); int exitCode = p.waitFor(); System.out.println("ExitCode: " + exitCode); } } >Fix: >Release-Note: >Audit-Trail: >Unformatted: