MATLAB: Does the application compiled with MATLAB Compiler 4.2 (R14SP2) fail with a segmentation violation

aloneenviromentMATLAB Compilersegvstandstandalone

When I run a compiled application, a segmentation fault occurs with the following call at the top of the stack trace:
Stack Trace:
[0] libmwmpath.so:mpCombinePathName~(0x411d5280, 0, 0x411b3740 "toolbox_cache-7.0.4-glnx86.xml", 0) + 32 bytes

Best Answer

This bug has been fixed in Release 2006a (R2006a). For previous product releases, read below for any possible workarounds:
This error occurs when the HOME environment variable is unset. This environment variable is generally set for a user's home directory, but may be unset by setup and teardown scripts used for batch applications.
To work around this error, set HOME to a valid user's home directory or a directory accessible by the user account running the application