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

JDI: debugee crashes while creating ModificationWatchpointEvent

    • sparc
    • solaris_7



      Name: dkR10014 Date: 02/20/2001



      Hotspot crashes while executing as target VM in the following test
      from testbase_nsk:

         nsk/jdi/WatchpointEvent/object/object001

      The crash is observed for both ladybird and merlin on Solaris 2.7
       
      The test exercises com.sun.jdi.event.WatchpointEvent.object() method.
      The debugger part of the test (object001.java) creates
      ModificationWatchpointRequest for non-static fields of loaded class
      in target VM (object001a.java). Then the debugger checks if
      WatchpointEvents are received for requested fields.

      JDK version
      -----------
      java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b52)
      Java HotSpot(TM) Client VM (build 1.4beta-B52, mixed mode)

      java version "1.3.1-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-beta-b16)
      Java HotSpot(TM) Client VM (build 1.3.1beta-b16, mixed mode)

      The test will appear in the next testbase_nsk release located at:

          /net/sqesvr.eng/export/vsn/VM/testbase/testbase_nsk

      To reproduce the failure please run 'doit.sh' script found in the
      directory:

          /net/sqesvr.eng/export/vsn/GammaBase/Bugs/<this bug number>

      Use:
          sh doit.sh $JAVA_HOME

      Test output executed with Client HS (build 1.3.1-beta-b16) on Solaris 2.7
      ===========================================================================
      bash-2.00$ doit.ksh /export/ld24/java/hotspot/jdk1.3.1/solsparc
      Compiling share classes...
      Compiling test classes...
      java version "1.3.1-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-beta-b16)
      Java HotSpot(TM) Client VM (build 1.3.1beta-b16, mixed mode)
      Connecting to debugee
      Binder> VirtualMachineManager: version 1.3
      Binder> LaunchingConnector:
      Binder> name: com.sun.jdi.CommandLineLaunch
      Binder> description: Launches target using Sun Java VM command line and attaches to it
      Binder> transport: dt_socket
      Binder> Arguments:
      Binder> home=/export/ld50/java/dest/jdk1.3.1-b16/solsparc
      Binder> vmexec=java
      Binder> options=
      Binder> main=nsk.jdi.WatchpointEvent.object.object001a "-verbose"
      Binder> quote="
      Binder> suspend=true
      Adding event handler to event listener
      Resuming debugee
      Waiting for command: ready
      Creating requests for WatchpointEvent
      AccessWatchpointRequest for int field int01 created
      ModificationWatchpointRequest for int field int01 created
      AccessWatchpointRequest for int field int02 created
      ModificationWatchpointRequest for int field int02 created
      AccessWatchpointRequest for java.lang.String field str01 created
      ModificationWatchpointRequest for java.lang.String field str01 created
      AccessWatchpointRequest for java.lang.String field str02 created
      ModificationWatchpointRequest for java.lang.String field str02 created
      Sending command: go
      Sending command: quit
      Waiting for debugee terminating
      WatchpointEvent received for instance field int01
       of instance of nsk.jdi.WatchpointEvent.object.object001a(id=80)
      WatchpointEvent received for instance field int01
       of instance of nsk.jdi.WatchpointEvent.object.object001a(id=80)
      WatchpointEvent received for instance field int02
       of instance of nsk.jdi.WatchpointEvent.object.object001a(id=80)
      Waiting for event listener terminating
      # ERROR: WatchpointEvent was not received for str01
      # ERROR: WatchpointEvent was not received for str02
      debugee.out>
      debugee.out> Unexpected Signal : 10 occurred at PC=0xfe619568
      debugee.out> Function name=JVM_EnableCompiler
      debugee.out> Library=/export/ld50/java/dest/jdk1.3.1-b16/solsparc/jre/lib/sparc/client/libjvm.so
      debugee.out>
      debugee.out> Current Java thread:
      debugee.out>
      debugee.out> Dynamic libraries:
      debugee.out> 0x10000
      /export/ld50/java/dest/jdk1.3.1-b16/solsparc/bin/../bin/sparc/native_threads/java
      debugee.out> 0xff350000 /usr/lib/libthread.so.1
      debugee.out> 0xff390000 /usr/lib/libdl.so.1
      debugee.out> 0xff280000 /usr/lib/libc.so.1
      debugee.out> 0xff270000 /usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1
      debugee.out> 0xfe480000
      /export/ld50/java/dest/jdk1.3.1-b16/solsparc/jre/lib/sparc/client/libjvm.so
      debugee.out> 0xff210000 /usr/lib/libCrun.so.1
      debugee.out> 0xff1f0000 /usr/lib/libsocket.so.1
      debugee.out> 0xff100000 /usr/lib/libnsl.so.1
      debugee.out> 0xff1b0000 /usr/lib/libm.so.1
      debugee.out> 0xff240000 /usr/lib/libw.so.1
      debugee.out> 0xff0d0000 /usr/lib/libmp.so.2
      debugee.out> 0xff0a0000
      /export/ld50/java/dest/jdk1.3.1-b16/solsparc/jre/lib/sparc/native_threads/libhpi.so
      debugee.out> 0xff070000
      /export/ld50/java/dest/jdk1.3.1-b16/solsparc/jre/lib/sparc/libverify.so
      debugee.out> 0xff020000
      /export/ld50/java/dest/jdk1.3.1-b16/solsparc/jre/lib/sparc/libjava.so
      debugee.out> 0xfe450000
      /export/ld50/java/dest/jdk1.3.1-b16/solsparc/jre/lib/sparc/libzip.so
      debugee.out> 0xfd2c0000
      /export/ld50/java/dest/jdk1.3.1-b16/solsparc/bin/../jre/../lib/sparc/libjdwp.so
      debugee.out> 0xfd3a0000
      /export/ld50/java/dest/jdk1.3.1-b16/solsparc/bin/../jre/../lib/sparc/libdt_socket.so
      debugee.out> 0xfd2a0000 /usr/lib/nss_nisplus.so.1
      debugee.out> 0xfd1e0000 /usr/lib/libdoor.so.1
      debugee.out>
      debugee.out> Local Time = Tue Feb 20 13:05:26 2001
      debugee.out> Elapsed Time = 2
      debugee.out> #
      debugee.out> # HotSpot Virtual Machine Error : 10
      debugee.out> # Error ID : 4F530E43505002CC 01
      debugee.out> # Please report this error at
      debugee.out> # http://java.sun.com/cgi-bin/bugreport.cgi
      debugee.out> #
      debugee.out> # Java VM: Java HotSpot(TM) Client VM (1.3.1beta-b16 interpreted mode)
      debugee.out> #
      debugee.out> # An error report file has been saved as hs_err_pid1567.log.
      debugee.out> # Please refer to the file for further information.
      debugee.out> #

      Test output executed with Client HS (build 1.4.0-beta-b52) on Solaris 2.7
      ==========================================================================
      bash-2.00$ doit.ksh /export/ld24/java/hotspot/jdk1.4/solsparc
      Compiling share classes...
      Compiling test classes...
      java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b52)
      Java HotSpot(TM) Client VM (build 1.4beta-B52, mixed mode)
      Connecting to debugee
      Binder> VirtualMachineManager: version 1.4
      Binder> LaunchingConnector:
      Binder> name: com.sun.jdi.CommandLineLaunch
      Binder> description: Launches target using Sun Java VM command line and attaches to it
      Binder> transport: dt_socket
      Binder> Arguments:
      Binder> home=/export/ld50/java/dest/jdk1.4.0beta-b52/solsparc
      Binder> vmexec=java
      Binder> options=
      Binder> main=nsk.jdi.WatchpointEvent.object.object001a "-verbose"
      Binder> quote="
      Binder> suspend=true
      Adding event handler to event listener
      Resuming debugee
      Waiting for command: ready
      Creating requests for WatchpointEvent
      AccessWatchpointRequest for int field int01 created
      ModificationWatchpointRequest for int field int01 created
      AccessWatchpointRequest for int field int02 created
      ModificationWatchpointRequest for int field int02 created
      AccessWatchpointRequest for java.lang.String field str01 created
      ModificationWatchpointRequest for java.lang.String field str01 created
      AccessWatchpointRequest for java.lang.String field str02 created
      ModificationWatchpointRequest for java.lang.String field str02 created
      Sending command: go
      Sending command: quit
      Waiting for debugee terminating
      Waiting for event listener terminating
      # ERROR: WatchpointEvent was not received for int01
      # ERROR: WatchpointEvent was not received for int02
      # ERROR: WatchpointEvent was not received for str01
      # ERROR: WatchpointEvent was not received for str02
      debugee.out>
      debugee.out> Unexpected Signal : 11 occurred at PC=0xfe591268
      debugee.out> Function name=JVM_EnableCompiler
      debugee.out>
      Library=/export/ld50/java/dest/jdk1.4.0beta-b52/solsparc/jre/lib/sparc/client/libjvm.so
      debugee.out>
      debugee.out> Current Java thread:
      debugee.out>
      debugee.out> Dynamic libraries:
      debugee.out> 0x10000
      /export/ld50/java/dest/jdk1.4.0beta-b52/solsparc/bin/../bin/sparc/native_threads/java
      debugee.out> 0xff350000 /usr/lib/libthread.so.1
      debugee.out> 0xff390000 /usr/lib/libdl.so.1
      debugee.out> 0xff280000 /usr/lib/libc.so.1
      debugee.out> 0xff270000 /usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1
      debugee.out> 0xfe400000
      /export/ld50/java/dest/jdk1.4.0beta-b52/solsparc/jre/lib/sparc/client/libjvm.so
      debugee.out> 0xff210000 /usr/lib/libCrun.so.1
      debugee.out> 0xff1f0000 /usr/lib/libsocket.so.1
      debugee.out> 0xff100000 /usr/lib/libnsl.so.1
      debugee.out> 0xff1b0000 /usr/lib/libm.so.1
      debugee.out> 0xff240000 /usr/lib/libw.so.1
      debugee.out> 0xff0d0000 /usr/lib/libmp.so.2
      debugee.out> 0xff0b0000
      /export/ld50/java/dest/jdk1.4.0beta-b52/solsparc/jre/lib/sparc/native_threads/libhpi.so
      debugee.out> 0xff080000
      /export/ld50/java/dest/jdk1.4.0beta-b52/solsparc/jre/lib/sparc/libverify.so
      debugee.out> 0xff020000
      /export/ld50/java/dest/jdk1.4.0beta-b52/solsparc/jre/lib/sparc/libjava.so
      debugee.out> 0xfe7e0000
      /export/ld50/java/dest/jdk1.4.0beta-b52/solsparc/jre/lib/sparc/libzip.so
      debugee.out> 0xfccc0000
      /export/ld50/java/dest/jdk1.4.0beta-b52/solsparc/bin/../jre/../lib/sparc/libjdwp.so
      debugee.out> 0xfcfd0000
      /export/ld50/java/dest/jdk1.4.0beta-b52/solsparc/bin/../jre/../lib/sparc/libdt_socket.so
      debugee.out> 0xfcca0000 /usr/lib/nss_nisplus.so.1
      debugee.out> 0xfcc80000 /usr/lib/libdoor.so.1
      debugee.out>
      debugee.out> Local Time = Tue Feb 20 13:05:50 2001
      debugee.out> Elapsed Time = 4
      debugee.out> #
      debugee.out> # HotSpot Virtual Machine Error : 11
      debugee.out> # Error ID : 4F530E43505002C3 01
      debugee.out> # Please report this error at
      debugee.out> # http://java.sun.com/cgi-bin/bugreport.cgi
      debugee.out> #
      debugee.out> # Java VM: Java HotSpot(TM) Client VM (1.4beta-B52 interpreted mode)
      debugee.out> #
      debugee.out> # An error report file has been saved as hs_err_pid1616.log.
      debugee.out> # Please refer to the file for further information.
      debugee.out> #

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

            rfield Robert Field (Inactive)
            kdossunw Kdos Kdos (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: