skeeto / skewer-mode

Live web development in Emacs
The Unlicense
1.1k stars 57 forks source link

skewer-repl crashes Emacs on Windows 7 for certain inputs #38

Closed NateEag closed 10 years ago

NateEag commented 10 years ago

I've started playing with Skewer's JS REPL, having mostly just used it for CSS work since I discovered it.

I have found a way to crash Emacs with it on Windows 7. It's not hard to avoid, but genuine crashes are nasty things, so I thought I'd file a report.

Start Emacs (emacs-version output is "GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17 on MARVIN").

Execute the run-skewer command.

Execute 'skewer-repl'.

In the new REPL, press C-d.

A dialog box with the following message appears:

A fatal error has occurred!

Would you like to attach a debugger?

Select YES to debug, NO to abort Emacs

(type "gdb -p <emacs-PID> and "continue" inside GDB before clicking YES.)

and of course Emacs shuts down when you say No (I don't have GDB installed on this box).

skeeto commented 10 years ago

Thanks for the bug report. I was able to narrow it down to this:

(with-temp-buffer
  (start-process "crash-emacs-bug" (current-buffer) nil)
  (process-send-eof))

Uses `start-process' to create a PTY process (what does this do in Windows?) which crashes Emacs when sent an EOF. I'll send this on to the Emacs bug mailing list.

skeeto commented 10 years ago

Here's the Emacs bug report:

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16152

NateEag commented 10 years ago

Excellent. Thanks very much for passing it on.