jstack 报错了。
xgj1988
2013-12-18
环境 windows7 jdk1.6u45
执行命令 jstack -F pid 没问题,当我执行jstack -F pid>>d:\stack.txt 出现如下错误。 为什么加上输出就不行呢,但是虽然报错,stack.txt文本照样有内容。 sun.jvm.hotspot.utilities.AssertionFailure: must be above this frame on stack at sun.jvm.hotspot.utilities.Assert.that(Assert.java:32) at sun.jvm.hotspot.runtime.amd64.AMD64Frame.senderForEntryFrame(AMD64Frame.java:302) at sun.jvm.hotspot.runtime.amd64.AMD64Frame.sender(AMD64Frame.java:270) at sun.jvm.hotspot.runtime.Frame.sender(Frame.java:194) at sun.jvm.hotspot.runtime.Frame.realSender(Frame.java:199) at sun.jvm.hotspot.runtime.VFrame.sender(VFrame.java:119) at sun.jvm.hotspot.runtime.VFrame.javaSender(VFrame.java:151) at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:76) at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:45) at sun.jvm.hotspot.tools.JStack.run(JStack.java:60) at sun.jvm.hotspot.tools.Tool.start(Tool.java:221) at sun.jvm.hotspot.tools.JStack.main(JStack.java:86) 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:597) at sun.tools.jstack.JStack.runJStackTool(JStack.java:118) at sun.tools.jstack.JStack.main(JStack.java:84) ...... |
|
RednaxelaFX
2013-12-19
看起来是个在JDK7里已经修好了的bug。JDK-7176524: Incorrect value of ENTRY_FRAME_CALL_WRAPPER_OFFSET in jstack in jdk6u32(amd64)
别用JDK6了,升级吧… |
|
xgj1988
2013-12-19
呵呵。。3Q 。。没办法啊。公司生产环境是jdk1.6
|