JDK-8031719 : ConcurrentAssociateTest, FJExceptionTableLeak, and ToArrayOpTest timeout
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 8,9
  • Priority: P1
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2014-01-14
  • Updated: 2016-12-19
  • Resolved: 2014-10-10
Related Reports
Relates :  
Relates :  
Description
#Test Results (version 2)
#Sat Jan 11 10:31:27 UTC 2014
#checksum:2b0a1a582d26ecf3
#-----testdescription-----
$file=/scratch/local/aurora/sandbox/sca/vmsqe/testbase/jtreg/nightly/comp_baseline/JT_JDK/test/java/util/concurrent/ConcurrentHashMap/ConcurrentAssociateTest.java
$root=/scratch/local/aurora/sandbox/sca/vmsqe/testbase/jtreg/nightly/comp_baseline/JT_JDK/test
keywords=bug8028564
run=USER_SPECIFIED testng ConcurrentAssociateTest\n
source=ConcurrentAssociateTest.java
title=Test that association operations, such as put and compute, place entries in the map

#-----environment-----

#-----testresult-----
description=file\:/scratch/local/aurora/sandbox/sca/vmsqe/testbase/jtreg/nightly/comp_baseline/JT_JDK/test/java/util/concurrent/ConcurrentHashMap/ConcurrentAssociateTest.java
elapsed=962693 0\:16\:02.693
end=Sat Jan 11 10\:31\:27 UTC 2014
environment=regtest
execStatus=Error. Program `/export/local/aurora/sandbox/sca/vmsqe/jdk/nightly/fastdebug/comp_baseline/linux-amd64/bin/java' interrupted\! (timed out?)
hostname=scaaa589.us.oracle.com
javatestOS=Linux 2.6.39-400.21.1.el6uek.x86_64 (amd64)
javatestVersion=4.4
jtregVersion=jtreg 4.1 fcs b06
script=com.sun.javatest.regtest.RegressionScript 
sections=script_messages build compile testng
start=Sat Jan 11 10\:15\:24 UTC 2014
test=java/util/concurrent/ConcurrentHashMap/ConcurrentAssociateTest.java
user.name=gtee
work=/scratch/local/aurora/sandbox/results/workDir/java/util/concurrent/ConcurrentHashMap

#section:script_messages
----------messages:(6/348)----------
JDK under test: (/export/local/aurora/sandbox/sca/vmsqe/jdk/nightly/fastdebug/comp_baseline/linux-amd64)
java version "1.8.0-ea-fastdebug"
Java(TM) SE Runtime Environment (build 1.8.0-ea-fastdebug-b122)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b62-internal-201401100542.anoll.8022494-fastdebug, mixed mode)

Timeout signaled after 960 seconds

#section:build
----------messages:(3/108)----------
command: build ConcurrentAssociateTest
reason: Named class compiled on demand
elapsed time (seconds): 2.687
result: Passed. Build successful

#section:compile
----------messages:(3/281)----------
command: compile -XDignore.symbol.file=true /scratch/local/aurora/sandbox/sca/vmsqe/testbase/jtreg/nightly/comp_baseline/JT_JDK/test/java/util/concurrent/ConcurrentHashMap/ConcurrentAssociateTest.java
reason: .class file out of date or does not exist
elapsed time (seconds): 2.687
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:testng
----------messages:(3/139)----------
command: testng ConcurrentAssociateTest
reason: User specified action: run testng ConcurrentAssociateTest 
elapsed time (seconds): 960.003
----------System.out:(4/153)----------
[TestNG] Running:
  java/util/concurrent/ConcurrentHashMap/ConcurrentAssociateTest.java

test public void ConcurrentAssociateTest.testCompute(): success
----------System.err:(0/0)----------
result: Error. Program `/export/local/aurora/sandbox/sca/vmsqe/jdk/nightly/fastdebug/comp_baseline/linux-amd64/bin/java' interrupted! (timed out?)


