United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7027061 Testcase failure: java/util/Locale/Bug6989440.java - java.util.ConcurrentModificationException
JDK-7027061 : Testcase failure: java/util/Locale/Bug6989440.java - java.util.ConcurrentModificationException

Details
Type:
Bug
Submit Date:
2011-03-12
Status:
Closed
Updated Date:
2012-08-07
Project Name:
JDK
Resolved Date:
2012-08-07
Component:
core-libs
OS:
generic
Sub-Component:
java.util:i18n
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Relates:
Relates:

Sub Tasks

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
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.
                                     
2011-04-08
EVALUATION

Per the suggestion in Comments section. I am transferring this bug to JPRT.
                                     
2011-04-14
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.
                                     
2011-05-16
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.
                                     
2011-10-03
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.
                                     
2011-10-05
SUGGESTED FIX

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



Hardware and Software, Engineered to Work Together