Bug#811266: pulseaudio: log is flooded sometimes when combined with torsocks (torify)

Felipe Sateler fsateler at debian.org
Mon Jan 18 19:16:19 UTC 2016


On 18 January 2016 at 15:54, Andreas B. Mundt <andi at debian.org> wrote:
> Control: tags -1 - moreinfo
>
> Hi Felipe,
>
> thanks for your debugging hints.
>
> On Mon, Jan 18, 2016 at 09:56:27AM -0300, Felipe Sateler wrote:
>> On 17 January 2016 at 09:09, Andreas B. Mundt <andi.mundt at web.de> wrote:
>
>> > when playing a stream using a music player with torsocks like:
>> >
>> >       torify mpg321 http://mp3stream1.apasf.apa.at:8000
>> >
>> > it happens sometimes that no music is played, instead the log is
>> > flooded with identical messages like:
>> >
>> >         pulseaudio[3148]: [pulseaudio] socket-server.c: accept(): Bad address
>
> [...]
>
>> > I've not figured out yet when it works, it seems to fail only the
>> > first time after reboot.  Once pulseaudio is killed and tried again, it
>> > seems to work, also after stopping and starting again there where no
>> > issues so far.
>
>
>> Could you attach a verbose log of when the problem happens?
>>
>> https://wiki.ubuntu.com/PulseAudio/Log
>
> I tried to fetch a log.  However, whenever I run pulseaudio like
>
>   LANG=C pulseaudio -vvvv --log-time=1 > ~/pulseverbose.log 2>&1
>
> it worked fine.  Removing ~/.config/pulse/client.conf and executing
>
>    torify mpg321 http://mp3stream1.apasf.apa.at:8000
>
> the normal way again resulted in the flooded log.  I switched back and
> forth several times and it was always the same, even with  "-vvvv
>   --log-time=1" removed from the pulseaudio command.

Hmm, so this suggests that there is some problem when autospawning
pulseaudio. The contents of ~/.config/pulse/client.conf include only
the autospawn setting, right? This would be consistent with the
observation that it only breaks the first time since boot.

Can you reproduce the problem if you try using mpg321 without torify
first, and then with torify?

Also, I see you are using systemd. You may want to try the following:

1. Set the autospawn setting to false in ~/.config/pulse/client.conf
2. Run (as your own user): systemctl --user enable pulseaudio.socket
3. Reboot and try to reproduce.

>
> So there must be some difference in the way pulseaudio works one way
> or the other which influence the error.

Seems to be the autospawn setting. Torify may be changing the
environment enough that pulseaudio cannot cope with it.

-- 

Saludos,
Felipe Sateler



More information about the pkg-pulseaudio-devel mailing list