JDK-6613408 : com/sun/jdi/RunToExit.java fails with timeout
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 6u5
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2007-10-05
  • Updated: 2010-04-02
  • Resolved: 2007-10-05
Related Reports
Duplicate :  
Description
Test
	com/sun/jdi/RunToExit.java
failed with timeout during weekly for JDK 6u5 b04, log: http://gtee.sfbay/gtee2.0/results/JDK6UR/PROMOTION/VM/6u5/b04/071003044510/vm/cinnabar/client/mixed/vm-cinnabar_client_mixed_JDI_REGRESSION2007-10-03-04-53-41/com/sun/jdi/RunToExit.jtr

I see several issues in the RunToExit.java which can cause test failure:

- method RunToExit.main contains following code:
        synchronized(locker) {
            locker.wait();
        }

Here wait() is called outside the loop, so possible case when notify() will be called before wait() was called -> test will hang.

- another problem in RunToExit.main:
        VirtualMachine vm = conn.attach(conn_args);
        vm.eventRequestManager().deleteAllBreakpoints();
        vm.resume();

Test doesn't wait for VMStartEvent before call vm.resume(), this also can cause test hanging.

Comments
EVALUATION Yes, both problems were fixed in JDK 7 for CR 6454193. I added a sub CR for 6u5 to 6454193 and am closing this as a dup.
05-10-2007

EVALUATION At least some of this bug is already resolved by: 6454193 4/4 JTREG test bug: 'com/sun/jdi/RunToExit.java' fails with timeout which is in Dolphin-B22. Jim can say whether all is resolved.
05-10-2007