United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6648438 src/share/vm/prims/jvmtiEnv.cpp:457 assert(phase == JVMTI_PHASE_LIVE,"sanity check")
JDK-6648438 : src/share/vm/prims/jvmtiEnv.cpp:457 assert(phase == JVMTI_PHASE_LIVE,"sanity check")

Details
Type:
Bug
Submit Date:
2008-01-09
Status:
Resolved
Updated Date:
2012-10-01
Project Name:
JDK
Resolved Date:
2010-02-02
Component:
hotspot
OS:
generic
Sub-Component:
jvmti
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs16.1 (b01)

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:
Backport:
Backport:

Sub Tasks

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
SUGGESTED FIX

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

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

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

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

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

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



Hardware and Software, Engineered to Work Together