🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99555

Re: C-G C-G gives fatal error (1)

#99555
From: P.Garbha
Date: Sat, 07 Jul 1990 10:52
35 lines
2029 bytes
In article <1990Jul6.165254.26878@bbt.se> pgd@bbt.se (P.Garbha) writes:
>I have problem with emacs. 
>The problem is that two quick C-G's give "fatal error (1)".
>Where "quick" is dependant on the system loading.
>Does anyone have a fix for this?
>
>(My operating system is Xenix/386)
>
>

I got one RTFM answer to this post, and since i thought that was quit
inappropriate, since it did not solve the problem at all, i hacked up
emacs to fix the problem. But i don't know if it will break something
else.

The problem is that after one C-G, the SIGINT trap is reset by the
SysV kernel, and when the next comes, it will abort the process.

There seems to be one simple fix, though. Since it is so simple, i
cannot understand why it is not there in emacs in the first place.
The fixes are to use the sigset() and sigrelse() system calls
instead of the signal() system call, in the keyboard.c file.
Then i get the advertised behavior, of emacs asking if i want to
abort/dump core, etc.

I suspect that this can be a problem for SysV users, on other
operating systems than Xenix.

To force the error, try the following:
Edit a very big file (i used a 3MB file), insert a character in the
beginning of the file, and then go to the bottom, and insert a
character. While emacs is shuffling core, give a few fast C-G's.
If you get "Fatal error (1)", you have the bug. If nothing happens,
try a bigger file, if you get the question about auto-save/dump-core
your version seems to work.
Technical Details
Message-ID: <1990Jul7.105221.412@bbt.se>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!sunic!compuram!pgd
References: <1990Jul6.165254.26878@bbt.se>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,a017f0f5402389fb
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-07-07 04:32:52 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!sunic!compuram!pgd
From: pgd@bbt.se (P.Garbha)
Newsgroups: gnu.emacs.bug
Subject: Re: C-G C-G gives fatal error (1)
Message-ID: <1990Jul7.105221.412@bbt.se>
Date: 7 Jul 90 10:52:21 GMT
References: <1990Jul6.165254.26878@bbt.se>
Organization: The Bhaktivedanta Book Trust
Lines: 35
Posted: Sat Jul  7 11:52:21 1990