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!