Article View: gnu.emacs.bug
Article #99001Emacs dumps core when it receives C-z C-\
From: Dan Guilderson
Date: Wed, 19 Dec 1990 15:57
Date: Wed, 19 Dec 1990 15:57
40 lines
2273 bytes
2273 bytes
From: amanda@IESD.AUC.DK (Per Abrahamsen)
Newsgroups: gnu.emacs.bug
Date: 17 Dec 90 13:01:24 GMT
Distribution: gnu
Organization: GNUs Not Usenet
GNU Emacs 18.55.8 of Fri Sep 14 1990 on thiele (berkeley-unix)
Run under: SunOS 4.1 / sun4c
Compiled under: SunOS 4.0.3c / sun4c
Emacs dumps core with signal 3 when it you press the following keys
fast after each other:
C-z C-\
This is a problem on a terminal, where these keys are placed next to
each other.
See the December 1990 issue of the Communications of the ACM. There
is a discussion about the buginess of UNIX programs including an
interesting note about a race condition in emacs. I don't think there
are any simple solutions to this problem. Basically what is happening
is that the C-z tells emacs that the user wants to suspend the
program. emacs catches this and begins a sequence of actions to
suspend itself. First, it returns the terminal to cooked mode so that
now the tty driver will catch all the different signals that the user
types (i.e. C-c, C-\,...). Next, emacs cleans up, and finally emacs
generates the suspend signal so that the kernel will know to suspend
the program. Thus if C-\ is received in the middle of this sequence
then the tty driver will catch it (not emacs) and terminate the
program with a core dump.
Since these keys are so close to each other on the terminal then maybe
you might consider using stty to change the quit signal (C-\) to some
other key.
Daniel Guilderson ryan@cs.umb.edu
University of Massachusetts at Boston #include <stddisclaimer.h>
Technical Details
Message-ID:
<9012191557.AA13292@berlin-gw>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!berlin-gw.stratus.com!ryanShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,936805222db9f420 X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-12-19 07:57:54 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!berlin-gw.stratus.com!ryan From: ryan@berlin-gw.stratus.com (Dan Guilderson) Newsgroups: gnu.emacs.bug Subject: Emacs dumps core when it receives C-z C-\ Message-ID: <9012191557.AA13292@berlin-gw> Date: 19 Dec 90 15:57:54 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 40 Approved: bug-gnu-emacs@prep.ai.mit.edu