Ask Your Question

Revision history [back]

SEGFAULT in libnative_camera

Hello everyone,

I'm having hard times finding the root cause of an issue in my native android app using OpenCV video camera feature. And since the libnative_camera source code is not public (unless I'm making a mistake) It's difficult to understand it.

    signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
    ...
    #00  pc 0000effc  /system/lib/libc.so
    #01  pc 00011da3  /system/lib/libc.so (dlfree+1458)
    #02  pc 0000cf13  /system/lib/libc.so (free+10)
    #03  pc 0000b28f  /data/app-lib/com.xxx-1/libnative_camera_r4.2.0.so (std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()+4)
    #04  pc 00040c90  /data/app-lib/com.xxx-1/libplgExtVideo.so (-----)

The weird part is that there absolutely no link in my source code between stack #04 and #03.

Is there any way to get a debug version of the libnative_camera ? about its source code? Does it run some static initialization code? Did someone encounter a similar issue?

thanks!