MATLAB Answers

Why do I receive a segmentation violation when starting a worker for the MATLAB Distributed Computing Engine?

4 views (last 30 days)
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], 0, 0x40172a60 "toolbox_cache-7.0.1-glnx86.xml", 0) + 32 bytes
[1], 0, 0, 0xbfffd210) + 96 bytes
[2], 0x08672720, 0xbfffd338, 0x40266b54) + 641 bytes
[3], 0x4026fe64, 335, 0xbfffd2c4) + 37 bytes
[4]*, mcrOptionsInternal*, MfileReader*, bool volatile*, bool volatile*)(0x0809f260, 0x0809d240, 0x0809f288, 0xbfffd36f) + 492 bytes
[5], 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
MathWorks Support Team on 6 Dec 2019
Edited: MathWorks Support Team on 6 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:
export HOME
  • 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.


Sign in to comment.

More Answers (0)


No tags entered yet.