Problems encountered when debugging the JVM virtual machine under Linux
-
Exception in thread "main" java.lang.RuntimeException: Type "GrowableArrayBase", referenced in VMStructs::localHotSpotVMStructs in the remote VM, was not present in the remote VMStructs::localHotSpotVMTypes table (should have been caught in the debug build of that VM). Can not continue.
Solution: It should be that the virtual machine version does not correspond
-
Exception in thread "AWT-EventQueue-1" java.lang.RuntimeException: Unable to deduce type of thread from address 0x00007fad300e5000 (expected type JavaThread, CompilerThread, ServiceThread, JvmtiAgentThread, or SurrogateLockerThread)
Solution: You must install the corresponding version of the debug package. For example, if you have installed openjdk-11-jdk, you must also install openjdk-11-dbg
-
ptrace(PTRACE_ATTACH, ..) failed for 219: Operation not permitted,
Solution: You must enter this parameter under /etc/sysctl.conf
kernel.yama.ptrace_scope = 0
Make the parameter take effect immediately
sysctl -p