- Linux/mac systems frequently have issues when multiple versions of c++ libraries are used in the same application. Problems can be reduced by configuring the library's build to reduce or control the default visibility of symbols exported. I believe one way to do this on the mac is to use two level namespace symbol exports.
- MATLAB 2014a is dynamically linked to boost 1.48 is it possible to rebuild using the same version of boost?
- If the library has a signal handler that is almost guaranteed to cause problems.
Matlab 2014a EXC_CRASH (SIGSEGV) crash when calling .dylib
1 view (last 30 days)
Show older comments
Rory Olsen
on 6 Feb 2015
Commented: Rory Olsen
on 17 Feb 2015
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 Comments
Accepted Answer
Philip Borghesani
on 6 Feb 2015
I suggest contacting support for this type of issue.
Some initial thought that may be way off base do to lack of information and my inexperience with the Mac platform.
Is there a standard MATLAB crash dump created along with the MATLAB has crashed dialog being displayed or not. If it is it would be helpful.
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!