java/115557: jdk1.6.0: Runtime.exec(...) fails always
Ronald Klop
ronald-freebsd8 at klop.yi.org
Wed Aug 15 11:10:01 PDT 2007
>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 at 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 at 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:
More information about the freebsd-java
mailing list