JDK-6712206 : java/util/concurrent tests fail in Xcomp with assertion in HS13b02
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.concurrent
  • Affected Version: 6u12,7,7u6,9
  • Priority: P4
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • OS: generic,linux,solaris
  • CPU: generic,x86
  • Submitted: 2008-06-09
  • Updated: 2016-09-09
  • Resolved: 2016-09-09
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
The following tests fail (at least on Solaris-sparcv9) in -Xcomp mode 
with hs13b02 which is part of 6u6p:

 java/util/concurrent/ExecutorService/Invoke.java
may be related to CR6267833
 java/util/concurrent/locks/ReentrantReadWriteLock/ReadHoldingWriteLock.java
may be related to CR6519582 
 java/util/concurrent/ThreadPoolExecutor/CoreThreadTimeOut.java
 java/util/concurrent/ThreadPoolExecutor/Custom.java 




sample error messages.

----------messages:(3/204)----------
command: compile /export/local/common/testbase/jtreg/UTIL_REGRESSION/test/java/util/concurrent/ExecutorService/Invoke.java

java.lang.AssertionError: Assertion failure
	at Invoke.fail(Invoke.java:17)
	at Invoke.check(Invoke.java:30)
	at Invoke.check(Invoke.java:34)
	at Invoke.main(Invoke.java:59)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:619)
java.lang.Error: Some tests failed
	at Invoke.main(Invoke.java:67)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:619)

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

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


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

----------messages:(3/230)----------
command: compile /export/local/common/testbase/jtreg/UTIL_REGRESSION/test/java/util/concurrent/locks/ReentrantReadWriteLock/ReadHoldingWriteLock.java
reason: .class file out of date or does not exist
elapsed time (seconds): 22.75
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:main
----------messages:(3/140)----------
command: main ReadHoldingWriteLock
reason: Assumed action based on file name: run main ReadHoldingWriteLock 
elapsed time (seconds): 47.866
----------System.out:(0/0)----------
----------System.err:(19/958)----------
java version "1.6.0-p"
Java(TM) SE Runtime Environment (build 1.6.0-p-b00)
Java HotSpot(TM) Server VM (build 13.0-b02-2008-06-07-034521.et151817.hs13_b02-fastdebug, compiled mode)

java.lang.Error
	at ReadHoldingWriteLock.assertTrue(ReadHoldingWriteLock.java:24)
	at ReadHoldingWriteLock.testReadAfterWriteLock(ReadHoldingWriteLock.java:52)
	at ReadHoldingWriteLock.main(ReadHoldingWriteLock.java:14)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:619)

JavaTest Message: Test threw exception: java.lang.Error
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.Error
result: Failed. Execution failed: `main' threw exception: java.lang.Error

 /export/local/common/testbase/jtreg/UTIL_REGRESSION/test/java/util/concurrent/ThreadPoolExecutor/CoreThreadTimeOut.java
and others fail with


java.lang.Exception: Stack trace
	at java.lang.Thread.dumpStack(Thread.java:1206)
	at CoreThreadTimeOut.fail(CoreThreadTimeOut.java:13)
	at CoreThreadTimeOut.equal(CoreThreadTimeOut.java:18)
	at CoreThreadTimeOut.main(CoreThreadTimeOut.java:47)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:619)
java.lang.Exception: Some tests failed
	at CoreThreadTimeOut.main(CoreThreadTimeOut.java:52)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:619)

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

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


test result: Failed. Execution failed: `main' threw exception: java.lang.Exception: Some tests failed
java/util/concurrent/ThreadPoolExecutor/Custom.java also failed on windows host VM-8450R-2 in 
 -client -Xcomp mode.

java.lang.Exception: Stack trace
	at java.lang.Thread.dumpStack(Thread.java:1310)
	at Custom.fail(Custom.java:37)
	at Custom.equal(Custom.java:42)
	at Custom.main(Custom.java:115)
	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:623)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:674)
java.lang.Exception: Some tests failed
	at Custom.main(Custom.java:118)
	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:623)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:674)

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

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


