All I am using libhdfs, I need some usage like following ,and when the JNI call return, it had result in some Crash in JVM, Attachment is the detail information.
JAVA Call JNI Call C LIB Call Libhdfs Crash info # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f3271ad3159, pid=9880, tid=139854651725568 # # JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13) # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops) # Problematic frame: # V [libjvm.so+0x7d6159] Monitor::ILock(Thread*)+0x79 # # Core dump written. Default location: /home/haduser/core or core.9880 # # If you would like to submit a bug report, please visit: # http://bugreport.sun.com/bugreport/crash.jsp # --------------- T H R E A D --------------- Current thread is native thread siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000000000168 Registers: RAX=0x00007f326c1eb201, RBX=0x00007f326c011b70, RCX=0x00007f326c1eb201, RDX=0x0000000000000000 RSP=0x00007f3272d60e00, RBP=0x00007f3272d60e20, RSI=0x0000000000000000, RDI=0x00007f326c011b70 R8 =0x0000000000000000, R9 =0x0000000000000001, R10=0x0000000000000000, R11=0x0000000000000202 R12=0x0000000000000000, R13=0x00007f3272134a60, R14=0x0000000000000000, R15=0x0000000000000000 RIP=0x00007f3271ad3159, EFLAGS=0x0000000000010202, CSGSFS=0x0000000000000033, ERR=0x0000000000000004 TRAPNO=0x000000000000000e Top of Stack: (sp=0x00007f3272d60e00) 0x00007f3272d60e00: 00007f326c011b70 0000000000000000 0x00007f3272d60e10: 0000000000000000 0000000000000004 0x00007f3272d60e20: 00007f3272d60e40 00007f3271ad34cf 0x00007f3272d60e30: 00007f326c0159e8 00007f3272b562c0 0x00007f3272d60e40: 00007f3272d60e50 00007f3271c98409 0x00007f3272d60e50: 00007f3272d60e70 00007f327192c67d 0x00007f3272d60e60: 0000000000000000 00007f326c0159e8 0x00007f3272d60e70: 00007f326c27f3e0 00007f326410ea14 0x00007f3272d60e80: 0000000500010002 00007f3272105b48 0x00007f3272d60e90: 0000000000000000 0000000000000030 0x00007f3272d60ea0: 00007f3272d61a10 00007f3272945c83 0x00007f3272d60eb0: 00007f3272d61700 0000000000000000 0x00007f3272d60ec0: 0000000000000000 00007fff7a8c5670 0x00007f3272d60ed0: 00007f3272d619c0 0000000000000000 0x00007f3272d60ee0: 0000000000000003 00007f3272945ea8 0x00007f3272d60ef0: 0000000000000000 00007f3272d61700 0x00007f3272d60f00: 0000000000000000 0000000000000000 0x00007f3272d60f10: 0000000000000000 0000000000000000 0x00007f3272d60f20: 0000000000000000 0000000000000000 0x00007f3272d60f30: 0000000000000000 0000000000000000 0x00007f3272d60f40: 0000000000000000 0000000000000000 0x00007f3272d60f50: 0000000000000000 0000000000000000 0x00007f3272d60f60: 0000000000000000 0000000000000000 0x00007f3272d60f70: 0000000000000000 0000000000000000 0x00007f3272d60f80: 0000000000000000 6a29d305af3e5c9c 0x00007f3272d60f90: 00007fff7a8c5670 00007f3272d619c0 0x00007f3272d60fa0: 0000000000000000 0000000000000003 0x00007f3272d60fb0: 944d36a9b2de5c9c 944d362d13fe5c9c 0x00007f3272d60fc0: 0000000000000000 0000000000000000 0x00007f3272d60fd0: 0000000000000000 0000000000000000 0x00007f3272d60fe0: 0000000000000000 0000000000000000 0x00007f3272d60ff0: 0000000000000000 00007f32722573fd Instructions: (pc=0x00007f3271ad3159) 0x00007f3271ad3139: 9f c6 40 80 fe 00 74 01 f0 48 0f b1 13 48 39 c1 0x00007f3271ad3149: 74 d1 48 89 c1 f6 c1 01 74 d5 4c 89 f6 48 89 df 0x00007f3271ad3159: 4d 8b a6 68 01 00 00 e8 5b fc ff ff 85 c0 75 b3 0x00007f3271ad3169: 41 c7 44 24 20 00 00 00 00 41 83 7d 00 01 7e 05 Register to memory mapping: RAX=0x00007f326c1eb201 is an unknown value RBX=0x00007f326c011b70 is an unknown value RCX=0x00007f326c1eb201 is an unknown value RDX=0x0000000000000000 is an unknown value RSP=0x00007f3272d60e00 is an unknown value RBP=0x00007f3272d60e20 is an unknown value RSI=0x0000000000000000 is an unknown value RDI=0x00007f326c011b70 is an unknown value R8 =0x0000000000000000 is an unknown value R9 =0x0000000000000001 is an unknown value R10=0x0000000000000000 is an unknown value R11=0x0000000000000202 is an unknown value R12=0x0000000000000000 is an unknown value R13=0x00007f3272134a60: <offset 0xe37a60> in /usr/jdk1.7.0_51/jre/lib/amd64/server/libjvm.so at 0x00007f32712fd000 R14=0x0000000000000000 is an unknown value R15=0x0000000000000000 is an unknown value Stack: [0x00007f3272c61000,0x00007f3272d62000], sp=0x00007f3272d60e00, free space=1023k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x7d6159] Monitor::ILock(Thread*)+0x79 V [libjvm.so+0x7d64cf] Monitor::lock_without_safepoint_check()+0x2f V [libjvm.so+0x99b409] VM_Exit::wait_if_vm_exited()+0x39 V [libjvm.so+0x62f67d] jni_DetachCurrentThread+0x3d -- BR, Vincent.Wei
hs_err_pid9880.log
Description: Binary data