Core Dump: 5.2 Beta & OpenCV on Macbook Pro

Core Dump: 5.2 Beta & OpenCV on Macbook Pro

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.

1 contenuto / 0 nuovi
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione