MATLAB: Does R2017a crash sporadically on startup on the Mac

MATLAB

I am attempting to start MATLAB R2017a, which crashes on startup on macOS with a similar stack trace:
Stack Trace (from fault):
[ 0] 0x0000000103c446b4 bin/maci64/libmwfl.dylib+00034484 _ZN2fl4diag15stacktrace_base7captureERKNS0_14thread_contextEm+00000052
[ 1] 0x0000000103c4806a bin/maci64/libmwfl.dylib+00049258 _ZN2fl4test17terminate_handledEv+00000810
[ 2] 0x0000000103c47ad9 bin/maci64/libmwfl.dylib+00047833 ZN2fl4diag13terminate_logEPKcPK17_darwin_ucontext+00000185
[ 3] 0x00000001068ae591 bin/maci64/libmwmcr.dylib+00435601 Z19mnPrintErrorMessageRKNSt3_112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00002081
[ 4] 0x00000001068adee0 bin/maci64/libmwmcr.dylib+00433888 Z19mnPrintErrorMessageRKNSt3_112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00000368
[ 5] 0x00000001068ac8da bin/maci64/libmwmcr.dylib+00428250 mnFatalSignalHandler+00000154
[ 6] 0x00007fff997b852a /usr/lib/system/libsystem_platform.dylib+00009514 _sigtramp+00000026
[ 7] 0x0000000000000000 <unknown-module>+00000000
[ 8] 0x0000000123e1794b bin/maci64/libmwconnectorhttpimpl.dylib+00231755 _ZNK9connector4http14PocoHttpServer18getRoutableAddressEv+00000155
[ 9] 0x0000000123dee73e bin/maci64/libmwconnectorhttpimpl.dylib+00063294 ZN9connector4http30HttpManagerServiceProviderImpl15makeReadyStatusERKNSt3_112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE+00000222
[ 10] 0x0000000123dee60d bin/maci64/libmwconnectorhttpimpl.dylib+00062989 ZN9connector4http30HttpManagerServiceProviderImpl6handleEONSt3_110unique_ptrINS0_15StartHttpServerENS2_14default_deleteIS4_EEEEONS_7AddressEONS2_10shared_ptrINS_7ContextEEE+00000093

Best Answer

This is a known issue with MATLAB R2017a on macOS and has been fixed in MATLAB R2017b.
See the following bug report, which provides a patch and instructions on how to fix this problem:
MATLAB can sporadically crash when started on a Mac
If your Mac crash does not have this stack trace then please look at this article for generic MATLAB crashes on Mac.
Why will MATLAB not start up properly on my Mac?
If you continue to have issues with MATLAB after following the bug report above, contact the MathWorks Licensing and Installation Support team for assistance.
Related Question