5
环境信息
arthas-boot.jar 或者 as.sh 的版本: xxx
Arthas 版本: 3.6.6
操作系统版本: Linux ubuntu 4.9.0-141-custom
目标进程的JVM版本: 1.8.0_171-b11
执行arthas-boot的版本: xxx
重现问题的步骤
执行 trace 命令并报错
trace org.apache.shardingsphere.proxy.frontend.netty.FrontendChannelInboundHandler authenticate
Affect(class count: 1 , method count: 1) cost in 212 ms, listenerId: 1
Enhance error! exception: java.lang.UnsupportedOperationException: class redefinition failed: attempted to change superclass
or interfaces
error happens when enhancing class: class redefinition failed: attempted to change superclass or interfaces, check arthas log:
/root/logs/arthas/arthas.log
使用 stop 命令退出arthas;
过了段时间执行了上述操作的三个实例进程均异常崩溃,未执行的实例全都正常;
期望的结果
即使 trace 不成功也别导致进程崩溃;
使用 gdb -c /data/core_files/core-java-49445-1666700564 命令查看崩溃后生成的linux core文件,发现如下内容
warning: Unexpected size of section `.reg-xstate/49468' in core file.
Core was generated by `java -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -DLOGS_DIR=/data/'.
Program terminated with signal SIGABRT, Aborted.
warning: Unexpected size of section `.reg-xstate/49468' in core file.
#0 0x00007fbbd4c32428 in ?? ()
[Current thread is 1 (LWP 49468)]
(gdb) bt
#0 0x00007fbbd4c32428 in ?? ()
#1 0x00007fbbd4c3402a in ?? ()
#2 0x0000000000000020 in ?? ()
#3 0x0000000000000000 in ?? ()
出现错误但是显示为 ?? 乱码,原本应该是是错误的代码位置,从这点怀疑可能是arthas增强出现了问题。