Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 738910

Summary: sys-libs/musl-1.2.1 breaks libvirt and pulseaudio
Product: Gentoo Linux Reporter: Stijn Tintel <stijn+gentoo>
Component: Current packagesAssignee: Anthony Basile <blueness>
Status: RESOLVED FIXED    
Severity: normal CC: alex, jstein, lu_zero, musl, sam, toolchain
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/21939
Whiteboard:
Package list:
Runtime testing required: ---

Description Stijn Tintel 2020-08-25 10:22:57 UTC
See https://www.openwall.com/lists/musl/2020/08/14/3
Please consider reverting the musl-1.2.1 stabilization.
Comment 1 Jory A. Pratt gentoo-dev 2020-09-08 01:29:38 UTC
I am not one to follow mailing lists for another project. Can you actually explain how things like pulseaudio are broken? I currently use pulseaudio with all my machines and none of them are having an issue with musl-1.2.1
Comment 2 12101111 2020-11-02 10:29:35 UTC
I can confirm app-emulation/libvirt is broken on musl 1.2.1, app-emulation/virt-manager can't connect to the server.

upstream report: https://gitlab.com/libvirt/libvirt/-/issues/52#note_377144096

patch: https://www.redhat.com/archives/libvir-list/2020-August/msg00597.html
Comment 3 Stijn Tintel 2020-11-02 12:44:36 UTC
(In reply to Jory A. Pratt from comment #1)
> I am not one to follow mailing lists for another project. Can you actually
> explain how things like pulseaudio are broken? I currently use pulseaudio
> with all my machines and none of them are having an issue with musl-1.2.1

I'm not using pulseaudio on my musl systems. However, I am experiencing the same problem as https://bugs.gentoo.org/738910#c2. The workaround for this is to kill the 2nd /usr/sbin/libvirtd process after starting libvirtd. Maybe we should carry the libvirt patches instead. Unfortunately upstream seems to be ignoring them so far.
Comment 4 Alexander Miroshnichenko 2021-02-17 14:48:11 UTC
(In reply to 12101111 from comment #2)
> I can confirm app-emulation/libvirt is broken on musl 1.2.1,
> app-emulation/virt-manager can't connect to the server.
> 
> upstream report:
> https://gitlab.com/libvirt/libvirt/-/issues/52#note_377144096
> 
> patch: https://www.redhat.com/archives/libvir-list/2020-August/msg00597.html

This patches can not fully resolve the issue.

Such command hangs and other, because libvirtd fork process deadlock'ed:

virsh # list
Comment 5 Alexander Miroshnichenko 2021-02-17 15:05:14 UTC
The issue completely resolved for libvirt with above patches and 
sys-libs/libcap-ng-0.8.2-r1
sys-libs/musl-1.2.2-r1
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-02 04:02:05 UTC
(In reply to Alexander Miroshnichenko from comment #5)
> The issue completely resolved for libvirt with above patches and 
> sys-libs/libcap-ng-0.8.2-r1
> sys-libs/musl-1.2.2-r1

Thanks.