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

JDWP: VM crash induced by abruptly disconnecting jdb then reconnecting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • vm-legacy
    • None
    • generic
    • solaris_7

      I can easily crash the VM by connecting a debugger to it, disconnecting
      by killing the debugger, and then connecting again. Here are the results:


      An unexpected exception has been detected in native code outside the VM.
      Unexpected Signal : 11 occurred at PC=0xFC95FFF8
      Function=transport_receivePacket+0x24
      Library=/net/jdk.eng/export/disk6/promoted/jdk/1.4/beta_refresh/b74/binaries/solsparc/jre/lib/sparc/libjdwp.so

      Current Java thread:

      Dynamic libraries:
      0x10000 /usr/local/java/jdk1.4/solsparc/bin/javadoc
      0xff350000 /usr/lib/libsocks5_sh.so
      0xff310000 /usr/lib/libthread.so.1
      0xff390000 /usr/lib/libdl.so.1
      0xff200000 /usr/lib/libc.so.1
      0xff2e0000 /usr/lib/libsocket.so.1
      0xff100000 /usr/lib/libnsl.so.1
      0xff1e0000 /usr/lib/libmp.so.2
      0xff2d0000 /usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1
      0xfe400000 /net/jdk.eng/export/disk6/promoted/jdk/1.4/beta_refresh/b74/binaries/solsparc/jre/lib/sparc/client/libjvm.so
      0xff0b0000 /usr/lib/libCrun.so.1
      0xff080000 /usr/lib/libm.so.1
      0xff0e0000 /usr/lib/libw.so.1
      0xff040000 /net/jdk.eng/export/disk6/promoted/jdk/1.4/beta_refresh/b74/binaries/solsparc/jre/lib/sparc/native_threads/libhpi.so
      0xfe7d0000 /net/jdk.eng/export/disk6/promoted/jdk/1.4/beta_refresh/b74/binaries/solsparc/jre/lib/sparc/libverify.so
      0xfe3d0000 /net/jdk.eng/export/disk6/promoted/jdk/1.4/beta_refresh/b74/binaries/solsparc/jre/lib/sparc/libjava.so
      0xfe7b0000 /net/jdk.eng/export/disk6/promoted/jdk/1.4/beta_refresh/b74/binaries/solsparc/jre/lib/sparc/libzip.so
      0xfe150000 /usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.2
      0xfc940000 /net/jdk.eng/export/disk6/promoted/jdk/1.4/beta_refresh/b74/binaries/solsparc/jre/lib/sparc/libjdwp.so
      0xfc920000 /net/jdk.eng/export/disk6/promoted/jdk/1.4/beta_refresh/b74/binaries/solsparc/jre/lib/sparc/libdt_socket.so
      0xfc860000 /usr/lib/nss_nis.so.1
      0xfa7e0000 /net/jdk.eng/export/disk6/promoted/jdk/1.4/beta_refresh/b74/binaries/solsparc/jre/lib/sparc/libnio.so
      0xfa7c0000 /usr/lib/libposix4.so.1
      0xfa790000 /net/jdk.eng/export/disk6/promoted/jdk/1.4/beta_refresh/b74/binaries/solsparc/jre/lib/sparc/libnet.so
      0xfa6e0000 /usr/lib/libaio.so.1

      Local Time = Thu Aug 2 15:58:36 2001
      Elapsed Time = 7
      #
      # The exception above was detected in native code outside the VM
      #
      # Java VM: Java HotSpot(TM) Client VM (1.4.0-beta_refresh-b74 interpreted mode)
      #
      # An error report file has been saved as hs_err_pid17177.log.
      # Please refer to the file for further information.
      #
      Abort - core dumped

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

      See the following two concurrent sessions and the related attachments to reproduce this.


      frog:~/workspaces/test/4487683 $ sh cmd
      Listening for transport dt_socket at address: 36273
      T.java:2: <identifier> expected
          A f(B);
               ^
      R)esume, A)bort>
      Transport error, error code = -1
      Listening for transport dt_socket at address: 36277
      Transport error, error code = -1
      Listening for transport dt_socket at address: 36281
      Transport error, error code = -1
      FATAL ERROR in native method: JDWP "util.c" (May 16 2001), line 1097: Unexpected error, error code = 50 (JVMDI_ERROR_INVALID_MONITOR)

      Listening for transport dt_socket at address: 36285
      frog:~/workspaces/test/4487683 $ cat -n cmd
           1 ${JDK}/bin/javac -J-Xbootclasspath/p:./tools.jar -J-Xdebug -J-Xrunjdwp:transport=dt_socket,server=y,suspend=n -prompt T.java
           2
      frog:~/workspaces/test/4487683 $ echo $JDK
      /java/re/j2se/1.4.0/archive/beta/binaries/solsparc/
      frog:~/workspaces/test/4487683 $

      ---------------------

      sh
      frog:~/workspaces/test/4487683 $ export JDK=/java/re/j2se/1.4.0/archive/beta/binaries/solsparc/
      frog:~/workspaces/test/4487683 $ jdb -attach 36273
      Initializing jdb ...
      > threads
      Group system:
        (java.lang.ref.Reference$ReferenceHandler)0x3 Reference Handler cond. waiting
        (java.lang.ref.Finalizer$FinalizerThread)0x4 Finalizer cond. waiting
        (java.lang.Thread)0x5 Signal Dispatcher running
        (java.lang.Thread)0x6 CompileThread0 cond. waiting
      Group main:
        (java.lang.Thread)0x1 main running
      > frog:~/workspaces/test/4487683 $ jdb -attach 36277
      Internal exception:
      com.sun.jdi.VMDisconnectedException: Socket closed
      at com.sun.tools.jdi.TargetVM.send(TargetVM.java:264)
      at com.sun.tools.jdi.VirtualMachineImpl.sendToTarget(VirtualMachineImpl.java:873)
      at com.sun.tools.jdi.PacketStream.send(PacketStream.java:44)
      at com.sun.tools.jdi.JDWP$VirtualMachine$IDSizes.enqueueCommand(JDWP.java:476)
      at com.sun.tools.jdi.JDWP$VirtualMachine$IDSizes.process(JDWP.java:467)
      at com.sun.tools.jdi.VirtualMachineImpl.<init>(VirtualMachineImpl.java:176)
      at com.sun.tools.jdi.VirtualMachineManagerImpl.createVirtualMachine(VirtualMachineManagerImpl.java:162)
      at com.sun.tools.jdi.VirtualMachineManagerImpl.createVirtualMachine(VirtualMachineManagerImpl.java:170)
      at com.sun.tools.jdi.SocketAttachingConnector.attach(SocketAttachingConnector.java:69)
      at com.sun.tools.example.debug.tty.VMConnection.attachTarget(VMConnection.java:341)
      at com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:171)
      at com.sun.tools.example.debug.tty.Env.init(Env.java:66)
      at com.sun.tools.example.debug.tty.TTY.main(TTY.java:832)
      frog:~/workspaces/test/4487683 $ jdb -attach 36281
      Internal exception:
      com.sun.jdi.VMDisconnectedException: Socket closed
      at com.sun.tools.jdi.TargetVM.send(TargetVM.java:264)
      at com.sun.tools.jdi.VirtualMachineImpl.sendToTarget(VirtualMachineImpl.java:873)
      at com.sun.tools.jdi.PacketStream.send(PacketStream.java:44)
      at com.sun.tools.jdi.JDWP$VirtualMachine$IDSizes.enqueueCommand(JDWP.java:476)
      at com.sun.tools.jdi.JDWP$VirtualMachine$IDSizes.process(JDWP.java:467)
      at com.sun.tools.jdi.VirtualMachineImpl.<init>(VirtualMachineImpl.java:176)
      at com.sun.tools.jdi.VirtualMachineManagerImpl.createVirtualMachine(VirtualMachineManagerImpl.java:162)
      at com.sun.tools.jdi.VirtualMachineManagerImpl.createVirtualMachine(VirtualMachineManagerImpl.java:170)
      at com.sun.tools.jdi.SocketAttachingConnector.attach(SocketAttachingConnector.java:69)
      at com.sun.tools.example.debug.tty.VMConnection.attachTarget(VMConnection.java:341)
      at com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:171)
      at com.sun.tools.example.debug.tty.Env.init(Env.java:66)
      at com.sun.tools.example.debug.tty.TTY.main(TTY.java:832)
      frog:~/workspaces/test/4487683 $

      neal.gafter@Eng 2001-08-06

            rfield Robert Field (Inactive)
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: