On Mon, Nov 18, 2024 at 12:47:25AM +0100, Vincent Lefevre wrote: > Package: libx11-6 > Version: 2:1.8.10-2 > Severity: important > Affects: xterm > > That's twice xterm crashed in XkbTranslateKeyCode today.
But your stack trace shows this called from xterm in an event loop 6
levels above the problem:
4 levels in libX11
2 levels in libXt
I'd only suspect the caller on a one-level depth breakage.
> Core was generated by `/usr/bin/xterm -xrm *printFileOnXError:
> /home/vinc17/private/xterm-saved-173091'.
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0 XkbTranslateKeyCode (xkb=0x55b32debe180, key=<optimized out>, mods=0,
> mods_rtrn=mods_rtrn@entry=0x7ffcb3d0a7e0,
> keysym_rtrn=keysym_rtrn@entry=0x7ffcb3d0a850)
> at ../../../src/xkb/XKBBind.c:320
>
> warning: 320 ../../../src/xkb/XKBBind.c: No such file or directory
> (gdb) bt
libX11
> #0 XkbTranslateKeyCode (xkb=0x55b32debe180, key=<optimized out>, mods=0,
> mods_rtrn=mods_rtrn@entry=0x7ffcb3d0a7e0,
> keysym_rtrn=keysym_rtrn@entry=0x7ffcb3d0a850)
> at ../../../src/xkb/XKBBind.c:320
> #1 0x00007f20b8dd33d2 in XkbLookupKeySym (dpy=dpy@entry=0x55b32da307d0,
> key=<optimized out>, mods=<optimized out>,
> mods_rtrn=mods_rtrn@entry=0x7ffcb3d0a7e0,
> keysym_rtrn=keysym_rtrn@entry=0x7ffcb3d0a850)
> at ../../../src/xkb/XKBBind.c:263
> #2 0x00007f20b8dd3cd3 in XLookupString (event=event@entry=0x7ffcb3d0a930,
> buffer=buffer@entry=0x7f20b8e86ac0 <buf> "", nbytes=nbytes@entry=256,
> keysym=keysym@entry=0x7ffcb3d0a850, status=status@entry=0x0)
> at ../../../src/xkb/XKBBind.c:688
> #3 0x00007f20b8daccd2 in _XimLocalFilter (d=0x55b32da307d0,
> w=<optimized out>, ev=0x7ffcb3d0a930,
> client_data=0x55b32da75780 "\240F\350\270 \177")
> at ../../../../modules/im/ximcp/imLcFlt.c:56
libXt:
> #4 0x00007f20b8eaa503 in _XtDefaultDispatcher (event=0x7ffcb3d0a930)
> at ../../src/Event.c:1399
> #5 0x00007f20b8eaa6c1 in XtDispatchEvent (event=event@entry=0x7ffcb3d0a930)
> at ../../src/Event.c:1480
xterm:
> #6 0x000055b32d08dbf1 in xevents (xw=xw@entry=0x7f20b87fd010) at
> ../misc.c:690
> #7 0x000055b32d05e122 in in_put (xw=<optimized out>) at ../charproc.c:6581
> #8 doinput (xw=0x7f20b87fd010) at ../charproc.c:6595
> #9 VTparse (xw=xw@entry=0x7f20b87fd010) at ../charproc.c:6162
> #10 0x000055b32d05e6e9 in VTRun (xw=0x7f20b87fd010) at ../charproc.c:9281
> #11 0x000055b32d03eab2 in main (argc=<optimized out>, argv=<optimized out>)
> at ../main.c:3072
>
> Note: Because my USB keyboard got temporarily disconnected, I had
> to execute
>
> xkbcomp -w 0 -I$HOME/.xkb -R$HOME/.xkb keymap/custom $DISPLAY
>
> in order to restore the Xkb settings. I'm wondering whether this is
> related, because such crashes are unusual.
If it's easy to reproduce, I suspect you'd have made some followups.
I don't see any, it's been more than six months without additional details.
(timing/user-behavior/user-configuration all are factors in reproducing this)
> -- System Information:
> Debian Release: trixie/sid
> APT prefers unstable-debug
> APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500,
> 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'),
> (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 6.7.12-amd64 (SMP w/16 CPU threads; PREEMPT)
> Kernel taint flags: TAINT_WARN
> Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
> Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
>
> Versions of packages libx11-6 depends on:
> ii libc6 2.40-3
> ii libx11-data 2:1.8.10-2
> ii libxcb1 1.17.0-2+b1
>
> libx11-6 recommends no packages.
>
> libx11-6 suggests no packages.
>
> -- no debconf information
>
> --
> Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
>
>
--
Thomas E. Dickey <[email protected]>
https://invisible-island.net
signature.asc
Description: PGP signature

