Article View: gnu.emacs.bug
Article #99000Re: Emacs dumps core when it receives C-z C-\
From: Thomas Narten
Date: Wed, 19 Dec 1990 13:13
Date: Wed, 19 Dec 1990 13:13
28 lines
2013 bytes
2013 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 a problem on a terminal, where these keys are placed next to > each other. The current issue of CACM contains an article on "buggy" Unix programs that describes this problem. The above behavior is a race condition. Specifically, ^Z directs emacs to suspend itself, which requires resetting the terminal driver to its default state (e.g., so that ^H, ^C, etc. are interpreted by the device driver rather than the running application). Emacs then sends itself a SIGTSTP to actually suspend itself. There is a small window between resetting the terminal driver and becoming suspended. If the user types C-\ during this window, the terminal driver sends emacs a SIGQUIT, which by definition cannot be ignored. There appears no easy solution. No matter what one does, there will always be a small window after the terminal driver has been reset but before the emacs process has actually become suspended, during which time it is vulnerable to a SIGQUIT generated in response to C-\. -- Thomas Narten narten@cs.albany.edu
Technical Details
Message-ID:
<NARTEN.90Dec19081329@percival.albany.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!snorkelwacker.mit.edu!apple!usc!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!CS.ALBANY.EDU!nartenReferences:
<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-19 05:13:29 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!snorkelwacker.mit.edu!apple!usc!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!CS.ALBANY.EDU!narten From: narten@CS.ALBANY.EDU (Thomas Narten) Newsgroups: gnu.emacs.bug Subject: Re: Emacs dumps core when it receives C-z C-\ Message-ID: <NARTEN.90Dec19081329@percival.albany.edu> Date: 19 Dec 90 13:13:29 GMT References: <9012171301.AA14222@iesd.auc.dk> Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: Computer Science Department, SUNY at Albany, Albany, NY 12222 Lines: 28 Approved: bug-gnu-emacs@prep.ai.mit.edu