Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

Core Dump: 5.2 Beta & OpenCV on Macbook Pro

sdesiano
Beginner
224 Views
I spent today tracking down an bug in my code. I used libgmalloc (via setenv DYLD_INSERT_LIBRARIES /usr/lib/libgmalloc.dylib), which turned the bug into a crash (this is the correct behavior). I eventually figured out that the OpenCV library was crashing on load. From there, I built a debug version of OpenCV and narrowed the problem down to cxswitcher.cpp. In there, I discovered that the crash occurred when the IPP library was being loaded.

A simpler test case, which doesn't require OpenCV is:

cat > ipp_crash.cpp
int main (int argc, char * argv[]) { return 0; }
^D
g++ -o ipp_crash -lippcore -lippcv -lguide -L/Library/Frameworks/Intel_IPP.framework/Libraries ipp_crash.cpp
setenv DYLD_INSERT_LIBRARIES /usr/lib/libgmalloc.dylib
./ipp_crash

You will get a segmentation fault and a core if you have them turned on. I can't go debug any farther because I don't have source for libippcv.

-- Sal
smile.

0 Kudos
0 Replies
Reply