From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#14062: 24.3.50; emacs_backtrace.txt Date: Mon, 15 Apr 2013 17:53:26 +0200 Message-ID: <516C2276.3020006@gmx.at> References: <75799AB3F22B457D85197F174077F208@us.oracle.com> <83wqstxrbo.fsf@gnu.org> <83fvzhxcdn.fsf@gnu.org> <8338vfyiy4.fsf@gnu.org> <838v4k6yc4.fsf@gnu.org> <516BF54E.9020802@gmx.at> <83y5cj6fo5.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1366041233 6253 80.91.229.3 (15 Apr 2013 15:53:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Apr 2013 15:53:53 +0000 (UTC) Cc: lekktu@gmail.com, 14062@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 15 17:53:56 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1URljA-0003IY-CM for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Apr 2013 17:53:56 +0200 Original-Received: from localhost ([::1]:47173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URljA-0003bi-00 for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Apr 2013 11:53:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URlj6-0003Yy-3z for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2013 11:53:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URlj4-0004II-PX for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2013 11:53:52 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URlj4-0004I6-M7 for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2013 11:53:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1URln8-0007qM-Av for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2013 11:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Apr 2013 15:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14062 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: Original-Received: via spool by 14062-submit@debbugs.gnu.org id=B14062.136604147330120 (code B ref 14062); Mon, 15 Apr 2013 15:58:02 +0000 Original-Received: (at 14062) by debbugs.gnu.org; 15 Apr 2013 15:57:53 +0000 Original-Received: from localhost ([127.0.0.1]:52565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1URlmy-0007pj-LW for submit@debbugs.gnu.org; Mon, 15 Apr 2013 11:57:53 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:56673) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1URlmv-0007pb-Ss for 14062@debbugs.gnu.org; Mon, 15 Apr 2013 11:57:51 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.12]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0Lvegk-1Ubs0C0osW-017ShG for <14062@debbugs.gnu.org>; Mon, 15 Apr 2013 17:53:36 +0200 Original-Received: (qmail invoked by alias); 15 Apr 2013 15:53:35 -0000 Original-Received: from 62-47-45-70.adsl.highway.telekom.at (EHLO [62.47.45.70]) [62.47.45.70] by mail.gmx.net (mp012) with SMTP; 15 Apr 2013 17:53:35 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/QUXEsqs/Q+fVVLTld2BaHdm5OSpE7tBWrQplc6u O24sxoNc3C9NVR In-Reply-To: <83y5cj6fo5.fsf@gnu.org> X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:73432 Archived-At: >> I could imagine lots of things including dead windows. > > Are these "things", including dead windows, allowed to be the selected > window of a frame that gets input messages from Windows, i.e. is at > least visible, if not in the foreground? Hopefully never. Non-leaf and deleted windows are only used by the window management and the redisplay code (the latter could also employ a simple list of live windows instead). And deleted windows are only allowed in saved window configurations. Conceptually, the selected window must be always a leaf window. During a deletion this invariant might get temporarily violated until another leaf window has been selected. Maybe that's what we are hitting here. An internal window is a priori never selected. >> But it would be a strange coincidence if it were a non-leaf window. >> What drives you to this question? > > Only a non-leaf window can have its w->contents be something other > than a buffer, right? If BUFFERP(w->contents) returns zero ... for an internal window w->contents _must_ be another window, only for deleted windows this can be nil (but Dmitry would have to verify this, I didn't look at his last changes yet) ... > and > XBUFFER hits an assertion violation, what else can this window be > except non-leaf? A window with an uninitialized contents field. Such windows exist from the moment they are allocated by make_window until they either get a child or a buffer in the contents field. > I don't think so. I examined the preprocessed source, and didn't see > any instance of missing parentheses. I added some just so someone who > looks at the macros won't wonder, like I did, whether this could be > the problem. > > But even if you are right, and the problem will now disappear, we can > still resolve this bug by simply going back to the original code. I don't think the problem will disappear this way. martin