Nalini Ganapati created HDFS-13585:

             Summary: libhdfs SIGSEGV during shutdown of Java application.
                 Key: HDFS-13585
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: native
    Affects Versions: 2.7.5
         Environment: Centos 7
            Reporter: Nalini Ganapati

We are using libhdfs for hdfs support from our native library. This has been 
working mostly fine with Java/Spark applications, but some of them throw a 
SIGSEGV in hdfsThreadDestructor(). We tried to dynamically load and unload using dlopen/dlclose but to no avail and we still see the seg fault. 
Is this a known issue? Looks like thread local storage is involved, are there 


Here is a call stack from gdb java <core file>
(gdb) bt
#0 0x00007f3333ad21f7 in raise () from /usr/lib64/
#1 0x00007f3333ad38e8 in abort () from /usr/lib64/
#2 0x00007f3333380259 in os::abort(bool) () from 
#3 0x00007f3333585986 in VMError::report_and_die() () from 
#4 0x00007f3333389ec7 in JVM_handle_linux_signal () from 
#5 0x00007f333337d678 in signalHandler(int, siginfo_t*, void*) () from 
#6 <signal handler called>
#7 0x00007f3333341e66 in Monitor::ILock(Thread*) () from 
#8 0x00007f33333428f6 in Monitor::lock_without_safepoint_check() () from 
#9 0x00007f333358bc21 in VM_Exit::wait_if_vm_exited() () from 
#10 0x00007f333314fee5 in jni_DetachCurrentThread () from 
#11 0x00007f32f2645f15 in hdfsThreadDestructor (v=0x7f332c018bc8)
#12 0x00007f3334490c22 in __nptl_deallocate_tsd () from 
#13 0x00007f3334490e33 in start_thread () from /usr/lib64/
#14 0x00007f3333b9534d in clone () from /usr/lib64/

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to