Problems encountered when debugging the JVM virtual machine under Linux

Problems encountered when debugging the JVM virtual machine under Linux


  1. 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

  2. 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

  3. 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
    

Guess you like

Origin blog.csdn.net/HHoao/article/details/126346875