To reproduce:
ssh jtg-linux17.sfbay
cd /net/vmsqe.sfbay/export/weekly/mustang/results/1.6.0-rc-b92/ServerVM/RHAT4.0AS/comp/VM4/JDI_REGRESSION-27-WEEKLYmtg-VM4-ServerVM-comp-RHAT4.0AS-2006-07-27-15-27-49
sh rerun.sh
Test
'com/sun/jdi/RunToExit.java'
can't finish because of debuggee VM hangs, this is main thread dump obtained with jstack for debugeer VM:
"MainThread" prio=10 tid=0x0812f000 nid=0x4d32 in Object.wait() [0xac6b7000..0xac6b7ea0]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0xad588870> (a java.lang.UNIXProcess)
at java.lang.Object.wait(Object.java:485)
at java.lang.UNIXProcess.waitFor(UNIXProcess.java:165)
- locked <0xad588870> (a java.lang.UNIXProcess)
at RunToExit.main(RunToExit.java:149)
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:82)
at java.lang.Thread.run(Thread.java:619)
Thread dump for hanging debuggee VM:
JVM version is 1.6.0-rc-b93
Deadlock Detection:
No deadlocks found.
Thread 19771: (state = BLOCKED)
Thread 19770: (state = BLOCKED)
- java.lang.Object.wait(long) @bci=0 (Interpreted frame)
- java.lang.ref.ReferenceQueue.remove(long) @bci=44, line=116 (Interpreted frame)
- java.lang.ref.ReferenceQueue.remove() @bci=2, line=132 (Interpreted frame)
- java.lang.ref.Finalizer$FinalizerThread.run() @bci=3, line=159 (Interpreted frame)
Thread 19769: (state = BLOCKED)
- java.lang.Object.wait(long) @bci=0 (Interpreted frame)
- java.lang.Object.wait() @bci=2, line=485 (Interpreted frame)
- java.lang.ref.Reference$ReferenceHandler.run() @bci=46, line=116 (Interpreted frame)
Thread 19767: (state = BLOCKED)
This test is also known as:
closed/com/sun/jdi/RunToExit.java
Test
com/sun/jdi/BadHandshakeTest.java
fails intermittently in the same way.