Comment 8 for bug 451893

Revision history for this message
Michael B. Trausch (mtrausch) wrote : Re: [Bug 451893] Re: PulseAudio opens too many files, locks up, and fills up root fs (/var/log)

On Fri, 2009-10-16 at 22:00 +0000, Daniel T Chen wrote:
> Are you using glitch-free?

I haven't the slightest clue what you're asking. I'm using PulseAudio
as it comes with Ubuntu, configured for my number of speakers using the
GNOME Volume control panel.

 --- Mike

>
> On Oct 16, 2009 5:50 PM, "Michael B. Trausch" <email address hidden>
> wrote:
>
> Daniel,
>
> Yes, it happens with the Ubuntu kernel also:
>
> mbt@zest:~/$ ls -l /proc/$(pgrep pulseaudio)/fd|grep timer
> lr-x------ 1 mbt mbt 64 2009-10-16 17:39 28 -> /dev/snd/timer
> lr-x------ 1 mbt mbt 64 2009-10-16 17:39 29 -> /dev/snd/timer
> lr-x------ 1 mbt mbt 64 2009-10-16 17:39 30 -> /dev/snd/timer
> lr-x------ 1 mbt mbt 64 2009-10-16 17:39 42 -> /dev/snd/timer
> lr-x------ 1 mbt mbt 64 2009-10-16 17:39 43 -> /dev/snd/timer
> lr-x------ 1 mbt mbt 64 2009-10-16 17:39 44 -> /dev/snd/timer
> lr-x------ 1 mbt mbt 64 2009-10-16 17:39 49 -> /dev/snd/timer
> lr-x------ 1 mbt mbt 64 2009-10-16 17:39 50 -> /dev/snd/timer
> lr-x------ 1 mbt mbt 64 2009-10-16 17:39 51 -> /dev/snd/timer
> lr-x------ 1 mbt mbt 64 2009-10-16 17:39 55 -> /dev/snd/timer
> lr-x------ 1 mbt mbt 64 2009-10-16 17:39 56 -> /dev/snd/timer
> lr-x------ 1 mbt mbt 64 2009-10-16 17:39 57 -> /dev/snd/timer
> lr-x------ 1 mbt mbt 64 2009-10-16 17:39 58 -> /dev/snd/timer
> lr-x------ 1 mbt mbt 64 2009-10-16 17:39 59 -> /dev/snd/timer
> lr-x------ 1 mbt mbt 64 2009-10-16 17:39 60 -> /dev/snd/timer
> lr-x------ 1 mbt mbt 64 2009-10-16 17:40 65 -> /dev/snd/timer
> lr-x------ 1 mbt mbt 64 2009-10-16 17:40 66 -> /dev/snd/timer
> lr-x------ 1 mbt mbt 64 2009-10-16 17:40 67 -> /dev/snd/timer
> mbt@zest:~/$ ps -f $(pgrep pulseaudio)
>
> UID PID PPID C STIME TTY STAT TIME CMD
> mbt 3486 1 0 14:08 ? Ssl 0:01 /usr/bin/pulseaudio
> --start
> mbt@zest:~/$ pulseaudio --version
> pulseaudio 0.9.19
> mbt@zest:~/$ uname -a
> Linux zest 2.6.31-14-generic #47-Ubuntu SMP Thu Oct 15 03:42:30 UTC 2009
> x86_64 GNU/Linux
> mbt@zest:~/$
>
> -- PulseAudio opens too many files, locks up, and fills up root fs
> (/var/log) https://bugs.launchp...
>
> --
> PulseAudio opens too many files, locks up, and fills up root fs (/var/log)
> https://bugs.launchpad.net/bugs/451893
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “pulseaudio” package in Ubuntu: New
>
> Bug description:
> Binary package hint: pulseaudio
>
> First: note that this is not bug 446355, though it is similar. The message in the system log is:
>
> Oct 13 14:25:51 zest pulseaudio[3578]: alsa-util.c: Unable to set sw params: Too many open files
> Oct 13 14:25:51 zest pulseaudio[3578]: alsa-sink.c: Failed to set software parameters: Too many open files
>
> Infinitely, repeatedly, until the /var/log/syslog and /var/log/user.log files fill up the partition that they are on. I have had to clear my log files 3 times now in the past day because my root filesystem was full, which started breaking various things (like my postfix installation which gets my mail delivered directly to me).
>
> The log files are available on request privately, they contain information that I do not want published on the bug report, and due to their size, I cannot be sure to filter them and not accidentally remove anything relevant. There may be more in the log files than I have seen, simply because of the amount of stuff there. For anyone who requests the files, I'll email them: note that the log files are to 4 MB. However, they will expand to somewhere around 9 GB; compression on my system (4x 2.2 GHz 64-bit cores) took 300 minutes each, compressing with pbzip2. If you have a multiple-core system, decompression will go a lot more quickly if you use pbzip2 instead of bzip2 (and note also that compression took about 5 hours, I'd expect decompression to be similar). I will attached trimmed-down versions of these files as well, shortly after uploading the full log files.
>
> This bug causes denial of service of anything in /var or on /, so I am classifying this as a security bug.
>
> ProblemType: Bug
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC0: mbt 27536 F.... pulseaudio
> /dev/snd/timer: mbt 27536 f.... pulseaudio
> Card0.Amixer.info:
> Card hw:0 'Live'/'SB Live! 5.1 [SB0060] (rev.7, serial:0x80611102) at 0xdc00, irq 19'
> Mixer name : 'SigmaTel STAC9708,11'
> Components : 'AC97a:83847608'
> Controls : 224
> Simple ctrls : 45
> Date: Thu Oct 15 00:42:33 2009
> DistroRelease: Ubuntu 9.10
> NonfreeKernelModules: nvidia
> Package: pulseaudio 1:0.9.19-0ubuntu1
> ProcEnviron:
> PATH=(custom, user)
> LANG=en_US.UTF-8
> SHELL=/bin/bash
> SourcePackage: pulseaudio
> Uname: Linux 2.6.31.3-bfs303 x86_64

--
Blog: http://mike.trausch.us/blog/
Misc. Software: http://mike.trausch.us/software/

“The greater danger for most of us lies not in setting our aim too
high and falling short; but in setting our aim too low, and achieving
our mark.” —Michelangelo