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

jstack kills debugee process

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • core-svc
    • None
    • b49
    • x86
    • linux
    • Verified

      running jstack kills debugee process with following message:

      #
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      # SIGSEGV (0xb) at pc=0x405c39a4, pid=22513, tid=1273985968
      #
      # Java VM: Java HotSpot(TM) Server VM (1.6.0-ea-b46 mixed mode)
      # Problematic frame:
      # V [libjvm.so+0x45f9a4]
      #
      # An error report file with more information is saved as hs_err_pid22513.log
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      #

      jstack output:
      Exception in thread "main" java.io.IOException: Premature EOF
              at sun.tools.attach.HotSpotVirtualMachine.readInt(HotSpotVirtualMachine.java:197)
              at sun.tools.attach.LinuxVirtualMachine.execute(LinuxVirtualMachine.java:163)
              at sun.tools.attach.HotSpotVirtualMachine.remoteDataDump(HotSpotVirtualMachine.java:145)
              at sun.tools.jstack.JStack.jstack(JStack.java:173)
              at sun.tools.jstack.JStack.main(JStack.java:120)

      I have attached application been used as inspected process. Failure seems to depend on racing condition, so multiple runs needed to reporoduce failure.
      jmap and jinfo can't connect this application at all:

      Attaching to process ID 18526, please wait...
      Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process

            alanb Alan Bateman
            azhmursunw Anatoly Zhmur (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: