JDK-7152183 : TEST_BUG: java/lang/ProcessBuilder/Basic.java failing intermittently [sol]
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-03-08
  • Updated: 2013-12-17
  • Resolved: 2012-10-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
7u21Fixed 8 b63Fixed
This test has failed intermittently on Solaris a few times, see attach jtreg for an example.

Note that this test should not be added to the ProblemList because the test coverage that it provides it too great.

#Test Results (version 2)
#Wed Mar 07 21:15:04 PST 2012
author=Martin Buchholz
keywords=bug4199068 bug4738465 bug4937983 bug4930681 bug4926230 bug4931433 bug4932663 bug4986689 bug5026830 bug5023243 bug5070673 bug4052517 bug4811767 bug6192449 bug6397034 bug6413313 bug6464154 bug6523983 bug6206031 bug4960438 bug6631352 bug6631966 bug6850957 bug6850958 bug4947220 bug7018606 bug7034570 othervm
run=USER_SPECIFIED main/othervm/timeout\=300 Basic\n
title=Basic tests for Process and Environment Variable code


elapsed=32605 0\:00\:32.605
end=Wed Mar 07 21\:15\:04 PST 2012
execStatus=Failed. Execution failed\: `main' threw exception\: java.lang.AssertionError\: Some tests failed
javatestOS=SunOS 5.10 (sparc)
sections=script_messages build compile main
start=Wed Mar 07 21\:14\:31 PST 2012

JDK under test: (/Users/aurora/sandbox/jdk)
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-langtools-nightly-h185-20120307-b29-b00)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b16, mixed mode)

command: build Basic
reason: Named class compiled on demand
elapsed time (seconds): 0.994
result: Passed. Build successful

command: compile /Users/aurora/sandbox/testbase/test/java/lang/ProcessBuilder/Basic.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.992
result: Passed. Compilation successful

command: main Basic
reason: User specified action: run main/othervm/timeout=300 Basic 
elapsed time (seconds): 31.608
This appears to be a Unix system.
Testing ASCII environment values
Testing directory .
Testing directory ..
Testing directory /
Testing directory /bin
cmdp 0: /Users/aurora/sandbox/jdk/jre/bin/java
cmdp 1: -classpath
cmdp 2: /Users/aurora/sandbox/jtreg/lib/javatest.jar:/Users/aurora/sandbox/jtreg/lib/jtreg.jar:/Users/aurora/sandbox/gresults/testoutput/jdk_lang/JTwork/classes/java/lang/ProcessBuilder:/Users/aurora/sandbox/testbase/test/java/lang/ProcessBuilder:/Users/aurora/sandbox/jdk/lib/tools.jar
cmdp 3: Basic$JavaChild
cmdp 4: System.getenv()
envp 0: LC_ALL=C\u0000\u0000
envp 1: FO\u0000=B\u0000R

Passed = 9006, failed = 1

java.io.IOException: Stream Closed
	at java.io.FileInputStream.read(Native Method)
	at java.lang.UNIXProcess$DeferredCloseInputStream.read(UNIXProcess.java:253)
	at Basic$64.run(Basic.java:1908)
java.lang.AssertionError: Some tests failed
	at Basic.main(Basic.java:2248)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:474)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:722)

JavaTest Message: Test threw exception: java.lang.AssertionError: Some tests failed
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.AssertionError: Some tests failed
result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Some tests failed

test result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Some tests failed

EVALUATION Most likely this is a case where the test needs to handle a Stream Closed error.