Created
December 28, 2011 02:42
-
-
Save rednaxelafx/1525916 to your computer and use it in GitHub Desktop.
Can't attach to the core file due to stripped libjvm.so
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ jstack -m $JAVA_HOME/bin/java core.11028 | |
Attaching to core core.11028 from executable /opt/taobao/java/bin/java, please wait... | |
Error attaching to core file: Can't attach to the core file | |
$ cd /opt/taobao/java/jre/lib/amd64/server/ | |
[feihu@v012031 /opt/taobao/java/jre/lib/amd64/server]$ file libjvm.so | |
libjvm.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), stripped | |
[feihu@v012031 /opt/taobao/java/jre/lib/amd64/server]$ cd | |
$ export LIBSAPROC_DEBUG=1 | |
$ jstack -m $JAVA_HOME/bin/java core.11028 | |
Attaching to core core.11028 from executable /opt/taobao/java/bin/java, please wait... | |
libsaproc DEBUG: Note header with n_type = 1 and n_descsz = 336 | |
libsaproc DEBUG: got integer regset for lwp 11386 | |
libsaproc DEBUG: integer regset | |
libsaproc DEBUG: r15 = 0x2aab79aac1b8 | |
libsaproc DEBUG: r14 = 0x466290c0 | |
libsaproc DEBUG: r13 = 0x0 | |
libsaproc DEBUG: r12 = 0x4a | |
libsaproc DEBUG: rbp = 0x46619040 | |
libsaproc DEBUG: rbx = 0x4a | |
libsaproc DEBUG: r11 = 0x2b0418151548 | |
libsaproc DEBUG: r10 = 0xbc4 | |
libsaproc DEBUG: r9 = 0x2aaaca680f48 | |
libsaproc DEBUG: r8 = 0x46619070 | |
libsaproc DEBUG: rax = 0x2b04181446a0 | |
libsaproc DEBUG: rcx = 0x4a | |
libsaproc DEBUG: rdx = 0x0 | |
libsaproc DEBUG: rsi = 0x466290c0 | |
libsaproc DEBUG: rdi = 0x2aab79aac000 | |
libsaproc DEBUG: orig_rax = 0xffffffffffffffff | |
libsaproc DEBUG: rip = 0x2b0417c60971 | |
libsaproc DEBUG: cs = 0xe033 | |
libsaproc DEBUG: eflags = 0x10206 | |
libsaproc DEBUG: rsp = 0x46618fc0 | |
libsaproc DEBUG: ss = 0xe02b | |
libsaproc DEBUG: fs_base = 0x0 | |
libsaproc DEBUG: gs_base = 0x0 | |
libsaproc DEBUG: ds = 0x0 | |
libsaproc DEBUG: es = 0x0 | |
libsaproc DEBUG: fs = 0x63 | |
libsaproc DEBUG: gs = 0x0 | |
libsaproc DEBUG: Note header with n_type = 3 and n_descsz = 136 | |
libsaproc DEBUG: Note header with n_type = 6 and n_descsz = 256 | |
libsaproc DEBUG: Note header with n_type = 1 and n_descsz = 336 | |
libsaproc DEBUG: got integer regset for lwp 12741 | |
libsaproc DEBUG: integer regset | |
libsaproc DEBUG: r15 = 0x2aab7a5db000 | |
libsaproc DEBUG: r14 = 0x2aab7a5db000 | |
... | |
libsaproc DEBUG: base = 0x7fffbaa67000 size = 86016 | |
libsaproc DEBUG: lookup failed for symbol 'UseSharedSpaces' in obj '/opt/taobao/install/jdk-1.6.0_17/jre/lib/amd64/server/libjvm.so' | |
libsaproc DEBUG: can't lookup 'UseSharedSpaces' flag | |
Error attaching to core file: Can't attach to the core file | |
$ |
I know this is an old thread, but it comes up high in search results if you search for this error. I figured it out, so I thought I'd add a reply.
The solution is to install the debugging symbols. On CentOS and similar systems, this can be done with 'debuginfo-install java-1.8.0-openjdk.x86_64'; adjust the package name to match the Java version you have on your system. Once this is installed, you can extract from a core file.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! I'm getting the same issue here, do you found any solution or a path to start? Thanks!