jmap -permstat <PID> crashes with java.lang.StackOverflowError Exception. Here is the head of the output:
Attaching to process ID 1847, please wait...
Debugger attached successfully.
Client compiler detected.
JVM version is 1.5.0_04-b05
finding class loader instances ..Unknown oop at 0xc8d09938
Oop's klass is null
Unknown oop at 0xc8d249d8
Oop's klass is null
done.
computing per loader stat ..done.
please wait.. computing livenessException in thread "main" java.lang.StackOverflowError
at sun.jvm.hotspot.debugger.LongHashMap.get(LongHashMap.java:230)
at sun.jvm.hotspot.debugger.PageCache.getPage(PageCache.java:157)
at sun.jvm.hotspot.debugger.PageCache.getData(PageCache.java:46)
at sun.jvm.hotspot.debugger.DebuggerBase.readBytes(DebuggerBase.java:188)
at sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal.readCInteger(ProcDebuggerLocal.java:312)
at sun.jvm.hotspot.debugger.DebuggerBase.readAddressValue(DebuggerBase.java:425)
at sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal.readOopHandle(ProcDebuggerLocal.java:326)
at sun.jvm.hotspot.debugger.proc.ProcAddress.getOopHandleAt(ProcAddress.java:96)
at sun.jvm.hotspot.oops.Oop.getKlassForOopHandle(Oop.java:175)
at sun.jvm.hotspot.oops.ObjectHeap.newOop(ObjectHeap.java:330)
at sun.jvm.hotspot.oops.OopField.getValue(OopField.java:27)
at sun.jvm.hotspot.oops.Klass.getSuper(Klass.java:60)
at sun.jvm.hotspot.oops.InstanceKlass.iterateNonStaticFields(InstanceKlass.java:441)
at sun.jvm.hotspot.oops.InstanceKlass.iterateNonStaticFields(InstanceKlass.java:442)
at sun.jvm.hotspot.oops.InstanceKlass.iterateNonStaticFields(InstanceKlass.java:442)
at sun.jvm.hotspot.oops.Instance.iterateFields(Instance.java:39)
at sun.jvm.hotspot.oops.Oop.iterate(Oop.java:112)
at sun.jvm.hotspot.utilities.LivenessAnalysis.markAndTraverse(LivenessAnalysis.java:238)
at sun.jvm.hotspot.utilities.LivenessAnalysis.doFieldInObj(LivenessAnalysis.java:260)
at sun.jvm.hotspot.utilities.LivenessAnalysis.access$300(LivenessAnalysis.java:24)
at sun.jvm.hotspot.utilities.LivenessAnalysis$4.doOop(LivenessAnalysis.java:240)
at sun.jvm.hotspot.oops.InstanceKlass.visitField(InstanceKlass.java:707)
at sun.jvm.hotspot.oops.InstanceKlass.iterateNonStaticFields(InstanceKlass.java:454)
at sun.jvm.hotspot.oops.InstanceKlass.iterateNonStaticFields(InstanceKlass.java:442)
at sun.jvm.hotspot.oops.InstanceKlass.iterateNonStaticFields(InstanceKlass.java:442)
at sun.jvm.hotspot.oops.Instance.iterateFields(Instance.java:39)
at sun.jvm.hotspot.oops.Oop.iterate(Oop.java:112)
at sun.jvm.hotspot.utilities.LivenessAnalysis.markAndTraverse(LivenessAnalysis.java:238)
at sun.jvm.hotspot.utilities.LivenessAnalysis.doFieldInObj(LivenessAnalysis.java:260)
Attaching to process ID 1847, please wait...
Debugger attached successfully.
Client compiler detected.
JVM version is 1.5.0_04-b05
finding class loader instances ..Unknown oop at 0xc8d09938
Oop's klass is null
Unknown oop at 0xc8d249d8
Oop's klass is null
done.
computing per loader stat ..done.
please wait.. computing livenessException in thread "main" java.lang.StackOverflowError
at sun.jvm.hotspot.debugger.LongHashMap.get(LongHashMap.java:230)
at sun.jvm.hotspot.debugger.PageCache.getPage(PageCache.java:157)
at sun.jvm.hotspot.debugger.PageCache.getData(PageCache.java:46)
at sun.jvm.hotspot.debugger.DebuggerBase.readBytes(DebuggerBase.java:188)
at sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal.readCInteger(ProcDebuggerLocal.java:312)
at sun.jvm.hotspot.debugger.DebuggerBase.readAddressValue(DebuggerBase.java:425)
at sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal.readOopHandle(ProcDebuggerLocal.java:326)
at sun.jvm.hotspot.debugger.proc.ProcAddress.getOopHandleAt(ProcAddress.java:96)
at sun.jvm.hotspot.oops.Oop.getKlassForOopHandle(Oop.java:175)
at sun.jvm.hotspot.oops.ObjectHeap.newOop(ObjectHeap.java:330)
at sun.jvm.hotspot.oops.OopField.getValue(OopField.java:27)
at sun.jvm.hotspot.oops.Klass.getSuper(Klass.java:60)
at sun.jvm.hotspot.oops.InstanceKlass.iterateNonStaticFields(InstanceKlass.java:441)
at sun.jvm.hotspot.oops.InstanceKlass.iterateNonStaticFields(InstanceKlass.java:442)
at sun.jvm.hotspot.oops.InstanceKlass.iterateNonStaticFields(InstanceKlass.java:442)
at sun.jvm.hotspot.oops.Instance.iterateFields(Instance.java:39)
at sun.jvm.hotspot.oops.Oop.iterate(Oop.java:112)
at sun.jvm.hotspot.utilities.LivenessAnalysis.markAndTraverse(LivenessAnalysis.java:238)
at sun.jvm.hotspot.utilities.LivenessAnalysis.doFieldInObj(LivenessAnalysis.java:260)
at sun.jvm.hotspot.utilities.LivenessAnalysis.access$300(LivenessAnalysis.java:24)
at sun.jvm.hotspot.utilities.LivenessAnalysis$4.doOop(LivenessAnalysis.java:240)
at sun.jvm.hotspot.oops.InstanceKlass.visitField(InstanceKlass.java:707)
at sun.jvm.hotspot.oops.InstanceKlass.iterateNonStaticFields(InstanceKlass.java:454)
at sun.jvm.hotspot.oops.InstanceKlass.iterateNonStaticFields(InstanceKlass.java:442)
at sun.jvm.hotspot.oops.InstanceKlass.iterateNonStaticFields(InstanceKlass.java:442)
at sun.jvm.hotspot.oops.Instance.iterateFields(Instance.java:39)
at sun.jvm.hotspot.oops.Oop.iterate(Oop.java:112)
at sun.jvm.hotspot.utilities.LivenessAnalysis.markAndTraverse(LivenessAnalysis.java:238)
at sun.jvm.hotspot.utilities.LivenessAnalysis.doFieldInObj(LivenessAnalysis.java:260)