Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

profile start crash jvm #2824

Open
1 task done
haohao0103 opened this issue Apr 28, 2024 · 0 comments
Open
1 task done

profile start crash jvm #2824

haohao0103 opened this issue Apr 28, 2024 · 0 comments

Comments

@haohao0103
Copy link

haohao0103 commented Apr 28, 2024

  • 我已经在 issues 里搜索,没有重复的issue。

环境信息

  • arthas-boot.jar 或者 as.sh 的版本:3.7.2

  • Arthas 版本: 3.7.2

  • 操作系统版本: OS:CentOS Linux release 7.6.1810 (Core)

  • 目标进程的JVM版本: 11.0.22

  • 执行arthas-boot的版本: 3.7.2

重现问题的步骤

profiler start

实际运行结果,最好有详细的日志,异常栈。尽量贴文本。

把异常信息贴到这里
```A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f2e8a71f8c1, pid=59638, tid=51854
#
# JRE version: Java(TM) SE Runtime Environment 18.9 (11.0.22+9) (build 11.0.22+9-LTS-219)
# Java VM: Java HotSpot(TM) 64-Bit Server VM 18.9 (11.0.22+9-LTS-219, mixed mode, tiered, g1 gc, linux-amd64)
# Problematic frame:
# C  [libc.so.6+0x16f8c1]  __strlen_sse2_pminub+0x11
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /opt/distributed-hg/service/apache-hugegraph-incubating-1.5.0.1/hs_err_pid59638.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.


hs_err_pid.log

---------------  T H R E A D  ---------------

Current thread (0x00007f7f90112000):  JavaThread "arthas-command-execute" daemon [_thread_in_native, id=53602, stack(0x00007f7dfb1c5000,0x00007f7dfb2c6000)]

Stack: [0x00007f7dfb1c5000,0x00007f7dfb2c6000],  sp=0x00007f7dfb2c3b38,  free space=1018k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libc.so.6+0x16f8c1]  __strlen_sse2_pminub+0x11
C  [ArthasJniLibrary7783053112570904450.tmp+0x2f5cc]  ElfParser::parseFile(CodeCache*, char const*, char const*, bool)+0x10c
C  [ArthasJniLibrary7783053112570904450.tmp+0x2fe99]  Symbols::parseLibraries(CodeCacheArray*, bool)+0x4c9
C  [ArthasJniLibrary7783053112570904450.tmp+0x30050]  VM::init(JavaVM_*, bool) [clone .part.705]+0x150
C  [ArthasJniLibrary7783053112570904450.tmp+0x391b2]  JNI_OnLoad+0x82
C  [libjava.so+0xe9ed]  Java_java_lang_ClassLoader_00024NativeLibrary_load0+0xbd
j  java.lang.ClassLoader$NativeLibrary.load0(Ljava/lang/String;ZZ)Z+0 [email protected]
j  java.lang.ClassLoader$NativeLibrary.load()Z+56 [email protected]
j  java.lang.ClassLoader$NativeLibrary.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)Z+216 [email protected]
j  java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/io/File;)Z+46 [email protected]
j  java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V+48 [email protected]
j  java.lang.Runtime.load0(Ljava/lang/Class;Ljava/lang/String;)V+57 [email protected]
j  java.lang.System.load(Ljava/lang/String;)V+7 [email protected]
j  one.profiler.AsyncProfiler.getInstance(Ljava/lang/String;)Lone/profiler/AsyncProfiler;+23
j  com.taobao.arthas.core.command.monitor200.ProfilerCommand.profilerInstance()Lone/profiler/AsyncProfiler;+158
j  com.taobao.arthas.core.command.monitor200.ProfilerCommand.process(Lcom/taobao/arthas/core/shell/command/CommandProcess;)V+43
j  com.taobao.arthas.core.shell.command.impl.AnnotatedCommandImpl.process(Lcom/taobao/arthas/core/shell/command/CommandProcess;)V+34
j  com.taobao.arthas.core.shell.command.impl.AnnotatedCommandImpl.access$100(Lcom/taobao/arthas/core/shell/command/impl/AnnotatedCommandImpl;Lcom/taobao/arthas/core/shell/command/CommandProcess;)V+2
j  com.taobao.arthas.core.shell.command.impl.AnnotatedCommandImpl$ProcessHandler.handle(Lcom/taobao/arthas/core/shell/command/CommandProcess;)V+5
j  com.taobao.arthas.core.shell.command.impl.AnnotatedCommandImpl$ProcessHandler.handle(Ljava/lang/Object;)V+5
j  com.taobao.arthas.core.shell.system.impl.ProcessImpl$CommandProcessTask.run()V+11
J 24058 c2 java.util.concurrent.Executors$RunnableAdapter.call()Ljava/lang/Object; [email protected] (14 bytes) @ 0x00007f8a819876d4 [0x00007f8a819876a0+0x0000000000000034]
J 17709 c2 java.util.concurrent.FutureTask.run()V [email protected] (123 bytes) @ 0x00007f8a8191cba0 [0x00007f8a8191cac0+0x00000000000000e0]
J 24330 c1 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run()V [email protected] (57 bytes) @ 0x00007f8a7b496b84 [0x00007f8a7b496820+0x0000000000000364]
J 23218 c2 java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V [email protected] (187 bytes) @ 0x00007f8a8272033c [0x00007f8a827201a0+0x000000000000019c]
J 21428 c2 java.util.concurrent.ThreadPoolExecutor$Worker.run()V [email protected] (9 bytes) @ 0x00007f8a820b4750 [0x00007f8a820b4720+0x0000000000000030]
J 21390 c2 java.lang.Thread.run()V [email protected] (17 bytes) @ 0x00007f8a81fe57d8 [0x00007f8a81fe57a0+0x0000000000000038]
v  ~StubRoutines::call_stub
V  [libjvm.so+0x854f7a]  JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x27a
V  [libjvm.so+0x85355e]  JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, Thread*)+0x19e
V  [libjvm.so+0x8ff58f]  thread_entry(JavaThread*, Thread*)+0x9f
V  [libjvm.so+0xdb6071]  JavaThread::thread_main_inner()+0x131
V  [libjvm.so+0xdb23ec]  Thread::call_run()+0x13c
V  [libjvm.so+0xc1ea96]  thread_native_entry(Thread*)+0xe6

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  java.lang.ClassLoader$NativeLibrary.load0(Ljava/lang/String;ZZ)Z+0 [email protected]
j  java.lang.ClassLoader$NativeLibrary.load()Z+56 [email protected]
j  java.lang.ClassLoader$NativeLibrary.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)Z+216 [email protected]
j  java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/io/File;)Z+46 [email protected]
j  java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V+48 [email protected]
j  java.lang.Runtime.load0(Ljava/lang/Class;Ljava/lang/String;)V+57 [email protected]
j  java.lang.System.load(Ljava/lang/String;)V+7 [email protected]
j  one.profiler.AsyncProfiler.getInstance(Ljava/lang/String;)Lone/profiler/AsyncProfiler;+23
j  com.taobao.arthas.core.command.monitor200.ProfilerCommand.profilerInstance()Lone/profiler/AsyncProfiler;+158
j  com.taobao.arthas.core.command.monitor200.ProfilerCommand.process(Lcom/taobao/arthas/core/shell/command/CommandProcess;)V+43
j  com.taobao.arthas.core.shell.command.impl.AnnotatedCommandImpl.process(Lcom/taobao/arthas/core/shell/command/CommandProcess;)V+34
j  com.taobao.arthas.core.shell.command.impl.AnnotatedCommandImpl.access$100(Lcom/taobao/arthas/core/shell/command/impl/AnnotatedCommandImpl;Lcom/taobao/arthas/core/shell/command/CommandProcess;)V+2
j  com.taobao.arthas.core.shell.command.impl.AnnotatedCommandImpl$ProcessHandler.handle(Lcom/taobao/arthas/core/shell/command/CommandProcess;)V+5
j  com.taobao.arthas.core.shell.command.impl.AnnotatedCommandImpl$ProcessHandler.handle(Ljava/lang/Object;)V+5
j  com.taobao.arthas.core.shell.system.impl.ProcessImpl$CommandProcessTask.run()V+11
J 24058 c2 java.util.concurrent.Executors$RunnableAdapter.call()Ljava/lang/Object; [email protected] (14 bytes) @ 0x00007f8a819876d4 [0x00007f8a819876a0+0x0000000000000034]
J 17709 c2 java.util.concurrent.FutureTask.run()V [email protected] (123 bytes) @ 0x00007f8a8191cba0 [0x00007f8a8191cac0+0x00000000000000e0]
J 24330 c1 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run()V [email protected] (57 bytes) @ 0x00007f8a7b496b84 [0x00007f8a7b496820+0x0000000000000364]
J 23218 c2 java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V [email protected] (187 bytes) @ 0x00007f8a8272033c [0x00007f8a827201a0+0x000000000000019c]
J 21428 c2 java.util.concurrent.ThreadPoolExecutor$Worker.run()V [email protected] (9 bytes) @ 0x00007f8a820b4750 [0x00007f8a820b4720+0x0000000000000030]
J 21390 c2 java.lang.Thread.run()V [email protected] (17 bytes) @ 0x00007f8a81fe57d8 [0x00007f8a81fe57a0+0x0000000000000038]
v  ~StubRoutines::call_stub

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x00007f8ac9e8e1ea

Register to memory mapping:

RAX=0x0 is NULL
RBX=0x00007f8a99b0aa60 points into unknown readable memory: 0x0000000200000001 | 01 00 00 00 02 00 00 00
RCX=0x000000000000002a is an unknown value
RDX=0x3020702d77722030 is an unknown value
RSP=0x00007f7dfb2c3b38 is pointing into the stack for thread: 0x00007f7f90112000
RBP=0x00007f7dfb2c3ba0 is pointing into the stack for thread: 0x00007f7f90112000
RSI=0x00007f8ac9e8e1ea is an unknown value
RDI=0x00007f8ac9e8e1ea is an unknown value
R8 =0x00007f7f981d96d0 points into unknown readable memory: 0x00007f7f981d9744 | 44 97 1d 98 7f 7f 00 00
R9 =0x00000000000000ca is an unknown value
R10=0x000000000000000e is an unknown value
R11=0x3020efaf93c0f030 is an unknown value
R12=0x00007f7dfb2c3bc0 is pointing into the stack for thread: 0x00007f7f90112000
R13=0x00007f8a99b0b1b8 points into unknown readable memory: 0x66372d3030303536 | 36 35 30 30 30 2d 37 66
R14=0x00007f8a99b0b008 points into unknown readable memory: 0x3030653830383032 | 32 30 38 30 38 65 30 30
R15=0x0000000000000009 is an unknown value


Registers:
RAX=0x0000000000000000, RBX=0x00007f8a99b0aa60, RCX=0x000000000000002a, RDX=0x3020702d77722030
RSP=0x00007f7dfb2c3b38, RBP=0x00007f7dfb2c3ba0, RSI=0x00007f8ac9e8e1ea, RDI=0x00007f8ac9e8e1ea
R8 =0x00007f7f981d96d0, R9 =0x00000000000000ca, R10=0x000000000000000e, R11=0x3020efaf93c0f030
R12=0x00007f7dfb2c3bc0, R13=0x00007f8a99b0b1b8, R14=0x00007f8a99b0b008, R15=0x0000000000000009
RIP=0x00007f8a992518c1, EFLAGS=0x0000000000010287, CSGSFS=0x0000000000000033, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007f7dfb2c3b38)
0x00007f7dfb2c3b38:   00007f7def5dc301 00007f7dfb2c3b80
0x00007f7dfb2c3b48:   00007f7f981d96d0 3020efaf93c0f030
0x00007f7dfb2c3b58:   00007f8ac9e8e1ea 00007f8a99b0b1b8
0x00007f7dfb2c3b68:   30303030012c3bf0 00007f821c4edde0 

Instructions: (pc=0x00007f8a992518c1)
0x00007f8a992518a1:   c0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48
0x00007f8a992518b1:   31 c0 89 f9 83 e1 3f 66 0f ef c0 83 f9 30 77 1d
0x00007f8a992518c1:   f3 0f 6f 0f 66 0f 74 c1 66 0f d7 d0 85 d2 0f 85
0x00007f8a992518d1:   4e 02 00 00 48 89 f8 48 83 e0 f0 eb 24 48 89 f8 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant