From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#9904: 24.0.90; Crash in show_mouse_face Date: Sat, 29 Oct 2011 15:44:32 +0200 Message-ID: <87k47nud33.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319895913 31292 80.91.229.12 (29 Oct 2011 13:45:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 29 Oct 2011 13:45:13 +0000 (UTC) To: 9904@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 29 15:45:10 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 1RK9Dh-0006h8-Bt for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Oct 2011 15:45:09 +0200 Original-Received: from localhost ([::1]:47008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK9Dg-0002CW-AT for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Oct 2011 09:45:08 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK9Dd-0002BS-6g for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2011 09:45:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RK9Da-00082I-Lr for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2011 09:45:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK9Da-00081r-Eu for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2011 09:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RK9FW-00070G-7k for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2011 09:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Oct 2011 13:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9904 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.131989600126889 (code B ref -1); Sat, 29 Oct 2011 13:47:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Oct 2011 13:46:41 +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 1RK9FB-0006ze-6X for submit@debbugs.gnu.org; Sat, 29 Oct 2011 09:46:41 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RK9F8-0006zW-78 for submit@debbugs.gnu.org; Sat, 29 Oct 2011 09:46:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RK9DB-0007z7-5k for submit@debbugs.gnu.org; Sat, 29 Oct 2011 09:44:38 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:58230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK9DB-0007z1-4H for submit@debbugs.gnu.org; Sat, 29 Oct 2011 09:44:37 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:32949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK9DA-0002A9-4b for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2011 09:44:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RK9D9-0007ym-1Z for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2011 09:44:36 -0400 Original-Received: from smtprelay-h21.telenor.se ([195.54.99.196]:55748) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK9D8-0007yg-Lu for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2011 09:44:35 -0400 Original-Received: from iph5.telenor.se (iph5.telenor.se [195.54.127.136]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id 769D7D437 for ; Sat, 29 Oct 2011 15:44:33 +0200 (CEST) X-SMTPAUTH-B2: [bocjoh] X-SENDER-IP: [85.228.200.36] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiBcAAkCrE5V5MgkPGdsb2JhbABCiT6RGY0Bgg8ZAQEBATcygiAvXzQBBBgBDAqIMZQcnwOJAgSceYh2 X-IronPort-AV: E=Sophos;i="4.69,424,1315173600"; d="scan'208";a="62602097" Original-Received: from c-24c8e455.04-211-6c6b701.cust.bredbandsbolaget.se (HELO muon.localdomain) ([85.228.200.36]) by iph5.telenor.se with ESMTP; 29 Oct 2011 15:44:33 +0200 Original-Received: by muon.localdomain (Postfix, from userid 1000) id 4D3B748464C; Sat, 29 Oct 2011 15:44:32 +0200 (CEST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 29 Oct 2011 09:47: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:53291 Archived-At: Emacs segfaulted in show_mouse_face last week (revno 106154, I think). I have a core file. hlinfo->mouse_face_window is non-nil but contains garbage. Program terminated with signal 11, Segmentation fault. (gdb) core-file ~/core #0 0x00007f49f8cdf687 in kill () at ../sysdeps/unix/syscall-template.S:82 No locals. #1 0x00000000005046dc in fatal_error_signal (sig=) at emacs.c:358 No locals. #2 fatal_error_signal (sig=) at emacs.c:328 No locals. #3 No symbol table info available. #4 0x000000000045988a in show_mouse_face (hlinfo=0xdc2578, draw=DRAW_NORMAL_TEXT) at xdisp.c:25508 phys_cursor_on_p = 1 row = 0x7a32000000000684 first = 0x7a32000000000684 last = 0x7a32000000000684 w = 0x1f5f020 f = 0x2087020 #5 0x0000000000459f44 in clear_mouse_face (hlinfo=0xdc2578) at xdisp.c:25620 cleared = 0 #6 0x000000000045a43d in note_mouse_highlight (f=0x12111b0, x=245, y=626) at xdisp.c:26850 hlinfo = 0xdc2578 part = ON_TEXT window = 18945077 w = cursor = 0 pointer = 12024322 b = [...] #7 0x00000000004c1268 in note_mouse_movement (frame=0x12111b0, event=0x7fff1ffd9db0) at xterm.c:3830 #8 0x00000000004c93df in handle_one_xevent (dpyinfo=0xdc24d0, eventptr=0x7fff1ffda180, finish=0xaf9478, hold_quit=0x7fff1ffda670) at xterm.c:6752 #9 0x00000000004cab32 in event_handler_gdk (gxev=0x7fff1ffda180, ev=, data=) at xterm.c:5821 (gdb) fr 4 #4 0x000000000045988a in show_mouse_face (hlinfo=0xdc2578, draw=DRAW_NORMAL_TEXT) at xdisp.c:25508 25508 for (row = first; row <= last && row->enabled_p; ++row) (gdb) p *row Cannot access memory at address 0x7a32000000000684 (gdb) p *w->current_matrix $9 = { pool = 0x8c81000000000000, rows = 0x7a32000000000084, rows_allocated = 8778078623698518199, nrows = 183, matrix_x = -969539584, matrix_y = 202, matrix_w = 0, matrix_h = 0, window_left_col = 8912896, window_top_line = 0, window_height = -1935605760, window_width = 132, window_vscroll = 2043805696, left_margin_glyphs = 183, right_margin_glyphs = 2043805696, no_scrolling_p = 1, header_line_p = 1, buffer = 0xb7, begv = 0, zv = 8912896 } (gdb) p hlinfo->mouse_face_window $84 = 32895013 (gdb) xtype Lisp_Vectorlike 11859264 Expected PVEC_WINDOW (gdb) p *w $53 = { header = { size = 11859264, next = { buffer = 0xb4f540, vector = 0xb4f540 } }, frame = 34107424, mini_p = 34107232, next = 34107344, prev = 30064771073, hchild = 33447270, vchild = 49, parent = 2, left_col = 34416992, top_line = 34426450, total_lines = 12024370, total_cols = 48, normal_lines = 81, normal_cols = 4611686018427389957, new_total = 32224208, new_normal = 32571766, buffer = 32644769, start = 32224213, pointm = 12, force_start = 32570294, optional_new_start = 2053582435, [...] etc.