From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#14062: 24.3.50; emacs_backtrace.txt Date: Mon, 15 Apr 2013 17:18:18 +0300 Message-ID: <83y5cj6fo5.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1366035537 31613 80.91.229.3 (15 Apr 2013 14:18:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Apr 2013 14:18:57 +0000 (UTC) Cc: lekktu@gmail.com, 14062@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 15 16:18:57 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 1URkFF-00070y-BP for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Apr 2013 16:18:57 +0200 Original-Received: from localhost ([::1]:57774 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URkFE-0003EH-S0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Apr 2013 10:18:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URkFA-0003BW-SM for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2013 10:18:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URkF8-0000yg-VT for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2013 10:18:52 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URkF8-0000yV-Rl for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2013 10:18:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1URkJB-0002q9-SK for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2013 10:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Apr 2013 14:23:01 +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.136603578010910 (code B ref 14062); Mon, 15 Apr 2013 14:23:01 +0000 Original-Received: (at 14062) by debbugs.gnu.org; 15 Apr 2013 14:23:00 +0000 Original-Received: from localhost ([127.0.0.1]:52467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1URkJ9-0002pr-Kh for submit@debbugs.gnu.org; Mon, 15 Apr 2013 10:23:00 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:42835) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1URkJ6-0002pb-H1 for 14062@debbugs.gnu.org; Mon, 15 Apr 2013 10:22:57 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MLA00B00VHFLS00@a-mtaout21.012.net.il> for 14062@debbugs.gnu.org; Mon, 15 Apr 2013 17:18:09 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MLA00BLWVQ8H470@a-mtaout21.012.net.il>; Mon, 15 Apr 2013 17:18:09 +0300 (IDT) In-reply-to: <516BF54E.9020802@gmx.at> X-012-Sender: halo1@inter.net.il 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:73427 Archived-At: > Date: Mon, 15 Apr 2013 14:40:46 +0200 > From: martin rudalics > CC: drew.adams@oracle.com, Juanma Barranquero , > 14062@debbugs.gnu.org > > > If XBUFFER is indeed the problem, then this means that this snippet, > > around line 3115 of w32fns.c: > > > > f = x_window_to_frame (dpyinfo, hwnd); > > w = XWINDOW (FRAME_SELECTED_WINDOW (f)); > > > > produces a non-leaf window in w. Can a frame's selected window be > > non-leaf? > > 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? > 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 and XBUFFER hits an assertion violation, what else can this window be except non-leaf? > > Anyway, I added in trunk revision 112287 some more debugging code to > > point out which assertions are violated. Let's see what that gets us. > > But you also added some parentheses so now we might not be able to find > out whether it was just due to badly written macros ;-) 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.