Matlab 2014a EXC_CRASH (SIGSEGV) crash when calling .dylib
이전 댓글 표시
Issue
Matlab 2014a crashes after using .dylib functions with calllib. After running the attached .m script to completion, Matlab crashes. The amount of time before it crashes varies from being almost instant to taking many (tens of) second.
Happens on Mac OS X 10.7.5 and we've had a report of this happening on MacOS 10.8.5.
.dylib details
The .dylib is libLabJackM.dylib, which statically links to Boost 1.55. It and its dependencies are available from:
This is a .dylib we (LabJack Corp.) are the authors of.
.m script for reproducing the problem
if ~libisloaded('libLabJackM')
[notfound, warning] = loadlibrary('/usr/local/lib/libLabJackM.dylib', '/usr/local/include/LabJackM.h')
end
[err, b, c, d, handle] = calllib('libLabJackM', 'LJM_OpenS', 't7', 'tcp', '192.168.1.125', 0)
if err > 0
error(['LJM error: ' num2str(err)])
end
Attached
- crash report
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Code Performance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!