jstack -F fails on OpenJDK with "java.lang.RuntimeException: Unable to deduce type of thread"
Issue
jstack -F can be used in some circumstances to force a thread dump from a JVM in situations where the normal jstack invocation would fail, because the JVM is stalled.
However, in some Linux systems jstack -F fails with an exception similar to the following
java.lang.RuntimeException: Unable to deduce type of thread from address 0x00007fe4000ab000 (expected type JavaThread, CompilerThread, ServiceThread, JvmtiAgentThread, or SurrogateLockerThread)
at sun.jvm.hotspot.runtime.Threads.createJavaThreadWrapper(Threads.java:162)
...
Caused by: sun.jvm.hotspot.types.WrongTypeException: No suitable match for type of address 0x00007fe4000ab000
at sun.jvm.hotspot.runtime.InstanceConstructor.newWrongTypeException(InstanceConstructor.java:62)
...
Environment
- Red Hat Enterprise Linux 6
- OpenJDK 1.7.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
