If your Emacs is segfaulting, you can explicitly write to stderr when debugging, so you have trace information! This even works when you are running Emacs with a GUI. (print "hello world" #'external-debugging-output) https://stackoverflow.com/q/22455366/509706