Although Emacs (220.127.116.11) runs fine if launched from the Finder, if the terminal version is launched:
Emacs crashes with:
Fatal error 11: Segmentation fault 51512 abort /Applications/Emacs.app/Contents/MacOS/Emacs -nw.
It seems the issue is caused by a single line in init.el,
(set-face-attribute 'default nil :font "Menlo-16")
If that line is commented out, the terminal version of Emacs will start fine too.
To pinpoint the cause of the crash took me several hours (diminishing my init.el half by half).
I am aware that in any case Emacs will inherit whatever font and font size is specified in the terminal app (basically, that line is not meaningful in the cli.)
- Generally speaking, is there a better way to debug a crashing Emacs? Perhaps using some kind of cli debugger that would print a more descriptive message?
- Why is that line crashing Emacs via cli, but not if launched from the Finder?