JDK-6648438 : src/share/vm/prims/jvmtiEnv.cpp:457 assert(phase == JVMTI_PHASE_LIVE,"sanity check")
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-01-09
  • Updated: 2012-10-01
  • Resolved: 2010-02-02
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 6 JDK 7 Other
6u19Fixed 7Fixed OpenJDK6,hs16Fixed
Description
Here are a couple of assertion failures from my nightly
analysis report:

New nsk.jvmti failures (from 2007.10.06)
    nsk/jvmti/AttachOnDemand/attach034
        This test failed the following assertion:

            Internal Error (src/share/vm/prims/jvmtiEnv.cpp:457)
            Error: assert(phase == JVMTI_PHASE_LIVE,"sanity check")

        on Solaris SPARC Client VM (machine jtgb4u2e). See similar
        failure for attach043 below.

The above failure was with a Dolphin-B21 JDK with a newer
VM, i.e., Dolphin-B22ish VM.


New nsk.jvmti failures (from 2007.08.21)
    nsk/jvmti/AttachOnDemand/attach043
        This test failed the following assertion:

            Internal Error (src/share/vm/prims/jvmtiEnv.cpp:457)
            Error: assert(phase == JVMTI_PHASE_LIVE,"sanity check")

        on Linux AMD64 Server VM (machine bunt).

        Update: Alan believes we have a product bug here since
            AddToSystemClassLoaderSearch() should be returning a phase
            error rather than asserting. He also believes we may have a
            timing bug in the test.

The above failure was with a Dolphin-B18 JDK with a newer
VM, i.e., Dolphin-B19ish VM.

Comments
EVALUATION ChangeSet=http://hg.openjdk.java.net/hsx/hsx16/baseline/rev/9127aa69352e,ChangeRequest=6648438
21-02-2010

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/9127aa69352e
23-12-2009

EVALUATION http://hg.openjdk.java.net/jdk6/jdk6/hotspot/rev/9127aa69352e
15-12-2009

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/9127aa69352e
14-12-2009

SUGGESTED FIX See the batch-20091211-webrev-cr0.tgz file that is attached to bug 6849968 for the proposed fix.
11-12-2009

EVALUATION Return a phase error instead of asserting.
11-12-2009