MCR linux shared library segmentation fault on initialization.
Show older comments
I am building a c++ application that uses a shared library compiled with MCR that uses gpu computing. I can compile the application but when the shared library is being initialized I get the following segmentation fault:
Program received signal SIGSEGV, Segmentation fault.
0x00007fffacf09a7d in mlutil::threadutil::CountedMutex::lock() () from /usr/local/MATLAB/MATLAB_Compiler_Runtime/v82/bin/glnxa64/libmwmlutil.so
With the following backtrace:
0x00007fffacf09a7d in mlutil::threadutil::CountedMutex::lock() () from /usr/local/MATLAB/MATLAB_Compiler_Runtime/v82/bin/glnxa64/libmwmlutil.so
(gdb) bt
#0 0x00007fffacf09a7d in mlutil::threadutil::CountedMutex::lock() () from /usr/local/MATLAB/MATLAB_Compiler_Runtime/v82/bin/glnxa64/libmwmlutil.so
#1 0x00007ffff778c87b in mclAddCanonicalPathMacro_proxy () from /usr/local/MATLAB/MATLAB_Compiler_Runtime/v82/runtime/glnxa64/libmwmclmcrrt.so.8.2
#2 0x00007ffff777cc01 in ?? () from /usr/local/MATLAB/MATLAB_Compiler_Runtime/v82/runtime/glnxa64/libmwmclmcrrt.so.8.2
#3 0x00007ffff777db65 in mclmcrInitialize2_proxy () from /usr/local/MATLAB/MATLAB_Compiler_Runtime/v82/runtime/glnxa64/libmwmclmcrrt.so.8.2
#4 0x00000000004dea23 in MatlabWrapper::Initialize (this=0x857bc0) at /media/sda2/Users/Ben/kraken/projects/Source/lib/InSASUtility/MatlabWrapper.cpp:133
#5 0x00000000004dfb5c in MatlabWrapper::SASProcess (this=0x857bc0, matSRDataReal=..., matSRDataImag=..., matLRDataReal=..., matLRDataImag=..., matRollTime=...,
matRollData=..., matPitchTime=..., matPitchData=..., matYawTime=..., matYawData=..., request=..., bPort=true)
at /media/sda2/Users/Ben/kraken/projects/Source/lib/InSASUtility/MatlabWrapper.cpp:336
#6 0x00000000004f734e in InSASProcessor::Process (this=0x858560, request=..., pHandler=0x0)
at /media/sda2/Users/Ben/kraken/projects/Source/lib/InSASUtility/InSASProcessor.cpp:152
#7 0x00000000004d1107 in kss::InSASTileRequest::Process (this=0x7fffffffcb50, pHandler=0x0)
at /media/sda2/Users/Ben/kraken/projects/Source/lib/InSASUtility/InSASTileRequest.cpp:244
#8 0x00000000004b7f53 in GenerateInSASTiles (pszSonarFile=0x569011 "2013-07-10T16-19-04.dat", fileOffset=..., nPings=143, eSide=kss::eSidePort, nRxArrayPairs=2,
bGetBathymetry=false, pszSettingsKey=0x568d2d "42606-19588") at /media/sda2/Users/Ben/kraken/projects/Source/Tools/SonarDataScanner/src/Main.cpp:1371
#9 0x00000000004b9995 in main () at /media/sda2/Users/Ben/kraken/projects/Source/Tools/SonarDataScanner/src/Main.cpp:1644
Has anyone seen this before? I currently don't have access to the Matlab code, but that could be arranged. This works using MSVC on windows.
Thanks,
Ben Anstey
Answers (0)
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!