JDK-6909804 : TEST_BUG: com/sun/jdi/DoubleAgentTest.java gets InterruptedException
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • OS: generic
  • CPU: generic
  • Submitted: 2009-12-11
  • Updated: 2013-08-21
  • Resolved: 2013-08-21
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 8
8Resolved
Related Reports
Duplicate :  
Relates :  
Description
Fedora 9 32bit -server was used.

This testcase is verifying that two agents cannot be loaded, but it appears to be getting an Interrupted exception.
This could be a spurious failure and may or may not reproduce.

--------------------------------------------------
TESTFAIL:com/sun/jdi/DoubleAgentTest.java
JDK under test: (/tmp/jprt/P2/T/012817.ohair/testproduct/linux_i586_2.6-product)
openjdk version "1.7.0-2009-12-11-012817.ohair.jdk"
OpenJDK Runtime Environment (build 1.7.0-2009-12-11-012817.ohair.jdk-jprtadm_2009_12_10_19_17-b00)
Java HotSpot(TM) Server VM (build 17.0-b05, mixed mode)
Timeout signalled after 480 seconds

ACTION: build -- Passed. Build successful
REASON: User specified action: run build VMConnection DoubleAgentTest Exit0 
TIME:   0.032 seconds
messages:
command: build VMConnection DoubleAgentTest Exit0
reason: User specified action: run build VMConnection DoubleAgentTest Exit0 
elapsed time (seconds): 0.032

ACTION: compile -- Passed. Compilation successful
REASON: .class file out of date or does not exist
TIME:   0.031 seconds
messages:
command: compile /tmp/jprt/P2/T/012817.ohair/source/test/com/sun/jdi/DoubleAgentTest.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.031

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

ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.InterruptedException
REASON: User specified action: run main DoubleAgentTest 
TIME:   480.006 seconds
messages:
command: main DoubleAgentTest
reason: User specified action: run main DoubleAgentTest 
elapsed time (seconds): 480.006
STDOUT:
Starting: /tmp/jprt/P2/T/012817.ohair/testproduct/linux_i586_2.6-product/jre/bin/java -classpath /tmp/jprt/P2/T/012817.ohair/source/build/linux-i586/testoutput/jdk_tools1/JTwork/classes/com/sun/jdi  -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=36332 -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=36332 Exit0
ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options.Error occurred during initialization of VM
agent library failed to init: jdwp

STDERR:
java.lang.InterruptedException
	at java.lang.Object.wait(Native Method)
	at java.lang.Object.wait(Object.java:502)
	at DoubleAgentTest.main(DoubleAgentTest.java:137)
	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:613)
	at com.sun.javatest.regtest.MainAction$SameVMThread.run(MainAction.java:575)
	at java.lang.Thread.run(Thread.java:717)

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


TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.InterruptedException
--------------------------------------------------

Comments
I have been running this test for 1000 iterations on linux x86-64 with no failures.
21-08-2013

I cannot find any records in aurora of this test failing in this way for the last year or so. I can see other failures of the test, but not this one.
21-08-2013