Subject: bug#78937: Emacs crashes when trying to view fonts by family

From: Po Lu <[email-masked]>
Date: Wed, 02 Jul 2025 21:39:58 +0800

"Paul Walker" <[email-masked]> writes:

> #5  0x00007ffff7b7184d in _XReply () at /lib/x86_64-linux-gnu/libX11.so.6
> #6  0x00007ffff7b55a5e in XGetGeometry () at /lib/x86_64-linux-gnu/libX11.so.6
> #7  0x0000555555832b1e in crxft_draw_create (dpy=0x555555aeed10, drawable=2097691, visual=0x555555a57840) at lwlib-utils.c:225
> #8  0x000055555582d45e in create_pixmap_for_menu (ws=0x55555616bee0, mw=mw@entry=0x55555b17dff0) at xlwmenu.c:1558
> #9  0x000055555582f45b in XlwMenuRealize (w=0x55555b17dff0,
> valueMask=<optimized out>, attributes=<optimized out>) at xlwm

I'm not certain how meaningful this backtrace is.  It is possible that a
very great number of fonts is prompting lwlib to create a widget with
invalid geometry, but that is not consistent with `BadName'.  Would you
mind reproducing this crash after executing:

    (x-synchronize t)

and posting a backtrace produced in such an environment?