test result: Error. Program `/export/local/aurora/sandbox/sca/vmsqe/jdk/nightly/fastdebug/comp_baseline/linux-amd64/bin/java' interrupted! (timed out?)
Comments
Repeatable issue on Mach 5 Threads become locked and waiting for an event that never happens. They are timed out after 12 minutes in out case.
27-05-2015

Is a StackoverflowErrror occurring somewhere? This has similarity to other issues we have seen when the CHM lock is left appearing locked due to a StackOverflowError in the owning thread.
10-05-2015

Test java/util/concurrent/ConcurrentHashMap/ConcurrentAssociateTest.java fails on solaris-sparc during build/test on mach5 continuous integration system, http://java-stage.se.oracle.com/mach5/job/9-dev-tier1-solaris-sparc/ jtreg command: jtreg -e:buildid=BUILD_ID -agentvm -conc:8 -a -ea -esa -timeoutFactor:4 -J-Xmx512m -vmoption:-Xmx512m -verbose:fail,error,multirun -retain:fail,error -ignore:quiet -exclude:jdk/test/ProblemList.txt -exclude:jdk/test/closed/ProblemList.txt -xml:verify -reportDir:/scratch/jenkins/workspace/9-dev-tier1-solaris-sparc/JTreport -workDir:/scratch/jenkins/workspace/9-dev-tier1-solaris-sparc/JTwork -jdk:build/jdk langtools/test jdk/test:tier1 jtr status: execStatus=Error. Agent error\: java.lang.Exception\: Agent timed out with a timeout of 480 seconds; check console log for any additional details There are 53 of the ForkJoinPool.commonPool-worker-* stack traces follow by many lines of other output. See attached file for jtr and console output. command: testng ConcurrentAssociateTest reason: User specified action: run testng ConcurrentAssociateTest Timeout signalled after 480 seconds Timeout information: Running jstack on process 14874 2015-05-08 20:59:14 Full thread dump Java HotSpot(TM) 64-Bit Server VM (1.9.0-internal-javare_2015_05_08_20_27-b00 mixed mode): "Attach Listener" #412 daemon prio=9 os_prio=64 tid=0x0000000100f8f800 nid=0x242 waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "ForkJoinPool.commonPool-worker-71" #411 daemon prio=5 os_prio=64 tid=0x0000000100aaf000 nid=0x241 waiting for monitor entry [0xfffffffee3efe000] java.lang.Thread.State: BLOCKED (on object monitor) at java.util.concurrent.ConcurrentHashMap.merge(ConcurrentHashMap.java:1981) - waiting to lock <0x00000007b7dd7bf8> (a java.util.concurrent.ConcurrentHashMap$TreeBin) at ConcurrentAssociateTest.lambda$testMerge$6(ConcurrentAssociateTest.java:79) at ConcurrentAssociateTest$$Lambda$405/1634771929.accept(Unknown Source) at ConcurrentAssociateTest.lambda$null$8(ConcurrentAssociateTest.java:116) at ConcurrentAssociateTest$$Lambda$146/2126351478.run(Unknown Source) at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1626) at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1618) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1059) at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1694) at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
08-05-2015

There is no indication that the timeouts of the tests listed here have a common reason. Each failing test should have a separate bug. Please file bugs accordingly.
10-10-2014

I could find no indication that the timeouts of the bugs are in any sense related. So I suggest to close this bug as 'won't fix', and look at the tests (timeouts) of each test individually. Please let me know if there are any objections.
08-10-2014

Nightly bug ->P1
08-10-2014

The tests timeout with and without -XX:+DeoptimizeALot
08-10-2014

I'd say it will be fixed by JDK-8036913.
03-10-2014

Not convinced this is a core-libs bug (test or product). I suggest the compiler team start with finding out what happens and consider if the tests should be run like this or not.
02-10-2014

This test produces around 7 failures in the compiler nightly DeoptimizeALot run. We need a fix for this ASAP.
09-06-2014

RULE java/util/concurrent/ConcurrentHashMap/ConcurrentAssociateTest.java StatusError Program `...' interrupted! (timed out?) RULE java/util/concurrent/forkjoin/FJExceptionTableLeak.java StatusError Program `...' interrupted! (timed out?) RULE java/util/stream/test/org/openjdk/tests/java/util/stream/ToArrayOpTest.java StatusError Program `...' interrupted! (timed out?)
14-01-2014