Crash of "emacs -nw" on Ctrl-G

Nozomu Ando <[email protected]> Mon, 1 Jul 2002 15:05:52 +0900
Newsgroups gmane.emacs.macintosh.devel
Message-ID <[email protected]>
Hi,

I found crash of "emacs -nw" on Ctrl-G.

OS: MacOSX 10.1.5
Emacs version: recent CVS tree
Compiler: Developer Tools Dec 2001
Configration:  ./configure --without-x

How-To-Repeat:
1. invoke emacs with -nw option:
	emacs -q -nw
2. execute shell in the emacs:
	M-x shell
3. type Ctrl-G
4. Got "Fatal error (10).Bus error"


I think the problem is in process.c. After vfork, child process sets 
SIGINT handler to SIG_DFL
(process.c:1847) and change the parent's also.

Fix:
   add "#define POSIX_SIGNALS" in src/s/darwin.h

This fix enables the code of recording/restoring signal handler in 
process.c.
and the crash has gone.

---
Nozomu Ando

P.S.
   I'm very happy with carbon emacs. Many thanks!



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf