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

SA: jstack -F on win32 needs more friendly handling of wrong PID

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 6
    • core-svc
    • x86
    • windows_2000

      On windows, it is easy to make a mistake and give the cygwin/mks process
      ID to an SA util, instead of the underlying windows PID (ie, that reported
      by jps). If this happens, the user sees the below. We should get rid
      of the stack trace, the incorrect message saying 'Debugger attached successfully,
      etc.


       c:/build/control/j2sdk-image/bin/jstack -m 252
      Attaching to process ID 252, please wait...
      sun.jvm.hotspot.debugger.NoSuchSymbolException: Could not find symbol "gHotSpotVMTypeEntryTypeNameOffset" in any of the known library names (jvm.dll, jvm_g.dll)
      at sun.jvm.hotspot.HotSpotTypeDataBase.lookupInProcess(HotSpotTypeDataBase.java:371)
      at sun.jvm.hotspot.HotSpotTypeDataBase.getLongValueFromProcess(HotSpotTypeDataBase.java:352)
      at sun.jvm.hotspot.HotSpotTypeDataBase.readVMTypes(HotSpotTypeDataBase.java:85)
      at sun.jvm.hotspot.HotSpotTypeDataBase.<init>(HotSpotTypeDataBase.java:68)
      at sun.jvm.hotspot.bugspot.BugSpotAgent.setupVM(BugSpotAgent.java:547)
      at sun.jvm.hotspot.bugspot.BugSpotAgent.go(BugSpotAgent.java:476)
      at sun.jvm.hotspot.bugspot.BugSpotAgent.attach(BugSpotAgent.java:314)
      at sun.jvm.hotspot.tools.Tool.start(Tool.java:146)
      at sun.jvm.hotspot.tools.JStack.main(JStack.java:69)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at sun.tools.jstack.JStack.jstack(JStack.java:161)
      at sun.tools.jstack.JStack.main(JStack.java:110)
      Debugger attached successfully.
      jstack requires a java VM process/core!

            sla Staffan Larsen (Inactive)
            jjh James Holmlund (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: