Created attachment 95817 [details] backtrace pulseaudio-5.0 segfaults on startup when I login to the gnome session. BT is attached.
My local default.pa: $ cat ~/.config/pulse/default.pa #!/usr/bin/pulseaudio -nF .include /etc/pulse/default.pa .nofail load-module module-tunnel-sink server=192.168.11.239 unload-module module-zeroconf-publish .fail So module-zeroconf-publish is loaded in global default.pa and then unloaded in the local one. Commenting out "unload-module module-zeroconf-publish" fixes segfaults.
Another way to reproduce this crash: $ echo -e 'load-module module-zeroconf-publish\nunload-module module-zeroconf-publish' | pacmd
Thanks for the report! I sent a couple of patches that should fix this bug to the mailing list (not yet reached the list at the time of writing), I'll attach them here also.
Created attachment 95840 [details] [review] Fix 1/2
Created attachment 95841 [details] [review] Fix 2/2
Created attachment 95919 [details] backtrace2 Thank you for the quick response! These patches fixed the crash of pulse at startup. However I still can reproduce the crash using command from comment 2. Attaching the new backtrace.
I'll attach another patch. It should finally fix also the pacmd test case. module-zeroconf-publish appears to still have threading issues, but I couldn't reproduce the crash any more. I'll fix those remaining issues some time later.
Created attachment 95990 [details] [review] Another fix
Created attachment 96028 [details] [review] Another fix The previous patch (the mainloop one) isn't the best way to fix the issue, here's a better patch.
The patches have now been committed.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.