pipewire-media-session segfaults while enumerating alsa profiles
Hi!
I tried using pipewire as my main audio server with pipewire-media-session. I've used commit cf2c32f0 and built it with debug symbols included. Unfortunately pipewire-media-session segfaults when the alsa-acp module is enabled. Here is the relevant information from gdb:
gdb-peda$ bt
#0 0x00007f9af0eaea85 in __strlen_avx2 () from /usr/lib/libc.so.6
#1 0x00007f9af00c55e3 in spa_pod_builder_addv (args=0x7ffde067ffe0, builder=0x7ffde0680320) at ../pipewire/spa/include/spa/pod/builder.h:608
#2 spa_pod_builder_add (builder=0x7ffde0680320) at ../pipewire/spa/include/spa/pod/builder.h:624
#3 0x00007f9af010aa3e in build_route.constprop.0 (b=b@entry=0x7ffde0680320, id=id@entry=0xc, p=0x5624ad07b9c0, dev=dev@entry=0x0,
profile=profile@entry=0xffffffff) at ../pipewire/spa/plugins/alsa/alsa-acp-device.c:354
#4 0x00007f9af00ca789 in impl_enum_params (object=0x5624ad06a3b8, seq=0x4000001c, id=0xc, start=<optimized out>, num=0xffffffff, filter=0x0)
at ../pipewire/spa/plugins/alsa/alsa-acp-device.c:471
#5 0x00007f9af1014b57 in device_demarshal_enum_params (object=0x5624ad07f080, msg=<optimized out>)
at ../pipewire/src/modules/module-client-device/protocol-native.c:152
#6 0x00007f9af01cb799 in process_remote (impl=impl@entry=0x5624ad003f70) at ../pipewire/src/modules/module-protocol-native.c:711
#7 0x00007f9af01cbd48 in on_remote_data (data=0x5624ad003f70, fd=<optimized out>, mask=<optimized out>)
at ../pipewire/src/modules/module-protocol-native.c:752
#8 0x00007f9af103c38b in loop_iterate (object=0x5624acfdff78, timeout=<optimized out>) at ../pipewire/spa/plugins/support/loop.c:306
#9 0x00007f9af0fa62cb in pw_main_loop_run (loop=0x5624acfdfe30) at ../pipewire/src/pipewire/main-loop.c:156
#10 0x00005624ab03e83d in main (argc=<optimized out>, argv=<optimized out>) at ../pipewire/src/examples/media-session/media-session.c:2222
#11 0x00007f9af0d74152 in __libc_start_main () from /usr/lib/libc.so.6
#12 0x00005624ab03eb9e in _start ()
gdb-peda$ x/i $rip
=> 0x7f9af0eaea85 <__strlen_avx2+21>: vpcmpeqb ymm1,ymm0,YMMWORD PTR [rdi]
gdb-peda$ x/s $rdi
0x65442f6f69647541: <error: Cannot access memory at address 0x65442f6f69647541>
I'm attaching the coredump and the built binary with debug symbols pipewire-media-session
Best Regards,
Grzegorz
Edited by Grzegorz Uriasz