xorg regression?

From: Craig Leres <leres_at_freebsd.org>
Date: Mon, 17 Jun 2024 01:42:05 UTC
I recently upgraded to 14.1 and around the same time my X desktop became 
   unstable. I have X programs, mostly xterm, that crash with BadFont. 
This is particularly annoying when the xterm in question is the console 
and the xterm exit results in the server exiting as well.

I eventually figured out I could run an xterm from gdb in another xterm 
and capture the error messages. I can't easily reproduce this but 
sometimes it happens when I run "man ..." and sometimes when I run make 
(especially if there are compile errors).

The font I'm using one I've carried along from the 80's, it's an old sun 
font called sun-serif-r-12.

Any ideas for me? Is my font somehow deficient? My video card is a 
nvidia quadro k420 and I'm using nvidia-driver-470-470.161.03_1.

I also see now that if I use the VT Fonts menu in xterm and select *any* 
font, I get a SIGSEGV from XFreeFont().

		Craig

ice 3 % gdb /usr/local/bin/xterm
Reading symbols from /usr/local/bin/xterm...
(gdb) b exit
Breakpoint 1 at 0x2d6cb0
(gdb) b _exit
Breakpoint 2 at 0x2d7d50
(gdb) r
Starting program: /usr/local/bin/xterm
[Detaching after fork from child process 36023]
[Detaching after fork from child process 36024]
make
xterm: warning, error event received:
X Error of failed request:  BadFont (invalid Font parameter)
   Major opcode of failed request:  55 (X_CreateGC)
   Resource id in failed request:  0x0
   Serial number of failed request:  39466
   Current serial number in output stream:  39474
[Detaching after fork from child process 65151]

Breakpoint 1, 0x00000008008a3314 in exit () from /lib/libc.so.7
(gdb)