[pulseaudio-tickets] [Bug 96873] tcp transport always fails: PULSE_SERVER=127.0.0.1 src/pacat, Connection failure: Connection terminated

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jul 10 02:30:43 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=96873

--- Comment #2 from Tanu Kaskinen <tanuk at iki.fi> ---
(In reply to Sergei Trofimovich from comment #0)
> Noticed breakage on real applications like mpv and other media apps.
> 
> PA used to work but I'm not sure what exactly changed in my environment.
> 
> Currently pulseaudio over TCP is broken on the following versions:
>     7.1, 8.0, 9.0.

To clarify, did you only test those versions, or did you also try older
versions and they worked?

Thanks for testing different kernel versions. This issue was reported in IRC
too, but we didn't manage to trace it down to kernel differences yet.

> Looking at the code there is a few functions that assume UNIX sockets:
> 
>     pa_iochannel_write_with_creds()
>     pa_iochannel_write_with_fds()

Or rather, the functions assume that setting creds works ("works" as in doesn't
result in an error) on IP sockets as well (or at least
pa_iochannel_write_with_creds() assumes that - I haven't looked at the call
paths for pa_iochannel_write_with_fds()). It seems that the kernel has stopped
accepting creds for IP sockets? That behaviour would make sense to me, although
it might be against the "never break userspace" rule that the kernel tries to
follow.

In any case, I'll write a patch that avoids calling the aforementioned
functions on IP sockets.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20160710/4956ce78/attachment.html>


More information about the pulseaudio-bugs mailing list