pw-cli crashes in pw_global_new() due to bad client.conf
Version, Distribution, Desktop Environment:
Pipewire version 0.3.28-1, Fedora 34, Plasma + Wayland
Description of Problem:
pw-cli
crashes with a segmentation fault immediately, even with pw-cli help
.
How Reproducible:
Always.
Additional info:
Stack trace from gdb
:
#0 0x00007ffff7f3ad3f in pw_global_new () from /lib64/libpipewire-0.3.so.0
#1 0x00007ffff7f47c62 in pw_context_load_module ()
from /lib64/libpipewire-0.3.so.0
#2 0x000055555555ac76 in main ()
And according to valgrind
the following happens just before the segfault:
==16887== Invalid read of size 8
==16887== at 0x48ABD3F: pw_global_new (in /usr/lib64/libpipewire-0.3.so.0.328.0)
==16887== by 0x48B8C61: pw_context_load_module (in /usr/lib64/libpipewire-0.3.so.0.328.0)
==16887== by 0x10EC75: ??? (in /usr/bin/pw-cli)
==16887== by 0x4967B74: (below main) (in /usr/lib64/libc-2.33.so)
==16887== Address 0x48 is not stack'd, malloc'd or (recently) free'd