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#12251: 24.2.50; crash in note_mouse_highlight Date: Thu, 23 Aug 2012 10:48:43 +0200 Message-ID: <5035EE6B.50208@gmx.at> References: <87obm4ayyn.fsf@gnu.org> <83fw7gaxyx.fsf@gnu.org> <87k3wsax0k.fsf@gnu.org> <83ehn0aw3p.fsf@gnu.org> <87sjbfhcii.fsf@gnu.org> <83vcgaam5w.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 1345711785 16086 80.91.229.3 (23 Aug 2012 08:49:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Aug 2012 08:49:45 +0000 (UTC) Cc: sds@gnu.org, 12251@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 23 10:49:45 2012 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 1T4T6j-0000XJ-Uu for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Aug 2012 10:49:42 +0200 Original-Received: from localhost ([::1]:46367 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4T6i-0007HO-Cp for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Aug 2012 04:49:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4T6g-0007HH-9j for bug-gnu-emacs@gnu.org; Thu, 23 Aug 2012 04:49:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T4T6c-0001Vn-73 for bug-gnu-emacs@gnu.org; Thu, 23 Aug 2012 04:49:38 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4T6c-0001Vf-3q for bug-gnu-emacs@gnu.org; Thu, 23 Aug 2012 04:49:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T4T74-0001ly-MX for bug-gnu-emacs@gnu.org; Thu, 23 Aug 2012 04:50: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: Thu, 23 Aug 2012 08:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12251 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12251-submit@debbugs.gnu.org id=B12251.13457117526734 (code B ref 12251); Thu, 23 Aug 2012 08:50:02 +0000 Original-Received: (at 12251) by debbugs.gnu.org; 23 Aug 2012 08:49:12 +0000 Original-Received: from localhost ([127.0.0.1]:44467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T4T6F-0001kX-Sd for submit@debbugs.gnu.org; Thu, 23 Aug 2012 04:49:12 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:50198) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1T4T6C-0001kO-BO for 12251@debbugs.gnu.org; Thu, 23 Aug 2012 04:49:09 -0400 Original-Received: (qmail invoked by alias); 23 Aug 2012 08:48:37 -0000 Original-Received: from 62-47-45-20.adsl.highway.telekom.at (EHLO [62.47.45.20]) [62.47.45.20] by mail.gmx.net (mp020) with SMTP; 23 Aug 2012 10:48:37 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+IN3VLSOGI34wa+m6U69RSLQSuwkgs1rDxwz9ylG RTL02dR2oX+oWf In-Reply-To: <83vcgaam5w.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 (newer, 2) 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:63421 Archived-At: >> "# is not a valid window" The above means that we've been running Lisp code on a dead window and that call was rejected with an error by `window-normalize-window'. If this happens during a call from C, we have a problem. > Martin, could this be due to your changes in revision 109644? I don't know. In revision 109644 I allowed to run Fposn_at_x_y on internal windows too. I doubt that this change can have any impact but reverted it anyway. Other from that, potential problems are to be categorized as follows: (1) A frame has not been set up completely but one of its windows exists already. I tried to fix this by changing Fset_window_buffer calls to set_window_buffer calls but maybe something still slips through. (2) A window still exists although its frame has been already deleted. This would constitute a bug in delete_frame. (3) C code tries to run on a window that has not yet been set up completely. I can't imagine how this would happen. (4) C code tries to run a window that has been deleted. I have tried to catch these in revision 109644 but this will not help to avoid crashes. It should help to localize the cause of a crash, though. Drew's standard crash seems to indicate that there's still something weird going on here. BTW I see that note_mouse_highlight has /* Not on a window -> return. */ if (!WINDOWP (window)) return; Shouldn't the window be live here? martin