Article View: gnu.emacs.bug
Article #98998Re: Emacs dumps core when it receives C-z C-\
From: Barry Margolin
Date: Wed, 19 Dec 1990 05:40
Date: Wed, 19 Dec 1990 05:40
30 lines
2196 bytes
2196 bytes
In article <9012171301.AA14222@iesd.auc.dk> amanda@IESD.AUC.DK (Per Abrahamsen) writes:
>Emacs dumps core with signal 3 when it you press the following keys
>fast after each other:
> C-z C-\
This is impossible to solve, although it could be made harder to reproduce.
C-\ is the standard Unix keystroke for forcing the current program to dump
core. Part of the job of C-z in Emacs is to restore the terminal modes to
normal, which means enabling the standard interpretation of the C-\ key.
If you type C-\ between the time that it has restored the terminal modes
and has sent itself the stop signal, it will be force to dump core.
It could be made less likely to occur by removing another feature. After
restoring the terminal modes, it takes any typeahead that you entered after
the C-z and stuffs it back into the terminal input buffer. This is so that
you can type a shell command right after typing C-z, without losing the
characters you typed before the modes changed. Unfortunately, control
characters stuffed into the input buffer this way execute immediately.
>This is a problem on a terminal, where these keys are placed next to
>each other.
Luckily, most terminals don't have these keys next to each other. I think
the feature described in my second paragraph above is useful, and would
hate to see it killed because some terminals have lousy keyboard layouts.
--
Barry Margolin, Thinking Machines Corp.
barmar@think.com
{uunet,harvard}!think!barmar
Technical Details
Message-ID:
<1990Dec19.054047.18288@Think.COM>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!BLOOM-BEACON.MIT.EDU!think!barmarReferences:
<9012171301.AA14222@iesd.auc.dk>Show 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-18 21:40:47 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!BLOOM-BEACON.MIT.EDU!think!barmar From: think!barmar@BLOOM-BEACON.MIT.EDU (Barry Margolin) Newsgroups: gnu.emacs.bug Subject: Re: Emacs dumps core when it receives C-z C-\ Message-ID: <1990Dec19.054047.18288@Think.COM> Date: 19 Dec 90 05:40:47 GMT References: <9012171301.AA14222@iesd.auc.dk> Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: Thinking Machines Corporation, Cambridge MA, USA Lines: 30 Approved: bug-gnu-emacs@prep.ai.mit.edu