From xemacs-m  Fri Mar 14 01:04:01 1997
Received: from mailbox2.ucsd.edu (mailbox2.ucsd.edu [132.239.1.54])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id BAA08131
	for <xemacs-beta@xemacs.org>; Fri, 14 Mar 1997 01:04:00 -0600 (CST)
Received: from sdnp5.ucsd.edu (sdnp5.ucsd.edu [132.239.79.10]) by mailbox2.ucsd.edu (8.8.5/8.6.9) with SMTP id XAA17698 for <xemacs-beta@xemacs.org>; Thu, 13 Mar 1997 23:04:00 -0800 (PST)
Received: by sdnp5.ucsd.edu (SMI-8.6/SMI-SVR4)
	id XAA04909; Thu, 13 Mar 1997 23:06:03 -0800
Sender: dmoore@sdnp5.ucsd.edu
To: XEmacs Beta Mailing List <xemacs-beta@xemacs.org>
Subject: Re: Bug in XEmacs
References: <Pine.GSO.3.96.970313105629.15936A-100000@camoes.rnl.ist.utl.pt> <m2vi6vm5z2.fsf@altair.xemacs.org>
X-Face: "oX;zS#-JU$-,WKSzG.1gGE]x^cIg!hW.dq>.f6pzS^A+(k!T|M:}5{_%>Io<>L&{hO7W4cicOQ|>/lZ1G(m%7iaCf,6Qgk0%%Bz7b2-W3jd0m_UG\Y;?]}4s0O-U)uox>P3JN)9cm]O\@,vy2e{`3pb!"pqmRy3peB90*2L
Mail-Copies-To: never
Mime-Version: 1.0 (generated by tm-edit 7.105)
Content-Type: multipart/mixed;
 boundary="Multipart_Thu_Mar_13_23:06:01_1997-1"
Content-Transfer-Encoding: 7bit
From: David Moore <dmoore@ucsd.edu>
Date: 13 Mar 1997 23:06:01 -0800
In-Reply-To: Steven L Baur's message of 13 Mar 1997 20:51:13 -0800
Message-ID: <rv7mjbx89y.fsf@sdnp5.ucsd.edu>
Lines: 72
X-Mailer: Gnus v5.4.24/XEmacs 19.15

--Multipart_Thu_Mar_13_23:06:01_1997-1
Content-Type: text/plain; charset=US-ASCII

Steven L Baur <steve@miranova.com> writes:

> mkdir /tmp/temp
> xemacs -q -no-site-file
> C-x C-f
> /tmp/temp/foo
> Type in a line of text
> C-x C-s
> 
> [Go to a convenient XTerm and execute `/bin/rm -rf /tmp/temp']
> [Go back to XEmacs window]
> Hit any key to make the buffer modified
> C-x C-c
> n  (to the save file /tmp/temp/foo prompt)
> yes (to the Modified buffers exist; exit anyway?)
> 

[ overflow from lisp-union removed ]

> #9  0x402b239d in raise (sig=136190077)
> #10 0x80d68d1 in selected_frame () at /usr/src/xemacs-20.0/src/frame.c:687
> #11 0x80c7048 in auto_save_error (condition_object={s = {type_mark = 2, 
> #12 0x80918e3 in condition_case_1 (handlers={s = {type_mark = 1, 
> #13 0x80c770a in Fdo_auto_save (no_message={s = {type_mark = 1, 
> #14 0x808f2f9 in shut_down_emacs (sig=0, stuff={s = {type_mark = 1, 
> #15 0x808f291 in Fkill_emacs (arg={s = {type_mark = 1, val = -131055612}, 

Maybe we shouldn't be calling selected_frame after all of the devices
are gone. ;-)

Oh, I see this, is an xemacs-20.0 trace.  Ok.  This seems to fix it.
Patch against 19.15b98.


Is this like Xeno's paradox?  The closer we get to a 19.15 final
release, the more simple never before reported bugs from 19.14 will show
up?  This is 2 in 3 days.


--Multipart_Thu_Mar_13_23:06:01_1997-1
Content-Type: application/octet-stream; type=patch
Content-Disposition: attachment; filename="fileio.diff"
Content-Transfer-Encoding: 7bit

--- fileio.c.orig	Thu Mar 13 22:54:43 1997
+++ fileio.c	Thu Mar 13 22:54:10 1997
@@ -4121,6 +4121,9 @@
   /* This function can GC */
   if (gc_in_progress)
     return Qnil;
+  /* Don't try printing an error message after everything is gone! */
+  if (preparing_for_armageddon)
+    return Qnil;
   clear_echo_area (selected_frame (), Qauto_saving, 1);
   Fding (Qt, Qauto_save_error, Qnil);
   message ("Auto-saving...error for %s", XSTRING_DATA (current_buffer->name));



--Multipart_Thu_Mar_13_23:06:01_1997-1
Content-Type: text/plain; charset=US-ASCII

-- 
David Moore <dmoore@ucsd.edu>       | Computer Systems Lab      __o
UCSD Dept. Computer Science - 0114  | Work: (619) 534-8604    _ \<,_
La Jolla, CA 92093-0114             | Fax:  (619) 534-1445   (_)/ (_)
<URL:http://oj.egbt.org/dmoore/>    | In a cloud bones of steel.

--Multipart_Thu_Mar_13_23:06:01_1997-1--

