libhdfs result in JVM crash issue, please help me

2014-08-28 Thread Vincent,Wei
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=0x7f3271ad3159, 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=0x0168

Registers:
RAX=0x7f326c1eb201, RBX=0x7f326c011b70, RCX=0x7f326c1eb201,
RDX=0x
RSP=0x7f3272d60e00, RBP=0x7f3272d60e20, RSI=0x,
RDI=0x7f326c011b70
R8 =0x, R9 =0x0001, R10=0x,
R11=0x0202
R12=0x, R13=0x7f3272134a60, R14=0x,
R15=0x
RIP=0x7f3271ad3159, EFLAGS=0x00010202,
CSGSFS=0x0033, ERR=0x0004
  TRAPNO=0x000e

Top of Stack: (sp=0x7f3272d60e00)
0x7f3272d60e00:   7f326c011b70 
0x7f3272d60e10:    0004
0x7f3272d60e20:   7f3272d60e40 7f3271ad34cf
0x7f3272d60e30:   7f326c0159e8 7f3272b562c0
0x7f3272d60e40:   7f3272d60e50 7f3271c98409
0x7f3272d60e50:   7f3272d60e70 7f327192c67d
0x7f3272d60e60:    7f326c0159e8
0x7f3272d60e70:   7f326c27f3e0 7f326410ea14
0x7f3272d60e80:   000500010002 7f3272105b48
0x7f3272d60e90:    0030
0x7f3272d60ea0:   7f3272d61a10 7f3272945c83
0x7f3272d60eb0:   7f3272d61700 
0x7f3272d60ec0:    7fff7a8c5670
0x7f3272d60ed0:   7f3272d619c0 
0x7f3272d60ee0:   0003 7f3272945ea8
0x7f3272d60ef0:    7f3272d61700
0x7f3272d60f00:    
0x7f3272d60f10:    
0x7f3272d60f20:    
0x7f3272d60f30:    
0x7f3272d60f40:    
0x7f3272d60f50:    
0x7f3272d60f60:    
0x7f3272d60f70:    
0x7f3272d60f80:    6a29d305af3e5c9c
0x7f3272d60f90:   7fff7a8c5670 7f3272d619c0
0x7f3272d60fa0:    0003
0x7f3272d60fb0:   944d36a9b2de5c9c 944d362d13fe5c9c
0x7f3272d60fc0:    
0x7f3272d60fd0:    
0x7f3272d60fe0:    
0x7f3272d60ff0:    7f32722573fd

Instructions: (pc=0x7f3271ad3159)
0x7f3271ad3139:   9f c6 40 80 fe 00 74 01 f0 48 0f b1 13 48 39 c1
0x7f3271ad3149:   74 d1 48 89 c1 f6 c1 01 74 d5 4c 89 f6 48 89 df
0x7f3271ad3159:   4d 8b a6 68 01 00 00 e8 5b fc ff ff 85 c0 75 b3
0x7f3271ad3169:   41 c7 44 24 20 00 00 00 00 41 83 7d 00 01 7e 05

Register to memory mapping:

RAX=0x7f326c1eb201 is an unknown value
RBX=0x7f326c011b70 is an unknown value
RCX=0x7f326c1eb201 is an unknown value
RDX=0x is an unknown value
RSP=0x7f3272d60e00 is an unknown value
RBP=0x7f3272d60e20 is an unknown value
RSI=0x is an unknown value
RDI=0x7f326c011b70 is an unknown value
R8 =0x is an unknown value
R9 =0x0001 is an unknown value
R10=0x is an unknown value
R11=0x0202 is an unknown value
R12=0x is an unknown value
R13=0x7f3272134a60: offset 0xe37a60 in
/usr/jdk1.7.0_51/jre/lib/amd64/server/libjvm.so at 0x7f32712fd000
R14=0x is an unknown value
R15=0x is an unknown value


Stack: [0x7f3272c61000,0x7f3272d62000],  sp=0x7f3272d60e00,
 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


Re: libhdfs result in JVM crash issue, please help me