test result: Failed. Execution failed: `main' threw exception: java.lang.Exception: Some tests failed
java/util/concurrent/ThreadPoolExecutor/CoreThreadTimeOut.java
failed on Linux-i586 peas with the same error message:
----------System.out:(4/43)----------
6 not equal to 10

Passed = 6, failed = 1

----------System.err:(24/1349)----------
java.lang.Exception: Stack trace
	at java.lang.Thread.dumpStack(Thread.java:1310)
	at CoreThreadTimeOut.fail(CoreThreadTimeOut.java:36)
	at CoreThreadTimeOut.equal(CoreThreadTimeOut.java:41)
	at CoreThreadTimeOut.main(CoreThreadTimeOut.java:68)
	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:623)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:674)
java.lang.Exception: Some tests failed
	at CoreThreadTimeOut.main(CoreThreadTimeOut.java:75)
	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:623)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:674)

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

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


test result: Failed. Execution failed: `main' threw exception: java.lang.Exception: Some tests failed
java/util/concurrent/TimeUnit/Basic.java
fails with a similiar output:
(on COLFAX005, under -client -Xmixed)
Passed = 63, failed = 1

----------System.err:(25/1327)----------
java.lang.Exception: Stack trace
	at java.lang.Thread.dumpStack(Thread.java:1310)
	at Basic.fail(Basic.java:86)
	at Basic.check(Basic.java:89)
	at Basic.realMain(Basic.java:66)
	at Basic.main(Basic.java:94)
	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:623)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:674)
java.lang.AssertionError: Some tests failed
	at Basic.main(Basic.java:96)
	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:623)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:674)

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
These tests fail also during JDK6u12 b01 Hotspot 11.2 b01 PIT,
with /net/sqenfs-1.sfbay/export1/comp/vm/jdk/hsx/11.2/pit/b01/jdk6u12b02/fastdebug 
see,
 http://sqeweb.sfbay/nfs/results/vm/gtee/HSX/PIT/VM/11.2/b01/jdk6u12b02/fastdebug/ 


java/util/concurrent/locks/ReentrantReadWriteLock/ReadHoldingWriteLock.java
java/util/concurrent/ThreadPoolExecutor/CoreThreadTimeOut.java
java/util/concurrent/ThreadPoolExecutor/Custom.java

We also observe similiar failures of 

java/util/concurrent/SynchronousQueue/Fairness.java
(may be related to CR 6633113)
java/util/concurrent/CountDownLatch/Basic.java
java/util/concurrent/Executors/AutoShutdown.java


java/util/concurrent/CountDownLatch/Basic.java
fails with:
without millis - ComingOut
with millis - ComingOut
with millis - ComingOut
without millis - ComingOut
with millis - ComingOut
with millis - ComingOut
VM option '-PrintVMOptions'
----------System.err:(13/680)----------
java.lang.AssertionError: 1 failures
	at Basic.main(Basic.java:164)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:619)

JavaTest Message: Test threw exception: java.lang.AssertionError: 1 failures
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.AssertionError: 1 failures
result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: 1 failures


java/util/concurrent/SynchronousQueue/Fairness.java
fails with 
java.lang.Exception: No fair!
	at Fairness.testFairness(Fairness.java:28)
	at Fairness.main(Fairness.java:33)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:619)

JavaTest Message: Test threw exception: java.lang.Exception: No fair!
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.Exception: No fair!
result: Failed. Execution failed: `main' threw exception: java.lang.Exception: No fair!


java/util/concurrent/Executors/AutoShutdown.java
fails with 
----------System.out:(5/70)----------
3 not equal to 1

Passed = 1, failed = 1

VM option '-PrintVMOptions'
----------System.err:(26/1416)----------
java.lang.Exception: Stack trace
	at java.lang.Thread.dumpStack(Thread.java:1206)
	at AutoShutdown.fail(AutoShutdown.java:33)
	at AutoShutdown.fail(AutoShutdown.java:34)
	at AutoShutdown.equal(AutoShutdown.java:38)
	at AutoShutdown.realMain(AutoShutdown.java:27)
	at AutoShutdown.main(AutoShutdown.java:40)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:619)
java.lang.AssertionError: Some tests failed
	at AutoShutdown.main(AutoShutdown.java:42)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:619)

Comments
Not seen since 2015
09-09-2016

Can someone provide the recipe for reproducing the failure? Both openjdk and jsr166 CVS would be useful.
06-10-2014

Still happens in HS Nightly September 2014
03-10-2014

As this appears to be a reliability issue with the test then I will remove the "regression" label,
10-04-2013