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#9904: 24.0.90; Crash in show_mouse_face Date: Sat, 29 Oct 2011 17:33:51 +0200 Message-ID: <83ty6r95i8.fsf@gnu.org> References: <87k47nud33.fsf@gnu.org> <83zkgj99ep.fsf@gnu.org> <87pqhfdedq.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1319902514 8182 80.91.229.12 (29 Oct 2011 15:35:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 29 Oct 2011 15:35:14 +0000 (UTC) Cc: 9904@debbugs.gnu.org, bojohan@gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 29 17:35:08 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RKAw7-0003ZQ-Hg for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Oct 2011 17:35:07 +0200 Original-Received: from localhost ([::1]:48615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKAw6-0000S0-Up for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Oct 2011 11:35:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKAw3-0000QK-Uv for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2011 11:35:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RKAw2-0001F2-SG for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2011 11:35:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKAw2-0001Ev-Ia for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2011 11:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RKAxy-0002Ag-BX for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2011 11:37: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: Sat, 29 Oct 2011 15:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9904 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9904-submit@debbugs.gnu.org id=B9904.13199025728187 (code B ref 9904); Sat, 29 Oct 2011 15:37:02 +0000 Original-Received: (at 9904) by debbugs.gnu.org; 29 Oct 2011 15:36:12 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKAxA-000280-4g for submit@debbugs.gnu.org; Sat, 29 Oct 2011 11:36:12 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKAx7-00027m-Sb for 9904@debbugs.gnu.org; Sat, 29 Oct 2011 11:36:10 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LTU00B003422G00@a-mtaout22.012.net.il> for 9904@debbugs.gnu.org; Sat, 29 Oct 2011 17:33:52 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.128.216]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LTU00AEB38FQW30@a-mtaout22.012.net.il>; Sat, 29 Oct 2011 17:33:52 +0200 (IST) In-reply-to: <87pqhfdedq.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 29 Oct 2011 11:37:02 -0400 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:53301 Archived-At: > From: Chong Yidong > Cc: Johan Bockg=E5rd , 9904@debbugs.gnu.org > Date: Sat, 29 Oct 2011 23:08:33 +0800 >=20 > Eli Zaretskii writes: >=20 > >> Emacs segfaulted in show_mouse_face last week (revno 106154, I > >> think). I have a core file. > > > > FWIW, I cannot find any change during the last 2 weeks that could > > somehow be related. > > > > Where could this garbled "window" come from? some GC or > > memory-allocation snafu? >=20 > Might the window assigned to dpyinfo->mouse_highlight->hlinfo have > gotten garbage collected? Does the GC mark that slot? I can't fin= d the > place where it does so. If the window was garbage collected, it was deleted first, right? My testing indicates that deleting a window calls clear_mouse_face indirectly (because deleting a window from a frame runs frame_up_to_date_hook for that frame, where we call note_mouse_highlight. So this ought to work OK, I think. Maybe we should invalidate mouse_face_window inside delete-window-internal, to make sure this window is no longer referenced in dpyinfo->mouse_highlight->hlinfo?