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

SA: java.lang.NullPointerException from jstack on compiled frame

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Description

      FULL PRODUCT VERSION :
      JVMs were on:

      > java -version
      java version "1.5.0_04"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
      Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)

      jstack itself was from 1.5.0_05

      ADDITIONAL OS VERSION INFORMATION :
      > uname -a
      Linux sentrion.demo.sendmail.com 2.6.12.5 #1 SMP Wed Oct 5 02:50:11 UTC 2005 i686 pentium4 i386 GNU/Linux


      A DESCRIPTION OF THE PROBLEM :
      When I run jstack against a Tomcat application it works fine, i.e., I get a stack trace with no issues or errors. Against another one of our applications (standalone java application not in Tomcat) I get numerous errors like:

      Thread 3131: (state = BLOCKED)
       - java.lang.Object.wait(long) @bci=0 (Compiled frame; information may be imprecise)
       - com.sendmail.iocaine.servers.mail.smtp.jilter.ProcessorQueue.getNextItem(long) @bci=89, line=106 (Compiled frame)
       - com.sendmail.iocaine.servers.mail.smtp.jilter.JilterProcessor.runThread() @bci=40, line=64 (Compiled frame)
      Error occurred during stack walking:
      java.lang.NullPointerException
              at sun.jvm.hotspot.runtime.Frame.addressOfStackSlot(Frame.java:214)
              at sun.jvm.hotspot.runtime.x86.X86Frame.addressOfInterpreterFrameMethod(X86Frame.java:442)
              at sun.jvm.hotspot.runtime.Frame.getInterpreterFrameMethod(Frame.java:354)
              at sun.jvm.hotspot.runtime.InterpretedVFrame.getMethod(InterpretedVFrame.java:19)
              at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:51)
              at sun.jvm.hotspot.tools.JStack.run(JStack.java:41)
              at sun.jvm.hotspot.tools.Tool.start(Tool.java:204)
              at sun.jvm.hotspot.tools.JStack.main(JStack.java:58)

      I think maybe the key here is the "compiled frame" part of this. The working case against Tomcat was all with "interpreted frames".

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run jstack against a running version of our stanalone application.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I expect a jstack dump without errors.
      ACTUAL -
      Numerous threads fail to dump stack as follows:

      Thread 3131: (state = BLOCKED)
       - java.lang.Object.wait(long) @bci=0 (Compiled frame; information may be imprecise)
       - com.sendmail.iocaine.servers.mail.smtp.jilter.ProcessorQueue.getNextItem(long) @bci=89, line=106 (Compiled frame)
       - com.sendmail.iocaine.servers.mail.smtp.jilter.JilterProcessor.runThread() @bci=40, line=64 (Compiled frame)
      Error occurred during stack walking:
      java.lang.NullPointerException
              at sun.jvm.hotspot.runtime.Frame.addressOfStackSlot(Frame.java:214)
              at sun.jvm.hotspot.runtime.x86.X86Frame.addressOfInterpreterFrameMethod(X86Frame.java:442)
              at sun.jvm.hotspot.runtime.Frame.getInterpreterFrameMethod(Frame.java:354)
              at sun.jvm.hotspot.runtime.InterpretedVFrame.getMethod(InterpretedVFrame.java:19)
              at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:51)
              at sun.jvm.hotspot.tools.JStack.run(JStack.java:41)
              at sun.jvm.hotspot.tools.Tool.start(Tool.java:204)
              at sun.jvm.hotspot.tools.JStack.main(JStack.java:58)

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      See Actual Result above.

      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jssunw Jitender S (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: