JDK-4682107 : Reg-test ConnectedVMs.java Failing
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 1.4.1
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2002-05-09
  • Updated: 2002-05-24
  • Resolved: 2002-05-16
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.
Other
1.4.1 betaFixed
Related Reports
Relates :  
Description
Name: as83306			Date: 05/08/2002

Regression test com/sun/jdi/ConnectedVMs.java fails with Hopper build 10 on SuSe Linux 7.1, host-seahund, 
desktop-KDE and hotspot-server.  Also fails on Solaris.

The previous bug for this test is 4392015 for Merlin.

 For test hardware config's, see http://sqesvr.eng/st3/jdk1.4/docs/Merlin-hw.html
#Test Results (version 2)
#Wed Apr 24 01:08:15 PDT 2002
#checksum:1f6698f4e5afbdd
#-----testdescription-----
$file=/export0/regression/jdk1.4.1Tests/b10/com/sun/jdi/ConnectedVMs.java
$root=/export0/regression/jdk1.4.1Tests/b10
author=Robert Field
keywords=bug4329140
run=USER_SPECIFIED build TestScaffold VMConnection TargetListener TargetAdapter\nUSER_SPECIFIED compile -g 
InstTarg.java\nUSER_SPECIFIED main ConnectedVMs InstTarg\n
source=ConnectedVMs.java
title=ConnectedVMs checks the method VirtualMachineManager.connectedVirtualMachines()

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

#-----testresult-----
description=file:///export0/regression/jdk1.4.1Tests/b10/com/sun/jdi/ConnectedVMs.java
end=Wed Apr 24 01:08:15 PDT 2002
environment=regtest
execStatus=Failed. Execution failed: Program `/export0/java/jdk141b10/bin/java' interrupted! (timed out?)
javatestOS=Linux 2.2.18 (i386)
javatestVersion=2.1.5
script=com.sun.javatest.regtest.RegressionScript 
sections=script_messages build compile build compile main
start=Wed Apr 24 01:06:10 PDT 2002
status=Failed. Execution failed: Program `/export0/java/jdk141b10/bin/java' interrupted! (timed out?)
test=com/sun/jdi/ConnectedVMs.java
work=/export0/results/regression/hopper/b10/seahund2.2.18-jthb10-jdk141b10.04-23.20.13-ALL/com/sun/jdi

#section:script_messages
----------messages:(5/240)----------
JDK under test: (/export0/java/jdk141b10)
java version "1.4.1-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b10)
Java HotSpot(TM) Client VM (build 1.4.1-beta-b10, mixed mode)
Timeout signalled after 120.0 seconds

#section:build
----------messages:(3/158)----------
command: build TargetAdapter 
reason: User specified action: run build TestScaffold VMConnection TargetListener TargetAdapter 
elapsed time (seconds): 0.0090
result: Passed. No need to compile: TargetAdapter.java

#section:compile
----------messages:(3/173)----------
command: compile /export0/regression/jdk1.4.1Tests/b10/com/sun/jdi/InstTarg.java 
reason: User specified action: run compile -g InstTarg.java 
elapsed time (seconds): 2.566
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:build
----------messages:(3/97)----------
command: build ConnectedVMs 
reason: Named class compiled on demand
elapsed time (seconds): 3.13
result: Passed. Compilation successful

#section:compile
----------messages:(3/166)----------
command: compile /export0/regression/jdk1.4.1Tests/b10/com/sun/jdi/ConnectedVMs.java 
reason: .class file out of date or does not exist
elapsed time (seconds): 3.128
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:main
----------messages:(3/130)----------
command: main ConnectedVMsInstTarg
reason: User specified action: run main ConnectedVMs InstTarg 
elapsed time (seconds): 120.004
----------System.out:(8/298)----------
create
Testing Kill
JVM version:1.4.1-beta
JDI version: 1.4
JVM description: Java Debug Interface (Reference Implementation) version 1.4 
Java Debug Wire Protocol (Reference Implementation) version 1.4
JVM Debug Interface version 1.2
JVM version 1.4.1-beta (Java HotSpot(TM) Client VM, mixed mode)
----------System.err:(1/31)----------
run args: [InstTarg, InstTarg]
result: Failed. Execution failed: Program `/export0/java/jdk141b10/bin/java' interrupted! (timed out?)


test result: Failed. Execution failed: Program `/export0/java/jdk141b10/bin/java' interrupted! (timed out?)
======================================================================
###@###.### 2002-05-24

Verified with Build 13 on Solaris 7 and SuSe Linux 7.1

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: hopper-beta FIXED IN: hopper-beta INTEGRATED IN: hopper-beta VERIFIED IN: hopper-beta
14-06-2004

EVALUATION The root cause for this bug is that before_exit(), which is executed during VM shutdown, is not MT-safe. It could cause hangs or crashes if multiple threads try to exit at the same time. In this testcase, two threads are trying to stop the WatcherThread, but only one is notified when the watcher thread exits. The other thread remains waiting in pthread_cond_wait(), while it holds a lock that eventually deadlocks the first thread. The debuggee VM hangs and we have this failure. ###@###.### 2002-05-10 ----------------------------------------- Fixed by adding a lock to before_exit() ###@###.### 2002-05-15
10-05-2002