Bug#1057620: doomsday: Crashes on startup
Bernhard Übelacker
bernhardu at mailbox.org
Sun May 5 23:31:31 BST 2024
On Tue, 05 Dec 2023 23:39:39 +0000 Witold Baryluk <witold.baryluk at gmail.com> wrote:
> Thread 1 "doomsday" received signal SIGSEGV, Segmentation fault.
> 0x00007ffff5419e83 in _XFlush () from /lib/x86_64-linux-gnu/libX11.so.6
> (gdb) bt
> #0 0x00007ffff5419e83 in _XFlush () at /lib/x86_64-linux-gnu/libX11.so.6
> #1 0x00007ffff541cb3d in _XGetRequest () at /lib/x86_64-linux-gnu/libX11.so.6
> #2 0x00007ffff540fa57 in XQueryExtension () at /lib/x86_64-linux-gnu/libX11.so.6
> #3 0x00007ffff5402b16 in XInitExtension () at /lib/x86_64-linux-gnu/libX11.so.6
> #4 0x00007ffff53cdc9b in XextAddDisplay () at /lib/x86_64-linux-gnu/libXext.so.6
> #5 0x00007ffff538a860 in () at /lib/x86_64-linux-gnu/libXrandr.so.2
> #6 0x00007ffff538afc0 in XRRQueryExtension () at /lib/x86_64-linux-gnu/libXrandr.so.2
> #7 0x00007ffff798bae4 in de::internal::RRInfo::RRInfo() () at /lib/x86_64-linux-gnu/libdeng_gui.so.2.3
> #8 0x00007ffff798b02d in DisplayMode_Native_Init () at /lib/x86_64-linux-gnu/libdeng_gui.so.2.3
> #9 0x00007ffff791fd11 in DisplayMode_Init () at /lib/x86_64-linux-gnu/libdeng_gui.so.2.3
> #10 0x000055555573eb1d in ClientApp::initialize() ()
> #11 0x000055555572175d in main ()
> (gdb)
>
>
> Running under gnome shell.
>
> xwayland 2:23.2.2-1
Hello,
I am not maintainer of the doomsday package, just tried to collect some
more information.
Bug 1062969 / Bug 1065714 mentions a workaround
to be able to run doomsday with wayland:
SDL_VIDEODRIVER=x11 QT_QPA_PLATFORM=xcb doomsday
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1062969
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065714
It looks like upstream removed the relevant code and relies just
on SDL functions, but unfortunately did not release a new version yet.
https://github.com/skyjake/Doomsday-Engine/commit/5cc4995861
Kind regards,
Bernhard
-------------- next part --------------
# 2024-05-05 Trixie/testing amd64 qemu VM
apt update
apt dist-upgrade
apt install systemd-coredump task-gnome-desktop tmux git gdb rr doomsday doomsday-dbgsym doomsday-common-dbgsym libxrandr2-dbgsym libxext6-dbgsym libx11-6-dbgsym
apt build-dep libx11-6
mkdir /home/benutzer/source/libx11-6/orig -p
cd /home/benutzer/source/libx11-6/orig
apt source libx11-6
benutzer at debian:~$ doomsday
QSocketNotifier: Can only be used with threads started with QThread
Speicherzugriffsfehler (Speicherabzug geschrieben)
benutzer at debian:~$ coredumpctl list
TIME PID UID GID SIG COREFILE EXE SIZE
Sun 2024-05-05 16:04:00 CEST 2967 1000 1000 SIGSEGV present /usr/games/doomsday-2.3.1 2.7M
benutzer at debian:~$ coredumpctl gdb --debugger-arguments=-q 2967
Hint: You are currently not seeing messages from other users and the system.
Users in groups 'adm', 'systemd-journal' can see all messages.
Pass -q to turn off this notice.
PID: 2967 (doomsday)
UID: 1000 (benutzer)
GID: 1000 (benutzer)
Signal: 11 (SEGV)
Timestamp: Sun 2024-05-05 16:04:00 CEST (1min 51s ago)
Command Line: doomsday
Executable: /usr/games/doomsday-2.3.1
Control Group: /user.slice/user-1000.slice/user at 1000.service/app.slice/app-org.gnome.Terminal.slice/vte-spawn-1c8dc387-bf63-4b3f-9404-fea9f4d9f742.scope
Unit: user at 1000.service
User Unit: vte-spawn-1c8dc387-bf63-4b3f-9404-fea9f4d9f742.scope
Slice: user-1000.slice
Owner UID: 1000 (benutzer)
Boot ID: 13ee1fcd8e5043bf91db85c4d1c72a51
Machine ID: 16e4d7437c19482b8c85581d3feaba09
Hostname: debian
Storage: /var/lib/systemd/coredump/core.doomsday.1000.13ee1fcd8e5043bf91db85c4d1c72a51.2967.1714917840000000.zst (present)
Size on Disk: 2.7M
Message: Process 2967 (doomsday) of user 1000 dumped core.
Module libblkid.so.1 from deb util-linux-2.40-8.amd64
Module libmount.so.1 from deb util-linux-2.40-8.amd64
Module libsystemd.so.0 from deb systemd-255.5-1.amd64
Module libzstd.so.1 from deb libzstd-1.5.5+dfsg2-2.amd64
Stack trace of thread 2967:
#0 0x00007effc0000e83 _XFlush (libX11.so.6 + 0x44e83)
#1 0x00007effc0003b3d _XGetRequest (libX11.so.6 + 0x47b3d)
#2 0x00007effbfff6a57 XQueryExtension (libX11.so.6 + 0x3aa57)
#3 0x00007effbffe9b16 XInitExtension (libX11.so.6 + 0x2db16)
#4 0x00007effc1b9bc9b XextAddDisplay (libXext.so.6 + 0xdc9b)
#5 0x00007effc0ce484f n/a (libXrandr.so.2 + 0x284f)
#6 0x00007effc0ce4f88 XRRQueryExtension (libXrandr.so.2 + 0x2f88)
#7 0x00007effc25af3b1 _ZN2de8internal6RRInfoC1Ev (libdeng_gui.so.2.3 + 0xe03b1)
#8 0x00007effc25ae7ef DisplayMode_Native_Init (libdeng_gui.so.2.3 + 0xdf7ef)
#9 0x00007effc253e619 DisplayMode_Init (libdeng_gui.so.2.3 + 0x6f619)
#10 0x0000560786a6520d _ZN9ClientApp10initializeEv (doomsday-2.3.1 + 0x1fc20d)
#11 0x0000560786a469d1 main (doomsday-2.3.1 + 0x1dd9d1)
#12 0x00007effc06966ca n/a (libc.so.6 + 0x276ca)
#13 0x00007effc0696785 __libc_start_main (libc.so.6 + 0x27785)
#14 0x0000560786a485a1 _start (doomsday-2.3.1 + 0x1df5a1)
Stack trace of thread 2970:
#0 0x00007effc0770059 syscall (libc.so.6 + 0x101059)
#1 0x00007effbf0f0ac4 g_cond_wait (libglib-2.0.so.0 + 0xb5ac4)
#2 0x00007effbf05f16b n/a (libglib-2.0.so.0 + 0x2416b)
#3 0x00007effbf0c313a n/a (libglib-2.0.so.0 + 0x8813a)
#4 0x00007effbf0c2ab1 n/a (libglib-2.0.so.0 + 0x87ab1)
#5 0x00007effc06f745c n/a (libc.so.6 + 0x8845c)
#6 0x00007effc0777bbc n/a (libc.so.6 + 0x108bbc)
Stack trace of thread 2971:
#0 0x00007effc076aabf __poll (libc.so.6 + 0xfbabf)
#1 0x00007effbf095277 n/a (libglib-2.0.so.0 + 0x5a277)
#2 0x00007effbf095930 g_main_context_iteration (libglib-2.0.so.0 + 0x5a930)
#3 0x00007effbf095981 n/a (libglib-2.0.so.0 + 0x5a981)
#4 0x00007effbf0c2ab1 n/a (libglib-2.0.so.0 + 0x87ab1)
#5 0x00007effc06f745c n/a (libc.so.6 + 0x8845c)
#6 0x00007effc0777bbc n/a (libc.so.6 + 0x108bbc)
Stack trace of thread 2973:
#0 0x00007effc076aabf __poll (libc.so.6 + 0xfbabf)
#1 0x00007effbf095277 n/a (libglib-2.0.so.0 + 0x5a277)
#2 0x00007effbf095930 g_main_context_iteration (libglib-2.0.so.0 + 0x5a930)
#3 0x00007effbb6f89cd n/a (libdconfsettings.so + 0xb9cd)
#4 0x00007effbf0c2ab1 n/a (libglib-2.0.so.0 + 0x87ab1)
#5 0x00007effc06f745c n/a (libc.so.6 + 0x8845c)
#6 0x00007effc0777bbc n/a (libc.so.6 + 0x108bbc)
Stack trace of thread 2972:
#0 0x00007effc0770059 syscall (libc.so.6 + 0x101059)
#1 0x00007effbf0f0c90 g_cond_wait_until (libglib-2.0.so.0 + 0xb5c90)
#2 0x00007effbf05f143 n/a (libglib-2.0.so.0 + 0x24143)
#3 0x00007effbf0c34ba n/a (libglib-2.0.so.0 + 0x884ba)
#4 0x00007effbf0c2ab1 n/a (libglib-2.0.so.0 + 0x87ab1)
#5 0x00007effc06f745c n/a (libc.so.6 + 0x8845c)
#6 0x00007effc0777bbc n/a (libc.so.6 + 0x108bbc)
Stack trace of thread 2978:
#0 0x00007effc06f41c6 n/a (libc.so.6 + 0x851c6)
#1 0x00007effc06f6888 pthread_cond_wait (libc.so.6 + 0x87888)
#2 0x00007effa5f1992d n/a (virtio_gpu_dri.so + 0x11992d)
#3 0x00007effa5ef970b n/a (virtio_gpu_dri.so + 0xf970b)
#4 0x00007effa5f1985b n/a (virtio_gpu_dri.so + 0x11985b)
#5 0x00007effc06f745c n/a (libc.so.6 + 0x8845c)
#6 0x00007effc0777bbc n/a (libc.so.6 + 0x108bbc)
Stack trace of thread 2968:
#0 0x00007effc076aabf __poll (libc.so.6 + 0xfbabf)
#1 0x00007effbf095277 n/a (libglib-2.0.so.0 + 0x5a277)
#2 0x00007effbf095930 g_main_context_iteration (libglib-2.0.so.0 + 0x5a930)
#3 0x00007effc1927d4a _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x327d4a)
#4 0x00007effc18cb0fb _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2cb0fb)
#5 0x00007effc16d9c52 _ZN7QThread4execEv (libQt5Core.so.5 + 0xd9c52)
#6 0x00007effbb1ea7ab n/a (libQt5DBus.so.5 + 0x177ab)
#7 0x00007effc16daeb1 n/a (libQt5Core.so.5 + 0xdaeb1)
#8 0x00007effc06f745c n/a (libc.so.6 + 0x8845c)
#9 0x00007effc0777bbc n/a (libc.so.6 + 0x108bbc)
Stack trace of thread 2976:
#0 0x00007effc076aabf __poll (libc.so.6 + 0xfbabf)
#1 0x00007effbb32d166 n/a (libQt5WaylandClient.so.5 + 0x7b166)
#2 0x00007effc16daeb1 n/a (libQt5Core.so.5 + 0xdaeb1)
#3 0x00007effc06f745c n/a (libc.so.6 + 0x8845c)
#4 0x00007effc0777bbc n/a (libc.so.6 + 0x108bbc)
Stack trace of thread 2974:
#0 0x00007effc076aabf __poll (libc.so.6 + 0xfbabf)
#1 0x00007effbf095277 n/a (libglib-2.0.so.0 + 0x5a277)
#2 0x00007effbf095c1f g_main_loop_run (libglib-2.0.so.0 + 0x5ac1f)
#3 0x00007effb9ecaeaa n/a (libgio-2.0.so.0 + 0x122eaa)
#4 0x00007effbf0c2ab1 n/a (libglib-2.0.so.0 + 0x87ab1)
#5 0x00007effc06f745c n/a (libc.so.6 + 0x8845c)
#6 0x00007effc0777bbc n/a (libc.so.6 + 0x108bbc)
Stack trace of thread 2975:
#0 0x00007effc076aabf __poll (libc.so.6 + 0xfbabf)
#1 0x00007effbb32d166 n/a (libQt5WaylandClient.so.5 + 0x7b166)
#2 0x00007effc16daeb1 n/a (libQt5Core.so.5 + 0xdaeb1)
#3 0x00007effc06f745c n/a (libc.so.6 + 0x8845c)
#4 0x00007effc0777bbc n/a (libc.so.6 + 0x108bbc)
Stack trace of thread 2977:
#0 0x00007effc076aabf __poll (libc.so.6 + 0xfbabf)
#1 0x00007effbf095277 n/a (libglib-2.0.so.0 + 0x5a277)
#2 0x00007effbf095930 g_main_context_iteration (libglib-2.0.so.0 + 0x5a930)
#3 0x00007effc1927d4a _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x327d4a)
#4 0x00007effc18cb0fb _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2cb0fb)
#5 0x00007effc16d9c52 _ZN7QThread4execEv (libQt5Core.so.5 + 0xd9c52)
#6 0x00007effc16daeb1 n/a (libQt5Core.so.5 + 0xdaeb1)
#7 0x00007effc06f745c n/a (libc.so.6 + 0x8845c)
#8 0x00007effc0777bbc n/a (libc.so.6 + 0x108bbc)
ELF object binary architecture: AMD x86-64
Reading symbols from /usr/games/doomsday-2.3.1...
(No debugging symbols found in /usr/games/doomsday-2.3.1)
warning: Can't open file /memfd:wayland-cursor (deleted) during file-backed mapping note processing
[New LWP 2967]
[New LWP 2970]
[New LWP 2971]
[New LWP 2973]
[New LWP 2972]
[New LWP 2978]
[New LWP 2968]
[New LWP 2976]
[New LWP 2974]
[New LWP 2975]
[New LWP 2977]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `doomsday'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007effc0000e83 in _XFlush () from /lib/x86_64-linux-gnu/libX11.so.6
[Current thread is 1 (Thread 0x7effbb72a980 (LWP 2967))]
(gdb) bt
#0 0x00007effc0000e83 in _XFlush () from /lib/x86_64-linux-gnu/libX11.so.6
#1 0x00007effc0003b3d in _XGetRequest () from /lib/x86_64-linux-gnu/libX11.so.6
#2 0x00007effbfff6a57 in XQueryExtension () from /lib/x86_64-linux-gnu/libX11.so.6
#3 0x00007effbffe9b16 in XInitExtension () from /lib/x86_64-linux-gnu/libX11.so.6
#4 0x00007effc1b9bc9b in XextAddDisplay () from /lib/x86_64-linux-gnu/libXext.so.6
#5 0x00007effc0ce484f in ?? () from /lib/x86_64-linux-gnu/libXrandr.so.2
#6 0x00007effc0ce4f88 in XRRQueryExtension () from /lib/x86_64-linux-gnu/libXrandr.so.2
#7 0x00007effc25af3b1 in de::internal::RRInfo::RRInfo() () from /lib/x86_64-linux-gnu/libdeng_gui.so.2.3
#8 0x00007effc25ae7ef in DisplayMode_Native_Init () from /lib/x86_64-linux-gnu/libdeng_gui.so.2.3
#9 0x00007effc253e619 in DisplayMode_Init () from /lib/x86_64-linux-gnu/libdeng_gui.so.2.3
#10 0x0000560786a6520d in ClientApp::initialize() ()
#11 0x0000560786a469d1 in main ()
(gdb) set width 0
(gdb) set pagination off
(gdb) bt
#0 0x00007effc0000e83 in require_socket (dpy=<optimized out>) at ../../src/xcb_io.c:70
#1 _XFlush (dpy=0x560787f5fa30) at ../../src/xcb_io.c:606
#2 0x00007effc0003b3d in _XGetRequest (dpy=dpy at entry=0x560787f5fa30, type=type at entry=98 'b', len=len at entry=8) at ../../src/XlibInt.c:1787
#3 0x00007effbfff6a57 in XQueryExtension (dpy=dpy at entry=0x560787f5fa30, name=name at entry=0x7effc0cee108 <XRRExtensionName> "RANDR", major_opcode=major_opcode at entry=0x7fff9bac7394, first_event=first_event at entry=0x7fff9bac7398, first_error=first_error at entry=0x7fff9bac739c) at ../../src/QuExt.c:49
#4 0x00007effbffe9b16 in XInitExtension (dpy=dpy at entry=0x560787f5fa30, name=name at entry=0x7effc0cee108 <XRRExtensionName> "RANDR") at ../../src/InitExt.c:59
#5 0x00007effc1b9bc9b in XextAddDisplay (extinfo=extinfo at entry=0x7effc0cee190 <XRRExtensionInfo>, dpy=dpy at entry=0x560787f5fa30, ext_name=ext_name at entry=0x7effc0cee108 <XRRExtensionName> "RANDR", hooks=hooks at entry=0x7effc0cee120 <rr_extension_hooks>, nevents=nevents at entry=2, data=data at entry=0x0) at ../../src/extutil.c:110
#6 0x00007effc0ce484f in XRRFindDisplay (dpy=dpy at entry=0x560787f5fa30) at ../../src/Xrandr.c:295
#7 0x00007effc0ce4f88 in XRRFindDisplay (dpy=0x560787f5fa30) at ../../src/Xrandr.c:357
#8 XRRQueryExtension (dpy=0x560787f5fa30, event_base_return=0x7fff9bac7498, error_base_return=0x7fff9bac7498) at ../../src/Xrandr.c:348
#9 0x00007effc25af3b1 in de::internal::RRInfo::RRInfo (this=0x7fff9bac7520) at ./doomsday/sdk/libgui/src/displaymode_x11.cpp:63
#10 0x00007effc25ae7ef in DisplayMode_Native_Init () at ./doomsday/sdk/libgui/src/displaymode_x11.cpp:188
#11 0x00007effc253e619 in DisplayMode_Init () at ./doomsday/sdk/libgui/src/displaymode.cpp:195
#12 0x0000560786a6520d in ClientApp::initialize (this=0x7fff9bac7710) at ./doomsday/apps/client/src/clientapp.cpp:628
#13 0x0000560786a469d1 in main (argc=<optimized out>, argv=0x7fff9bac7938) at ./doomsday/apps/client/src/main_client.cpp:109
(gdb) directory /home/benutzer/source/libx11-6/orig/libx11-1.8.7/debian/patches
Source directories searched: /home/benutzer/source/libx11-6/orig/libx11-1.8.7/debian/patches:$cdir:$cwd
(gdb) frame 0
#0 0x00007effc0000e83 in require_socket (dpy=<optimized out>) at ../../src/xcb_io.c:70
70 if(dpy->xcb->event_owner != XlibOwnsEventQueue)
(gdb) up
#1 _XFlush (dpy=0x560787f5fa30) at ../../src/xcb_io.c:606
606 if (!require_socket(dpy))
(gdb) print dpy->xcb
$3 = (struct _X11XCBPrivate *) 0x0
benutzer at debian:~$ rr record doomsday
rr: Saving execution to trace directory `/home/benutzer/.local/share/rr/doomsday-0'.
QSocketNotifier: Can only be used with threads started with QThread
Speicherzugriffsfehler
benutzer at debian:~$ rr replay --debugger-option=-q doomsday-0
Reading symbols from /usr/games/doomsday-2.3.1...
Reading symbols from /usr/lib/debug/.build-id/71/67701391c5d47fcd1913e1ea1652ce1f73692d.debug...
Really redefine built-in command "restart"? (y or n) [answered Y; input not from terminal]
Really redefine built-in command "jump"? (y or n) [answered Y; input not from terminal]
Remote debugging using 127.0.0.1:5443
Reading symbols from /lib64/ld-linux-x86-64.so.2...
Reading symbols from /usr/lib/debug/.build-id/2f/79e5f4699b6c6a7b9cd1b3765571d84e49b3b9.debug...
BFD: warning: system-supplied DSO at 0x6fffd000 has a section extending past end of file
0x00007fe89ee664d0 in _start () from /lib64/ld-linux-x86-64.so.2
(rr) set width 0
(rr) set pagination off
(rr) directory /home/benutzer/source/libx11-6/orig/libx11-1.8.7/debian/patches
Source directories searched: /home/benutzer/source/libx11-6/orig/libx11-1.8.7/debian/patches:$cdir:$cwd
(rr) cont
Continuing.
QSocketNotifier: Can only be used with threads started with QThread
[New Thread 5339.5340]
[New Thread 5339.5342]
[New Thread 5339.5343]
[New Thread 5339.5344]
[New Thread 5339.5345]
[New Thread 5339.5346]
[New Thread 5339.5347]
[New Thread 5339.5348]
[New Thread 5339.5349]
Thread 1 received signal SIGSEGV, Segmentation fault.
0x00007fe89c1abe83 in require_socket (dpy=<optimized out>) at ../../src/xcb_io.c:70
70 if(dpy->xcb->event_owner != XlibOwnsEventQueue)
(rr) reverse-finish
Run till exit from #0 0x00007fe89c1abe83 in require_socket (dpy=<optimized out>) at ../../src/xcb_io.c:70
Thread 1 received signal SIGSEGV, Segmentation fault.
0x00007fe89c1abe83 in require_socket (dpy=<optimized out>) at ../../src/xcb_io.c:70
70 if(dpy->xcb->event_owner != XlibOwnsEventQueue)
(rr) reverse-finish
Run till exit from #0 0x00007fe89c1abe83 in require_socket (dpy=<optimized out>) at ../../src/xcb_io.c:70
_XFlush (dpy=0x556e7648fa30) at ../../src/xcb_io.c:606
606 if (!require_socket(dpy))
(rr) print dpy->xcb
$1 = (struct _X11XCBPrivate *) 0x0
(rr) print &dpy->xcb
$2 = (struct _X11XCBPrivate **) 0x556e76490460
rr replay --debugger-option=-q doomsday-0
set width 0
set pagination off
directory /home/benutzer/source/libx11-6/orig/libx11-1.8.7/debian/patches
cont
https://talk.dengine.net/discussion/2927/wayland-doomsday-crashes-when-calling-xrr-functions
https://github.com/skyjake/Doomsday-Engine/commit/5cc4995861
More information about the Pkg-games-devel
mailing list