Emacs crashing Mac OS X when quit with a shell running

Originator:andrew.pennebaker
Number:rdar://999 Date Originated:
Status: Resolved:
Product:Mac OS X Product Version:10.8.2
Classification: Reproducible:always
 
I often code with two windows open, one for code, one for a shell. When I'm done editing a file, I press C-x C-c to quit Emacs. However, when I do this in Mac OS X, my computer crashes.

Steps to Reproduce:

open Terminal.app
$ emacs
C-x 2
C-x o
M-x shell
C-x o
C-x C-f <file>
(finish editing)
C-x C-s
C-x C-c
"Active processes exist; kill them and exit anyway? (yes or no)"
yes
(OS crashes here)

System:

$ specs emacs brew bash os hardware
Specs:

specs 0.2
https://github.com/mcandre/specs#readme

emacs --version
GNU Emacs 24.2.1
Copyright (C) 2012 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

brew --version
0.9.4

bash --version
GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin12)
Copyright (C) 2007 Free Software Foundation, Inc.

system_profiler SPSoftwareDataType | grep 'System Version'
      System Version: OS X 10.8.2 (12C60)

system_profiler | grep 'Model Identifier'
      Model Identifier: MacBookPro5,5

Mitigation:

Until this is resolved, I have to remember to safely quit the shell process before quitting Emacs.

C-x b *shell*
exit
"Process shell finished"
C-x C-c

Comments

This can’t possibly be the right bug number, can it?


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!