Segmentation fault on loading opencv_java248

asked 2014-03-27 12:45:48 -0500

Jenniferwillow gravatar image

updated 2019-01-05 07:53:13 -0500

I configured and compiled the OpenCV 2.4.8 distribution on RHEL 6.4. The configuration and compilation appears to have worked fine (after some struggling). However, when I load the library I get a segmentation fault. I've setup two different projects (in NetBeans and Eclipse) and I get exactly the same result. Here's the crash report: The error appears to be in the library. How should I approach debugging this?

# A fatal error has been detected by the Java Runtime Environment:
#  SIGSEGV (0xb) at pc=0x0000003daea0c170, pid=31221, tid=140356986955520
# JRE version: 7.0_21-b11
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  []  pthread_spin_lock+0x0
# 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:
# 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 (0x00007fa764007800):  JavaThread "main" [_thread_in_native, id=31227, stack(0x00007fa768496000,0x00007fa768597000)]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000000000000

RAX=0x0000000000000000, RBX=0x00007fa7539036b0, RCX=0x000000000000001e, RDX=0x00007fa753960c80
RSP=0x00007fa7685945f8, RBP=0x00007fa768594720, RSI=0x00007fa753960c80, RDI=0x0000000000000000
R8 =0x00007fa764193d50, R9 =0x0000000000000001, R10=0x00007fa768594380, R11=0x0000003daea0c170
R12=0x00007fa76415b210, R13=0x00007fa76415b210, R14=0x00007fffa26b50e0, R15=0x0000000000000000
RIP=0x0000003daea0c170, EFLAGS=0x0000000000010202, CSGSFS=0x0000000000000033, ERR=0x0000000000000006

Top of Stack: (sp=0x00007fa7685945f8)
0x00007fa7685945f8:   00007fa752ac9938 0000000000000001
0x00007fa768594608:   0000000000000000 0000000000002b41
0x00007fa768594618:   00007fa752ac9abf 0000000000000001
0x00007fa768594628:   00007fa753960c80 0000000000003dcb
0x00007fa768594638:   00007fa752ac7777 00007fa753960c80
0x00007fa768594648:   00007fa768594670 0000000000006114
0x00007fa768594658:   00007fa752aca5c0 00007fa7539f8960
0x00007fa768594668:   00007fa753960c80 00007fa753960c80
0x00007fa768594678:   00007fa764193d50 0000000000000001
0x00007fa768594688:   00007fa7539036b0 00007fa768594720
0x00007fa768594698:   00007fa752acabde 0000000000000001
0x00007fa7685946a8:   00007fa7539f8960 0000000000004762
0x00007fa7685946b8:   00007fa75317c3d6 0000000000000001
0x00007fa7685946c8:   00007fa7539f8960 000000000000244c
0x00007fa7685946d8:   00007fa753182f4f 0000000000000000
0x00007fa7685946e8:   000000010000ffff 00007fa753903780
0x00007fa7685946f8:   00007fa7531830eb 00007fa76415b210
0x00007fa768594708:   00007fa7533bf3a6 00007fa7523e1a38
0x00007fa768594718:   0000000000000006 00007fffa26b50a8
0x00007fa768594728:   00007fa7527e4f0b 0000003d00000000
0x00007fa768594738:   0000003dada0e535 00000000000921c0
0x00007fa768594748:   0000000000000001 0000000000000000
0x00007fa768594758:   00007fa752487a28 0000000b00000002
0x00007fa768594768:   00007fa768594970 00007fa76415b210
0x00007fa768594778:   0000000000000046 00007fa76415b4c8
0x00007fa768594788:   00007fa764189360 0000000000000001
0x00007fa768594798:   0000003dada12c25 0000000000000040
0x00007fa7685947a8:   00000000f16045e8 00007fa7685947b0
0x00007fa7685947b8:   00000000cef91fcb 8000000168594840
0x00007fa7685947c8:   0000003dadc21160 ffffffff80000001
0x00007fa7685947d8:   00007fa768594970 0000000000000000
0x00007fa7685947e8:   00007fa768594828 00007fa768594888 

Instructions: (pc=0x0000003daea0c170)
0x0000003daea0c150:   01 f6 83 e0 fd 09 c6 31 c0 89 37 f3 c3 90 90 90
0x0000003daea0c160:   31 c0 c3 90 90 90 90 90 90 90 90 90 90 90 90 90
0x0000003daea0c170:   f0 ff 0f 75 0b 31 c0 c3 0f 1f 84 00 00 00 00 00
0x0000003daea0c180:   f3 90 83 3f 00 7f e9 eb f7 90 90 90 90 90 90 90 

Register to memory mapping:

RAX=0x0000000000000000 is an unknown value
RBX=0x00007fa7539036b0: <offset 0x156f6b0> in /home/developer/NetBeansProjects/OpenCV/lib/ at 0x00007fa752394000
RCX=0x000000000000001e is an unknown value
RDX=0x00007fa753960c80: <offset 0x15ccc80> in /home/developer/NetBeansProjects/OpenCV/lib/ at 0x00007fa752394000
RSP=0x00007fa7685945f8 is pointing into the stack for thread: 0x00007fa764007800
RBP=0x00007fa768594720 is pointing into the stack for thread: 0x00007fa764007800
RSI=0x00007fa753960c80: <offset 0x15ccc80> in /home/developer/NetBeansProjects/OpenCV/lib/libopencv_java248 ...
edit retag flag offensive close merge delete