GNU bug report logs - #59480
29.0.50; emacs master with --enable-checking fails assert in x_display_set_last_user_time

Previous Next

Package: emacs;

Reported by: Robert Pluim <rpluim <at> gmail.com>

Date: Tue, 22 Nov 2022 12:20:02 UTC

Severity: normal

Tags: fixed

Found in version 29.0.50

Fixed in version 29.1

Done: Robert Pluim <rpluim <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Po Lu <luangruo <at> yahoo.com>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: 59480 <at> debbugs.gnu.org
Subject: Re: bug#59480: 29.0.50; emacs master with --enable-checking fails
 assert in x_display_set_last_user_time
Date: Tue, 22 Nov 2022 20:56:10 +0800
Robert Pluim <rpluim <at> gmail.com> writes:

> This is master as of right now, configured with:
>
> ./configure --enable-checking=yes,glyphs
>
> src/emacs -Q
>
> xterm.c:7753: Emacs fatal error: assertion failed: time <= X_ULONG_MAX
>
> Thread 1 "emacs" hit Breakpoint 1, terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:426
> 426       signal (sig, SIG_DFL);
> (gdb) bt
> #0  terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:426
> #1  0x00005555555b3320 in die (msg=<optimized out>, file=<optimized out>, line=<optimized out>) at alloc.c:7697
> #2  0x00005555556d4d47 in x_display_set_last_user_time (dpyinfo=0x5555562ec000, time=18446744071827324120, send_event=true, set_property=true) at xterm.c:7753
> #3  0x00005555556ea241 in handle_one_xevent (dpyinfo=0x5555562ec000, event=0x7fffffffd490, finish=0x555555eebd24 <current_finish>, hold_quit=0x7fffffffd730) at xterm.c:18624
> #4  0x00005555556e77ac in event_handler_gdk (gxev=0x7fffffffd490, ev=0x5555560a33c0, data=0x0) at xterm.c:17412
>
> (gdb) up
> #6  0x00005555556d4d47 in x_display_set_last_user_time (dpyinfo=0x5555562ec000, time=18446744071827324120, send_event=true, set_property=true) at xterm.c:7753
>
> 7753      eassert (time <= X_ULONG_MAX);
> (gdb) up
> #7  0x00005555556ea241 in handle_one_xevent (dpyinfo=0x5555562ec000, event=0x7fffffffd490, finish=0x555555eebd24 <current_finish>, hold_quit=0x7fffffffd730) at xterm.c:18624
> 18624                   x_display_set_last_user_time (dpyinfo, event->xclient.data.l[1],
> (gdb) p X_ULONG_MAX
> $1 = 4294967295
>
> X_ULONG_MAX looks very 32bit-ish :-)
>
> (why this started happening just now I donʼt know, that assert has
> been in for ages)
>
> Robert

Thanks, should be fixed now.




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

Previous Next


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