2014-08-28 Thread Vincent,Wei
#0  0x7f1e3872c425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x7f1e3872c425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x7f1e3872fb8b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x7f1e380a4405 in os::abort(bool) () from
/usr/jdk1.7.0_51/jre/lib/amd64/server/libjvm.so
#3  0x7f1e38223347 in VMError::report_and_die() () from
/usr/jdk1.7.0_51/jre/lib/amd64/server/libjvm.so
#4  0x7f1e380a8d8f in JVM_handle_linux_signal () from
/usr/jdk1.7.0_51/jre/lib/amd64/server/libjvm.so
#5  signal handler called
#6  0x7f1e38066159 in Monitor::ILock(Thread*) () from
/usr/jdk1.7.0_51/jre/lib/amd64/server/libjvm.so
#7  0x7f1e380664cf in Monitor::lock_without_safepoint_check() () from
/usr/jdk1.7.0_51/jre/lib/amd64/server/libjvm.so
#8  0x7f1e3822b409 in VM_Exit::wait_if_vm_exited() () from
/usr/jdk1.7.0_51/jre/lib/amd64/server/libjvm.so
#9  0x7f1e37ebf67d in jni_DetachCurrentThread () from
/usr/jdk1.7.0_51/jre/lib/amd64/server/libjvm.so
#10 0x7f1e26544a14 in hdfsThreadDestructor (v=optimized out) at
/home/haduser/hadoop-2.2.0-src/hadoop-hdfs-project/hadoop-hdfs/src/main/native/libhdfs/jni_helper.c:84
#11 0x7f1e38ed8c83 in __nptl_deallocate_tsd () from
/lib/x86_64-linux-gnu/libpthread.so.0
#12 0x7f1e38ed8ea8 in start_thread () from
/lib/x86_64-linux-gnu/libpthread.so.0
#13 0x7f1e387ea3fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#14 0x in ?? ()



2014-08-28 14:28 GMT+08:00 Vincent,Wei weikun0...@gmail.com:


 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=0x7f3271ad3159, 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=0x0168

 Registers:
 RAX=0x7f326c1eb201, RBX=0x7f326c011b70, RCX=0x7f326c1eb201,
 RDX=0x
 RSP=0x7f3272d60e00, RBP=0x7f3272d60e20, RSI=0x,
 RDI=0x7f326c011b70
 R8 =0x, R9 =0x0001, R10=0x,
 R11=0x0202
 R12=0x, R13=0x7f3272134a60, R14=0x,
 R15=0x
 RIP=0x7f3271ad3159, EFLAGS=0x00010202,
 CSGSFS=0x0033, ERR=0x0004
   TRAPNO=0x000e

 Top of Stack: (sp=0x7f3272d60e00)
 0x7f3272d60e00:   7f326c011b70 
 0x7f3272d60e10:    0004
 0x7f3272d60e20:   7f3272d60e40 7f3271ad34cf
 0x7f3272d60e30:   7f326c0159e8 7f3272b562c0
 0x7f3272d60e40:   7f3272d60e50 7f3271c98409
 0x7f3272d60e50:   7f3272d60e70 7f327192c67d
 0x7f3272d60e60:    7f326c0159e8
 0x7f3272d60e70:   7f326c27f3e0 7f326410ea14
 0x7f3272d60e80:   000500010002 7f3272105b48
 0x7f3272d60e90:    0030
 0x7f3272d60ea0:   7f3272d61a10 7f3272945c83
 0x7f3272d60eb0:   7f3272d61700 
 0x7f3272d60ec0:    7fff7a8c5670
 0x7f3272d60ed0:   7f3272d619c0 
 0x7f3272d60ee0:   0003 7f3272945ea8
 0x7f3272d60ef0:    7f3272d61700
 0x7f3272d60f00:    
 0x7f3272d60f10:    
 0x7f3272d60f20:    
 0x7f3272d60f30:    
 0x7f3272d60f40:    
 0x7f3272d60f50:    
 0x7f3272d60f60:    
 0x7f3272d60f70:    
 0x7f3272d60f80:    6a29d305af3e5c9c
 0x7f3272d60f90:   7fff7a8c5670 7f3272d619c0
 0x7f3272d60fa0:    0003
 0x7f3272d60fb0:   944d36a9b2de5c9c 944d362d13fe5c9c
 0x7f3272d60fc0:    
 0x7f3272d60fd0:    
 0x7f3272d60fe0:    
 0x7f3272d60ff0:    7f32722573fd