Created attachment 95817 [details]
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
load-module module-tunnel-sink server=192.168.11.239
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]
Created attachment 95841 [details] [review]
Created attachment 95919 [details]
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]
Created attachment 96028 [details] [review]
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.