- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page