Bug #2473
ubuntu 24.04 - Segmentation fault - QSocketNotifier: Can only be used with threads started with QThread
0%
Description
dave@beast:~$ doomsday -vvv
QSocketNotifier: Can only be used with threads started with QThread
Segmentation fault (core dumped)
dave@beast:~$
dave@beast:~$ gdb doomsday
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from doomsday...This GDB supports auto-downloading debuginfo from the following URLs:
<https://debuginfod.ubuntu.com>
Enable debuginfod for this session? (y or [n]) n
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
(No debugging symbols found in doomsday)
(gdb) start
Temporary breakpoint 1 at 0x19e770
Starting program: /usr/bin/doomsday
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libQt5Network.so.5
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libopusfile.so.0
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libpulse.so.0
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libglib-2.0.so.0
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libpulse-simple.so.0
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/pipewire-0.3/jack/libjack.so.0
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgmodule-2.0.so.0
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgobject-2.0.so.0
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libtinfo.so.6
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libbrotlidec.so.1
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libcap.so.2
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libbrotlicommon.so.1
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/spa-0.2/support/libspa-support.so
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/spa-0.2/support/libspa-journal.soTemporary breakpoint 1, 0x000055555559e770 in main ()
(gdb) step
Single stepping until exit from function main,
which has no line number information.
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqwayland-generic.so
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
[New Thread 0x7ffff06006c0 (LWP 927284)]
QSocketNotifier: Can only be used with threads started with QThread
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgdk-3.so.0
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
[New Thread 0x7fffeec006c0 (LWP 927286)]
[New Thread 0x7fffee2006c0 (LWP 927287)]
[New Thread 0x7fffed8006c0 (LWP 927288)]
[New Thread 0x7fffece006c0 (LWP 927289)]
[New Thread 0x7fffe7e006c0 (LWP 927290)]
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
[New Thread 0x7fffe74006c0 (LWP 927291)]
[New Thread 0x7fffe6a006c0 (LWP 927292)]
[New Thread 0x7fffe60006c0 (LWP 927293)]
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/qt5/plugins/bearer/libqconnmanbearer.so
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/qt5/plugins/bearer/libqgenericbearer.so
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/qt5/plugins/bearer/libqnmbearer.so
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/qt5/plugins/wayland-graphics-integration-client/libqt-plugin-wayland-egl.so
[New Thread 0x7fffe56006c0 (LWP 927295)]
[New Thread 0x7fffe4c006c0 (LWP 927296)]
[New Thread 0x7fffd9c006c0 (LWP 927297)]
[New Thread 0x7fffd92006c0 (LWP 927298)]
[New Thread 0x7fffcfe006c0 (LWP 927299)]
[New Thread 0x7fffcf4006c0 (LWP 927300)]
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/qt5/plugins/wayland-shell-integration/libxdg-shell.soThread 1 "doomsday" received signal SIGSEGV, Segmentation fault.
0x00007ffff5507b24 in _XFlush () from /lib/x86_64-linux-gnu/libX11.so.6
(gdb)
History
#1 Updated by skyjake 3 months ago
Based on the debugger output, the "QSocketNotifier" warning seems unrelated to the crash. More likely you are using Wayland and Doomsday is trying to call X11 APIs; the crash is coming from libX11.so.
You could test this by switching to an X11-based display session and seeing if Doomsday still crashes.
#2 Updated by eunbolt 3 months ago
Yep you are right, running it with x11-based display works
Good news though, running the flatpak release seems to work fine in wayland(https://flathub.org/apps/net.dengine.Doomsday)
Maybe the download page can be updated to point to the flatpak release page?