Segfault in Nheko with gstreamer v1.24
- PipeWire version (
pipewire --version
): v1.0.4 w/ cherry-picked patches AND master commit 96fb63df - Distribution and distribution version (
PRETTY_NAME
from/etc/os-release
): Solus - Desktop Environment: Plasma Wayland
- Kernel version (
uname -r
): 6.8.1
Description of Problem:
We backported the Gstreamer v1.24 DMA_DRM patches to v1.0.4 (for GNOME 46) and nheko started segfaulting on launch. We tested pipewire master commit 96fb63df as well which also segfaults. On git master we bisected it to f1b75fc6 (which was an obvious result as it was one of our backported patches).
How Reproducible:
Completely, happens on every launch.
Steps to Reproduce:
- Have gstreamer v1.24.1 (v1.24.0 untested)
- Have pipewire git master or v1.0.4 with backported patches
- Launch nheko
Actual Results:
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at pthread_kill.c:89
#3 0x00007ff8e07e2256 in __GI_raise (sig=6) at ../sysdeps/posix/raise.c:26
#4 0x00005635a8489916 in stacktraceHandler(int) ()
#5 0x00007ff8e07e2300 in <signal handler called> () at /usr/lib/glibc-hwcaps/x86-64-v3/libc.so.6
#6 0x00007ff8bb067534 in handle_dmabuf_prop
(prop=0x5635aa12fe68, prop_modifier=0x5635aa12feb8, res=0x7ff82800b9c0 [GstCaps])
at ../src/gst/gstpipewireformat.c:908
#7 0x00007ff8bb068166 in gst_caps_from_format (format=0x5635aa12fe28) at ../src/gst/gstpipewireformat.c:1134
#8 0x00007ff8bb077473 in node_event_param
(data=0x7ff828002da8, seq=1073741902, id=3, index=8, next=9, param=0x5635aa12fe28)
at ../src/gst/gstpipewiredeviceprovider.c:427
#9 0x00007ff8b8090542 in node_demarshal_param (data=0x7ff828002d30, msg=0x5635aa12dda8)
at ../src/modules/module-protocol-native/protocol-native.c:1216
#10 0x00007ff8b808140d in process_remote (impl=0x5635aa12bbb0) at ../src/modules/module-protocol-native.c:1063
#11 0x00007ff8b8081671 in on_remote_data (data=0x5635aa12bbb0, fd=59, mask=1)
at ../src/modules/module-protocol-native.c:1097
#12 0x00007ff8bb0347e0 in source_io_func (source=0x5635aa12de70) at ../spa/plugins/support/loop.c:522
#13 0x00007ff8bb034704 in loop_iterate (object=0x5635aa11ee48, timeout=-1) at ../spa/plugins/support/loop.c:506
#14 0x00007ff8b9cc9416 in do_loop (user_data=0x5635a9dab770) at ../src/pipewire/thread-loop.c:295
#15 0x00007ff8e083727e in start_thread (arg=<optimized out>) at pthread_create.c:447
#16 0x00007ff8e08be0cc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
Expected Results:
No crash