GNU bug report logs - #56561
29.0.50; Infloop in try_window

Previous Next

Package: emacs;

Reported by: Michael Welsh Duggan <md5i <at> md5i.com>

Date: Thu, 14 Jul 2022 18:58:01 UTC

Severity: normal

Found in version 29.0.50

Full log


Message #14 received at 56561 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Michael Welsh Duggan <mwd <at> md5i.com>
Cc: 56561 <at> debbugs.gnu.org
Subject: Re: bug#56561: 29.0.50; Infloop in try_window
Date: Fri, 15 Jul 2022 09:14:10 +0300
> From: Michael Welsh Duggan <mwd <at> md5i.com>
> Cc: 56561 <at> debbugs.gnu.org
> Date: Thu, 14 Jul 2022 18:44:43 -0400
> 
> Moving my cursor between frames and either clicking or typing C-p, I
> think.  The emacs was on a remote machine at the time, visible via X11
> over ssh.  This may have slowed X events enough for some corner
> condition to be achieved.

All I see is that Emacs tried to display a tooltip.

> (gdb) p current_thread->m_current_buffer->text->beg
> $15 = (unsigned char *) 0x555557bb75a0 "mouse-2: correct word at point"
> (gdb) p it->current
> $16 = {
>   pos = {
>     charpos = 31,
>     bytepos = 31
>   },
>   overlay_string_index = -1,
>   string_pos = {
>     charpos = -1,
>     bytepos = -1
>   },
>   dpvec_index = -1
> }
> (gdb) p it->w->desired_matrix->nrows
> $17 = 35
> 
> (gdb) p MATRIX_ROW_VPOS(row, it->w->desired_matrix)
> No symbol "MATRIX_ROW_VPOS" in current context.
> (gdb) p row - it->w->desired_matrix->rows
> $18 = 35

Hmm... so the short tooltip text somehow causes us to exceed the
number of glyph rows of the matrix?  Please tell what the commands
below show:

 (gdb) pgrowx it->w->desired_matrix->rows
 (gdb) pgrowx it->w->desired_matrix->rows+1
 (gdb) pgrowx it->w->desired_matrix->rows+2
 (gdb) pgrowx it->w->desired_matrix->rows+3
 ...
 (gdb) pgrowx it->w->desired_matrix->rows+34

That is, I want to see the entire contents of the glyph rows.

Also

 (gdb) p it->last_visible_x
 (gdb) p it->last_visible_y

Thanks.




This bug report was last modified 2 years and 330 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.