- NOTE: Starting in R2019a the following name changes occurred:
- MATLAB Distributed Computing Server was renamed to MATLAB Parallel Server
- mdce_def was renamed to mjs_def
- mdce binary was renamed to mjs
- mjs_def.bat file is located in $MATLAB/R20XXx/toolbox/distcomp/bin for R2019a and earlier.
Why do I receive a segmentation violation when starting a worker for the MATLAB Distributed Computing Engine?
1 view (last 30 days)
Show older comments
MathWorks Support Team
on 27 Jun 2009
Edited: MathWorks Support Team
on 5 Dec 2019
I have configured the mdce service on my Red Hat machine and have verified that mdce is running. When starting a worker on the Red Hat machine, I receive a segmentation violation in the worker log containing the followin stack trace:
Stack Trace:
[0] libmwmpath.so:mpCombinePathName(0x401885a0, 0, 0x40172a60 "toolbox_cache-7.0.1-glnx86.xml", 0) + 32 bytes
[1] libmwservices.so:svGetToolboxCacheFile(0, 0, 0, 0xbfffd210) + 96 bytes
[2] libmwbridge.so:mnRunLoginScript(0x4026fbb0, 0x08672720, 0xbfffd338, 0x40266b54) + 641 bytes
[3] libmwbridge.so:mnRunPathDependentInitialization()(0, 0x4026fe64, 335, 0xbfffd2c4) + 37 bytes
[4] libmwmcr.so:mcr_init_handler_cpp(mcrInstance*, mcrOptionsInternal*, MfileReader*, bool volatile*, bool volatile*)(0x0809f260, 0x0809d240, 0x0809f288, 0xbfffd36f) + 492 bytes
[5] libmwmcr.so:mcrInstance::mcrInstance(mcrOptions&, MfileReader*)(0x0809f260, 0xbfffd600, 0x0809f288, 0xbfffdc4c) + 481 bytes
[6] MATLAB:mcrMain(int, char**)(11, 0xbffff6b4, 0xbffff668, 0x4202b319) + 239 bytes
[7] MATLAB:main(11, 0xbffff6b4, 0xbffff6e4, 0x400124b8) + 23 bytes
[8] MATLAB:data_start(0x0804a7c4, 11, 0xbffff6b4, 0x0804a3d8) + 72444 bytes
Accepted Answer
MathWorks Support Team
on 6 Dec 2019
Edited: MathWorks Support Team
on 5 Dec 2019
This error might occur when the mjs service is configured to start at boot time.
To start the mjs manually you must run
$MATLABROOT/toolbox/parallel/bin/mjs start
To allow the mjs service to start properly at boot time, open the mjs script in your $MATLABROOT/toolbox/parallel/bin directory, where $MATLABROOT is your MATLAB installation directory, and add the following two lines to the beginning of the mjs script:
HOME=/
export HOME
0 Comments
More Answers (0)
See Also
Categories
Find more on Startup and Shutdown 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!