From: "Johan Bockgård" <bojohan@gnu.org>
To: 9904@debbugs.gnu.org
Subject: bug#9904: 24.0.90; Crash in show_mouse_face
Date: Sat, 29 Oct 2011 15:44:32 +0200 [thread overview]
Message-ID: <87k47nud33.fsf@gnu.org> (raw)
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=<optimized out>) at emacs.c:358
No locals.
#2 fatal_error_signal (sig=<optimized out>) at emacs.c:328
No locals.
#3 <signal handler called>
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 = <optimized out>
cursor = 0
pointer = 12024322
b = <optimized out>
[...]
#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=<optimized out>, data=<optimized out>) 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.
next reply other threads:[~2011-10-29 13:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-29 13:44 Johan Bockgård [this message]
2011-10-29 14:09 ` bug#9904: 24.0.90; Crash in show_mouse_face Eli Zaretskii
2011-10-29 15:08 ` Chong Yidong
2011-10-29 15:33 ` Eli Zaretskii
2012-02-12 4:31 ` Chong Yidong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k47nud33.fsf@gnu.org \
--to=bojohan@gnu.org \
--cc=9904@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.