Discussion:
[Matlab-emacs-discuss] MATLAB R2016b segmentation-faults when started from emacs
Peter Mao
2017-03-15 18:29:41 UTC
Permalink
For those of you still using 2016b (or 2016a), here is a relatively
painless solution.

I usually have /usr/local/bin/matlab symlinked to the /Applications...
file. Following a suggestion from Eric Ludlam, I changed that file to the
following script which solves my crashing issues.

#!/bin/bash
ulimit -s 8512
/Applications/MATLAB_R2016b.app/bin/matlab $*

note that 8512 is the MAXIMUM value that ulimit -s can be set to. Higher
values cause failure. I don't know why.

Peter

Loading...