🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99297

fix for division by zero bug in VMS Emacs

#99297
From: Scott S. Snyder
Date: Fri, 12 Oct 1990 01:13
35 lines
1721 bytes
Recently, someone (sorry, I didn't save the message) reported a bug
with division by zero in Emacs 18.55 under VMS.

The bug can be elicited by starting Emacs with `-q' and typing in *scratch*:
`(/ 5 0) LFD LFD'. Emacs crashes with a division by zero exception.

It seems that VMS forgets about a signal handler after the signal has been
raised. The following patch to data.c fixes the problem.

Scott Snyder
sss@max.physics.sunysb.edu

------------------------------------------------------------------------------
*** data.c_orig	Thu Oct 11 21:06:00 1990
--- data.c	Thu Oct 11 21:05:41 1990
***************
*** 1563,1568
       must reestablish each time */
    signal (signo, arith_error);
  #endif /* USG */
  #ifdef BSD4_1
    sigrelse (SIGFPE);
  #else /* not BSD4_1 */

--- 1563,1572 -----
       must reestablish each time */
    signal (signo, arith_error);
  #endif /* USG */
+ #ifdef VMS
+   /* so does VMS! */
+   signal (signo, arith_error);
+ #endif /* VMS */
  #ifdef BSD4_1
    sigrelse (SIGFPE);
  #else /* not BSD4_1 */
Technical Details
Message-ID: <9010120113.AA18234@max.physics.sunysb.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!MAX.PHYSICS.SUNYSB.EDU!sss

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,8e1ed6946dad403e,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-10-11 18:13:21 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!MAX.PHYSICS.SUNYSB.EDU!sss
From: sss@MAX.PHYSICS.SUNYSB.EDU (Scott S. Snyder)
Newsgroups: gnu.emacs.bug
Subject: fix for division by zero bug in VMS Emacs
Message-ID: <9010120113.AA18234@max.physics.sunysb.edu>
Date: 12 Oct 90 01:13:21 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 35
Approved: bug-gnu-emacs@prep.ai.mit.edu
Posted: Fri Oct 12 02:13:21 1990