Questions tagged «crash»

2
更好的调试崩溃的Emacs?
虽然从Finder启动Emacs(24.3.93.1)可以正常运行,但是如果启动了终端版本,则: /Applications/Emacs.app/Contents/MacOS/Emacs -nw Emacs崩溃: Fatal error 11: Segmentation fault[1] 51512 abort /Applications/Emacs.app/Contents/MacOS/Emacs -nw。 看来问题是由init.el中的一行引起的, (set-face-attribute 'default nil :font "Menlo-16") 如果将该行注释掉,则Emacs的终端版本也将正常启动。 为了查明崩溃原因,我花了几个小时(将init.el减少一半)。 我知道,无论如何,Emacs都将继承终端应用程序中指定的任何字体和字体大小(基本上,该行在cli中没有意义。) 一般来说,是否有更好的方法来调试崩溃的Emacs?也许使用某种cli调试器可以打印出更具描述性的消息? 为什么该行通过cli导致Emacs崩溃,但如果不是从Finder启动则不会崩溃?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.