JDK-8069303 : JDI test failed with JVMTI_ERROR_WRONG_PHASE(112) on exit
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2015-01-19
  • Updated: 2017-03-02
  • Resolved: 2016-06-29
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 9
9Resolved
Related Reports
Relates :  
Sub Tasks
JDK-8069304 :  
Description
nsk/jdi/VirtualMachine/redefineClasses/redefineclasses014 failed with

[2015-01-17T05:10:01.61] debugee.stderr> completed succesfully.
[2015-01-17T05:10:01.63] debugee.stdout> FATAL ERROR in native method: JDWP signature, jvmtiError=JVMTI_ERROR_WRONG_PHASE(112)
[2015-01-17T05:10:01.63] debugee.stdout> # To suppress the following error report, specify this argument
[2015-01-17T05:10:01.63] debugee.stdout> # after -XX: or in .hotspotrc:  SuppressErrorAt=\mutex.cpp:335
[2015-01-17T05:10:01.63] debugee.stderr> JDWP exit error JVMTI_ERROR_WRONG_PHASE(112): signature [eventHelper.c:385]
[2015-01-17T05:10:02.01] Exception in thread "main" nsk.share.Failure: Got unexpected debugee VM exit status: 1 (not 95)

RULE nsk/jdi/VirtualMachine/redefineClasses/redefineclasses014 Exception nsk.share.Failure: Got unexpected debugee VM exit status: ... (not ...)
Comments
Thank you for the correction. The decision was changed what is counted as a main bug and what is the dup, so I corrected the link but the comment became obsolete.
02-03-2017

This bug is actually closed as a duplicate of this bug: JDK-8134103 JVMTI_ERROR_WRONG_PHASE(112): on checking for an interface JDK-8155153, mentioned in the previous comment, is also closed as a duplicate of JDK-8134103.
02-03-2017

I'm closing this bug as dup of the 8155153 as it has the same root cause and need the same fix to get it resolved.
29-06-2016

ILW=M (debugger agent only on windows) L (rare) H (no) = P4
16-07-2015

This bug is related to the https://bugs.openjdk.java.net/browse/JDK-6988950. The fix was (I'm posting it for convenience): http://cr.openjdk.java.net/~sspitsyn/webrevs/2014/jdk/6988950-JDWP-wrong-phase.4/ My guess is that one case left uncovered. Need to find out what is it exactly.
28-01-2015