java jni调用动态库SO,java进程奔溃,麻烦各位大神分析下原因,谢谢!
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fdcc236b9f3, pid=12302, tid=140586118121216
#
# JRE version: Java(TM) SE Runtime Environment (8.0_73-b02) (build 1.8.0_73-b02)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.73-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libesljni.so+0x99f3]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
# http://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.
#
--------------- T H R E A D ---------------
Current thread (0x00007fdcd8560800): JavaThread "Thread-0" [_thread_in_native, id=12319, stack(0x00007fdcc1918000,0x00007fdcc1a19000)]
siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000000000
Registers:
RAX=0x00007fdc7c0ad180, RBX=0x00007fdc7c0ad1f0, RCX=0x0000000000000006, RDX=0x0000000000000000
RSP=0x00007fdcc1a176d0, RBP=0x0000000000000000, RSI=0x0000000000000000, RDI=0x00007fdcc2370215
R8 =0x0000000000000005, R9 =0x000000000000005b, R10=0x0000000000000004, R11=0x00007fdce10aea90
R12=0x00007fdc7c0b5e50, R13=0x00007fdcc1a177a8, R14=0x00007fdc7c094780, R15=0x00007fdc7c0ad180
RIP=0x00007fdcc236b9f3, EFLAGS=0x0000000000010202, CSGSFS=0x0000000000000033, ERR=0x0000000000000004
TRAPNO=0x000000000000000e
Top of Stack: (sp=0x00007fdcc1a176d0)
0x00007fdcc1a176d0: 00007fdcc1a177a8 000000007c094780
0x00007fdcc1a176e0: 000000000000000f 00007fdce0fab10c
0x00007fdcc1a176f0: 00007fdc00000000 00007fdc7c0ad180
0x00007fdcc1a17700: 000000000000005b ffffffffffffffff
0x00007fdcc1a17710: 0000000000000001 00007fdc7c0ad1f0
0x00007fdcc1a17720: 0000000000000002 0000000000000010
0x00007fdcc1a17730: 00007fdcc1a177a8 00007fdc7c094780
0x00007fdcc1a17740: 000000000000000f 00007fdcc236c741
0x00007fdcc1a17750: 00007fdcc26db848 00007fdcc236cfd9
0x00007fdcc1a17760: 00007fdcd8560800 00007fdcd853d0a0
0x00007fdcc1a17770: 00007fdcc1a17810 0000000000000000
0x00007fdcc1a17780: 00007fdcc26db848 00007fdcc1a178c0
0x00007fdcc1a17790: 00007fdcd8560800 00007fdcc2368562
0x00007fdcc1a177a0: 0000000000000000 00007fdc7c0b5e50
0x00007fdcc1a177b0: 00007fdcc26db848 00007fdcc23673ab
0x00007fdcc1a177c0: 00007fdcc9007420 000003e8ecd00620
0x00007fdcc1a177d0: 00007fdcc1a178b0 00007fdcd853d0a0
0x00007fdcc1a177e0: 00007fdcc1a17898 00007fdcd85609f8
0x00007fdcc1a177f0: 0000000000000000 000003e8c2366d0a
0x00007fdcc1a17800: 0000000000000000 00007fdcd853d0a0
0x00007fdcc1a17810: 00007fdcc1a17888 00007fdcc9015994
0x00007fdcc1a17820: 00007fdcc8dbf8c0 0000000100000000
0x00007fdcc1a17830: 0000000000000001 00000001c1a178a0
0x00007fdcc1a17840: 313a35323a313120 00007fdcc1a17848
0x00007fdcc1a17850: 0000000000000000 00007fdcc1a178c0
0x00007fdcc1a17860: 00007fdcc26dbd70 0000000000000000
0x00007fdcc1a17870: 00007fdcc26db848 0000000000000000
0x00007fdcc1a17880: 00007fdcc1a178a8 00007fdcc1a17908
0x00007fdcc1a17890: 00007fdcc9007760 00000000ee7b8c78
0x00007fdcc1a178a0: 00007fdcc900f577 00000000000003e8
0x00007fdcc1a178b0: 00000000ee7b8ce0 00007fdcd853d0a0
0x00007fdcc1a178c0: 00007fdcc900f576 00007fdcc1a178c8
Instructions: (pc=0x00007fdcc236b9f3)
0x00007fdcc236b9d3: 48 8d 3d 3b 48 00 00 55 48 89 d5 53 48 83 ec 48
0x00007fdcc236b9e3: 89 74 24 0c 48 c7 44 24 38 ff ff ff ff 48 89 d6
0x00007fdcc236b9f3: f3 a6 0f 84 ad 01 00 00 be 5b 00 00 00 48 89 ef
0x00007fdcc236ba03: e8 b8 99 ff ff 48 85 c0 74 6b 48 8d 78 01 31 f6
Register to memory mapping:
RAX=0x00007fdc7c0ad180 is an unknown value
RBX=0x00007fdc7c0ad1f0 is an unknown value
RCX=0x0000000000000006 is an unknown value
RDX=0x0000000000000000 is an unknown value
RSP=0x00007fdcc1a176d0 is pointing into the stack for thread: 0x00007fdcd8560800
RBP=0x0000000000000000 is an unknown value
RSI=0x0000000000000000 is an unknown value
RDI=0x00007fdcc2370215: <offset 0xe215> in /home/haoyi/ise-1.0-SNAPSHOT/lib/libesljni.so at 0x00007fdcc2362000
R8 =0x0000000000000005 is an unknown value
R9 =0x000000000000005b is an unknown value
R10=0x0000000000000004 is an unknown value
R11=0x00007fdce10aea90: <offset 0x183a90> in /lib64/libc.so.6 at 0x00007fdce0f2b000
R12=0x00007fdc7c0b5e50 is an unknown value
R13=0x00007fdcc1a177a8 is pointing into the stack for thread: 0x00007fdcd8560800
R14=0x00007fdc7c094780 is an unknown value
R15=0x00007fdc7c0ad180 is an unknown value
Stack: [0x00007fdcc1918000,0x00007fdcc1a19000], sp=0x00007fdcc1a176d0, free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libesljni.so+0x99f3]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.freeswitch.esl.eslJNI.ESLconnection_recvEventTimed(JLorg/freeswitch/esl/ESLconnection;I)J+0
j org.freeswitch.esl.ESLconnection.recvEventTimed(I)Lorg/freeswitch/esl/ESLevent;+6
j com.hy.esl.StartEslThread.run()V+36
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x00007fdcd8562800 JavaThread "Thread-1" [_thread_in_native, id=12320, stack(0x00007fdcc1817000,0x00007fdcc1918000)]
=>0x00007fdcd8560800 JavaThread "Thread-0" [_thread_in_native, id=12319, stack(0x00007fdcc1918000,0x00007fdcc1a19000)]
0x00007fdcd852c000 JavaThread "CleanCursors-1-thread-1" daemon [_thread_blocked, id=12318, stack(0x00007fdcc2575000,0x00007fdcc2676000)]
0x00007fdcd8519000 JavaThread "cluster-ClusterId{value='5b30606efbc516300ebdb09d', description='null'}-192.168.196.84:27017" daemon [_thread_blocked, id=12317, stack(0x00007fdcc2876000,0x00007fdcc2977000)]
0x00007fdcd818e800 JavaThread "Service Thread" daemon [_thread_blocked, id=12315, stack(0x00007fdcc34f5000,0x00007fdcc35f6000)]
0x00007fdcd8183000 JavaThread "C1 CompilerThread2" daemon [_thread_blocked, id=12314, stack(0x00007fdcc35f6000,0x00007fdcc36f7000)]
0x00007fdcd8181800 JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=12313, stack(0x00007fdcc36f7000,0x00007fdcc37f8000)]
0x00007fdcd817e800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=12312, stack(0x00007fdcc37f8000,0x00007fdcc38f9000)]
0x00007fdcd817d000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=12311, stack(0x00007fdcc38f9000,0x00007fdcc39fa000)]
0x00007fdcd8145000 JavaThread "Finalizer" daemon [_thread_blocked, id=12310, stack(0x00007fdcc39fa000,0x00007fdcc3afb000)]
0x00007fdcd8143000 JavaThread "Reference Handler" daemon [_thread_blocked, id=12309, stack(0x00007fdcc3afb000,0x00007fdcc3bfc000)]
0x00007fdcd8008800 JavaThread "main" [_thread_blocked, id=12303, stack(0x00007fdce1a36000,0x00007fdce1b37000)]
Other Threads:
0x00007fdcd813d800 VMThread [stack: 0x00007fdcc3bfc000,0x00007fdcc3cfd000] [id=12308]
0x00007fdcd8191800 WatcherThread [stack: 0x00007fdcc33f4000,0x00007fdcc34f5000] [id=12316]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap:
PSYoungGen total 33280K, used 15694K [0x00000000ec580000, 0x00000000ee880000, 0x0000000100000000)
eden space 30720K, 42% used [0x00000000ec580000,0x00000000ed256b30,0x00000000ee380000)
from space 2560K, 99% used [0x00000000ee600000,0x00000000ee87cd70,0x00000000ee880000)
to space 2560K, 0% used [0x00000000ee380000,0x00000000ee380000,0x00000000ee600000)
ParOldGen total 40960K, used 5581K [0x00000000c5000000, 0x00000000c7800000, 0x00000000ec580000)
object space 40960K, 13% used [0x00000000c5000000,0x00000000c5573578,0x00000000c7800000)
Metaspace used 14917K, capacity 15138K, committed 15488K, reserved 1062912K
class space used 1733K, capacity 1831K, committed 1920K, reserved 1048576K
Card table byte_map: [0x00007fdcdec3f000,0x00007fdcdee18000] byte_map_base: 0x00007fdcde617000
Marking Bits: (ParMarkBitMap*) 0x00007fdce0f00100
Begin Bits: [0x00007fdcdc980000, 0x00007fdcdd840000)
End Bits: [0x00007fdcdd840000, 0x00007fdcde700000)
Polling page: 0x00007fdce1b43000
CodeCache: size=245760Kb used=4825Kb max_used=4837Kb free=240934Kb
bounds [0x00007fdcc9000000, 0x00007fdcc94c0000, 0x00007fdcd8000000]
total_blobs=1790 nmethods=1397 adapters=307
compilation: enabled
Compilation events (10 events):
Event: 48.779 Thread 0x00007fdcd8183000 nmethod 1393 0x00007fdcc94b6fd0 code [0x00007fdcc94b7140, 0x00007fdcc94b73b0]
Event: 48.779 Thread 0x00007fdcd8183000 1395 1 org.bson.BsonBinary::getType (5 bytes)
Event: 48.779 Thread 0x00007fdcd8183000 nmethod 1395 0x00007fdcc949cdd0 code [0x00007f