JDK-7027061 : Testcase failure: java/util/Locale/Bug6989440.java - java.util.ConcurrentModificationException
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-03-12
  • Updated: 2012-08-07
  • Resolved: 2012-08-07
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.
JDK 7 JDK 8
7u4Fixed 8 b10Fixed
Related Reports
Relates :  
Relates :  
Description
Encountered this jdk7 regression test failure on Windows 64bit with the server VM.

--------------------------------------------------
TEST: java/util/Locale/Bug6989440.java
JDK under test: (C:\temp\jprt\P1\T\044413~1.OHA\TESTPR~1\WINDOW~1.2-P)
openjdk version "1.7.0-internal"
OpenJDK Runtime Environment (build 1.7.0-internal-201103120444.ohair.jdk-b00)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b03, mixed mode)


ACTION: compile -- Passed. Compilation successful
REASON: User specified action: run compile -XDignore.symbol.file=true Bug6989440.java 
TIME:   0.094 seconds
messages:
command: compile -XDignore.symbol.file=true C:\temp\jprt\P1\T\044413.ohair\source\test\java\util\Locale\Bug6989440.java
reason: User specified action: run compile -XDignore.symbol.file=true Bug6989440.java 
elapsed time (seconds): 0.094

ACTION: build -- Passed. All files up to date
REASON: Named class compiled on demand
TIME:   0.016 seconds
messages:
command: build Bug6989440
reason: Named class compiled on demand
elapsed time (seconds): 0.016

ACTION: main -- Failed. Execution failed: `main' threw exception: java.util.ConcurrentModificationException
REASON: User specified action: run main Bug6989440 
TIME:   120.031 seconds
messages:
command: main Bug6989440
reason: User specified action: run main Bug6989440 
elapsed time (seconds): 120.031
STDOUT:
STDERR:

JavaTest Message:  Test complete.


TEST RESULT: Failed. Execution failed: `main' threw exception: java.util.ConcurrentModificationException
--------------------------------------------------
Also failed differently:

--------------------------------------------------
TEST: java/util/Locale/Bug6989440.java
JDK under test: C:\temp\jprt\P2\T\232024~1.SMA\TESTPR~1\WINDOW~1.1-P


ACTION: compile -- Passed. Compilation successful
REASON: User specified action: run compile -XDignore.symbol.file=true Bug6989440.java 
TIME:   0.109 seconds
messages:
command: compile -XDignore.symbol.file=true C:\temp\jprt\P2\T\232024.smarks\source\test\java\util\Locale\Bug6989440.java
reason: User specified action: run compile -XDignore.symbol.file=true Bug6989440.java 
elapsed time (seconds): 0.109

ACTION: build -- Passed. All files up to date
REASON: Named class compiled on demand
TIME:   0.0 seconds
messages:
command: build Bug6989440
reason: Named class compiled on demand
elapsed time (seconds): 0.0

ACTION: main -- Error. Error while cleaning up threads after test
REASON: User specified action: run main Bug6989440 
TIME:   120.014 seconds
messages:
command: main Bug6989440
reason: User specified action: run main Bug6989440 
elapsed time (seconds): 120.014
STDOUT:
STDERR:

JavaTest Message:  Test complete.


TEST RESULT: Error. Error while cleaning up threads after test
--------------------------------------------------
Can SQE reproduce this problem? SQE should review this bug and agree that this bug can be deferred.

Comments
SUGGESTED FIX http://hg.openjdk.java.net/jdk8/tl/jdk/rev/829c3a8d23fa
12-10-2011

EVALUATION There may be still some potential issue in the locale implementation when multiple threads are interrupted simultaneously. Reopened/Moved this issue back to i18n.
05-10-2011

EVALUATION This message seems to be coming from JTREG: ACTION: main -- Error. Error while cleaning up threads after test REASON: User specified action: run main Bug6989440 so this needs to be looked at by jtreg folk to see why such an error might occur.
03-10-2011

EVALUATION This is not a JPRT bug. It may be possible that JPRT is running with jtreg -samevm mode and also turning on asserts (-ea -esa) and this is happening on Windows 2003 -server VM. So if someone cannot reproduce it, that's fine, but since JPRT has little to do with running this test other than running jtreg on a system, it can't be anything JPRT is doing directly.
16-05-2011

EVALUATION Per the suggestion in Comments section. I am transferring this bug to JPRT.
14-04-2011

EVALUATION I could not reproduce this outside the JPRT test harness. Could be because of some machine environment issue within it. I don't see this as a show stopper for JDK7 GA.
08-04-2011