Subject: Re: bug#54051: 29.0.50; latest master build with lucid crashes

From: Po Lu <[email-masked]>
Date: Mon, 21 Feb 2022 18:09:27 +0800

"A.I." <[email-masked]> writes:

> Hi,
>
> This is the backtrace I'm getting after compile emacs with
>
> ./configure --enable-checking='yes,glyphs' --enable-check-lisp-object-type --with-x-toolkit=lucid  CFLAGS='-O0 -g3'
>
> emacs started with gdb --args ./emacs -q -xrm 'Emacs.synchronous: true'

Thanks.

>           xconfigure = {
>             type = 22,
>             serial = 12048,
>             send_event = 1,
>             display = 0x55555609a920,
>             event = 83886802,
>             window = 83886802,
>             x = 0,
>             y = 0,
>             width = 0,
>             height = 0,
>             border_width = 0,
>             above = 0,
>             override_redirect = 0
>           },

This configure event is wrong: it specifies a width and height of zero,
which are invalid under X.  Then, the shell widget tries to reconfigure
its window to those invalid dimensions, which causes the crash.

The `send_event' field indicates that this event was sent by another
client and not the X server after window configuration (since we don't
send ConfigureNotify events to ourself anywhere in Emacs).

Please try to find the program that is sending these events.  It could
be a badly behaved window manager, for example.