From xemacs-m  Wed Feb  5 22:53:54 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id WAA12916
	for <xemacs-beta@xemacs.org>; Wed, 5 Feb 1997 22:53:53 -0600 (CST)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id VAA06536;
	Wed, 5 Feb 1997 21:04:56 -0800
To: xemacs-beta@xemacs.org
Subject: Re: 20.0: recipe for frame crash
References: <QQcbqw26763.199702060230@crystal.WonderWorks.COM> 	<m291524nxh.fsf@altair.xemacs.org> <hhg1za1ref.fsf@dres.elam.org>
X-Url: http://www.miranova.com/%7Esteve/
Mail-Copies-To: never
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: James LewisMoss's message of 05 Feb 1997 23:37:28 -0500
Mime-Version: 1.0 (generated by tm-edit 7.101)
Content-Type: text/plain; charset=US-ASCII
Date: 05 Feb 1997 21:04:52 -0800
Message-ID: <m268064j9n.fsf@altair.xemacs.org>
Lines: 34
X-Mailer: Gnus v5.4.11/XEmacs 20.0

I'm looking at this now.  This looks very bad.

x_delete_frame has a comment that says:
  /* Frames with the popup property are using other frames as their
     widget parent.  Deleting them are their parent has already been
     deleted can lead to crashes. */

This is what appears to be happening.  If you delete the parent frame
of a popup, there appears to be total chaos.

Consider this addition to Kyle's test case:

(add-hook 'delete-frame-hook
	  (lambda (f)
	    (save-excursion
	      (set-buffer "*scratch*")
	      (insert (pp f) "\n"))))

(setq f (selected-frame))
(make-frame (list 'popup (selected-frame)))
(make-frame)
(sit-for 0)
(delete-frame f)
(sit-for 0)
(save-buffers-kill-emacs)


The bomb occurs on the second sit-for with a blown stack. :-(

Can we disable popups entirely in the short term?  What code depends
on them?
-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.

