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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59480 in the body.
You can then email your comments to 59480 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#59480; Package emacs. (Tue, 22 Nov 2022 12:20:02 GMT) Full text and rfc822 format available.

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

From: Robert Pluim <rpluim <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; emacs master with --enable-checking fails assert in
 x_display_set_last_user_time
Date: Tue, 22 Nov 2022 13:19:37 +0100
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
-- 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#59480; Package emacs. (Tue, 22 Nov 2022 12:57:02 GMT) Full text and rfc822 format available.

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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#59480; Package emacs. (Tue, 22 Nov 2022 13:13:01 GMT) Full text and rfc822 format available.

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

From: Robert Pluim <rpluim <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.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 14:12:31 +0100
tags 59480 fixed
close 59480 29.1
quit

>>>>> On Tue, 22 Nov 2022 20:56:10 +0800, Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org> said:
    >> 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

    Po Lu> Thanks, should be fixed now.

Confirmed. Closing

Robert
-- 




Added tag(s) fixed. Request was from Robert Pluim <rpluim <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 22 Nov 2022 13:13:01 GMT) Full text and rfc822 format available.

bug marked as fixed in version 29.1, send any further explanations to 59480 <at> debbugs.gnu.org and Robert Pluim <rpluim <at> gmail.com> Request was from Robert Pluim <rpluim <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 22 Nov 2022 13:13:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 21 Dec 2022 12:24:09 GMT) Full text and rfc822 format available.

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

Previous Next


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