Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4721071

JDI: assertion failure at klassVtable.hpp, 131

    • mantis
    • sparc
    • solaris_8
    • Verified



      Name: vpR10197 Date: 07/25/2002


      ------------------------------------------------------------------------------
      Test : nsk/jdi/VirtualMachine/redefineClasses/redefineclasses008
      Test Base : testbase_nsk
      VM : ServerVM, ClientVM
      Mode : comp, int, mixed
      Platform (s) : solsparc
      OS : 5.8
      JDK : 1.4.0-FCS, 1.4.1-b17
      ------------------------------------------------------------------------------

      The bug is reproduced since Merlin-FCS when debugee is executed on java_g.
      The test provokes the JDI method com.sun.jdi.VirtualMachine.redefineClasses()
      to throw the UnsupportedOperationException, trying to add method modifiers
      when canUnrestrictedlyRedefineClasses() method returns false.
      The test checks two different cases for suspended debugee and not
      suspended one.

      The test consists of the following files:
              redefineclasses008.java - debugger
              redefineclasses008a.java - initial debugee
              newclassXX/redefineclasses008a.java - redefining debugees
      and will be available in release r16 of the testbase_nsk.

      Steps to reproduce
      =================
      1. cd /net/sqesvr.sfbay/export/vsn/GammaBase/Bugs/<BugID>
      2. sh doit.sh $JAVA_HOME

      Crash diagnostics:
      -----------------------------------------------------

      TEST BEGINS
      ===========


      <<<Debugee is suspended>>>
      --------------------------

      adding <static> modifiers to public method>>>
      class-file :newclass01/nsk/jdi/VirtualMachine/redefineClasses/redefineclasses008/redefineclasses008a.klass
      debugee.stdout> #
      debugee.stdout> # HotSpot Virtual Machine Error, assertion failure
      debugee.stdout> # Please report this error at
      debugee.stdout> # http://java.sun.com/cgi-bin/bugreport.cgi
      debugee.stdout> #
      debugee.stdout> # Java VM: Java HotSpot(TM) Client VM (1.4.1-rc-b17-debug mixed mode)
      debugee.stdout> #
      debugee.stdout> # assert(method != 0, "use clear")
      debugee.stdout> #
      debugee.stdout> # Error happened during: VM_RedefineClasses
      debugee.stdout> #
      debugee.stdout> # Error ID: /BUILD_AREA/jdk1.4.1/hotspot/src/share/vm/oops/klassVtable.hpp, 131 [ Patched ]
      debugee.stdout> #
      debugee.stdout> # Problematic Thread: prio=5 tid=0x126088 nid=0x7 runnable
      debugee.stdout> #
      debugee.stdout> Dumping core....

      ======================================================================

            busersunw Btplusnull User (Inactive)
            vitpsunw Vitp Vitp (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: