Re: [Bug 451893] Re: PulseAudio opens too many files, locks up, and fills up root fs (/var/log)
Hrm... I wonder if maybe the problem has anything to do with the fact that the cards have hardware mixing and can be opened multiple times? On Nov 29, 2009 7:05 PM, Dan McCombs overri...@gmail.com wrote: I can confirm the file handle leak on /dev/snd/timer only happens if I have the Analog Surround 5.1 Output Profile selected instead of Analog Stereo Duplex. Three file handles to /dev/snd/timer are left open each time a sound is played with the 5.1 profile: overri...@citadel-station:~$ ls -l /proc/$(pgrep pulseaudio)/fd|grep timer | wc -l 12 overri...@citadel-station:~$ ls -l /proc/$(pgrep pulseaudio)/fd|grep timer | wc -l 15 overri...@citadel-station:~$ ls -l /proc/$(pgrep pulseaudio)/fd|grep timer | wc -l 18 This using a Sound Blaster Audigy sound card. -Dan -- PulseAudio opens too many files, locks up, and fills up root fs (/var/log) https://bugs.l... -- 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 member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 451893] Re: PulseAudio opens too many files, locks up, and fills up root fs (/var/log)
Recent (git HEAD) changes in alsa-lib have added close-on-exec semantics. I'll hack in a deb for the PPA this week. On Nov 29, 2009 4:20 PM, Michael B. Trausch m...@trausch.us wrote: Hrm... I wonder if maybe the problem has anything to do with the fact that the cards have hardware mixing and can be opened multiple times? On Nov 29, 2009 7:05 PM, Dan McCombs overri...@gmail.com wrote: I can confirm the file handle ... (/var/log) https://bugs.l... -- 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 member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 451893] Re: PulseAudio opens too many files, locks up, and fills up root fs (/var/log)
On Mon, 2009-10-19 at 21:26 +, Daniel T Chen wrote: Firstly, are you running current Karmic? The most recent pulseaudio package Conflicts rtkit, which was spamming syslog due to a patch not being applied to the Karmic linux source package. I've updated today, I will pull updates again here in a bit. Should this issue be gone with the latest updates? --- Mike -- 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 -- 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 member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 451893] Re: PulseAudio opens too many files, locks up, and fills up root fs (/var/log)
On Mon, Oct 19, 2009 at 4:36 PM, Michael B. Trausch m...@zest.trausch.us wrote: I'm not sure how to go about doing this, could you provide me with some pointers or a starting point? Deleting my log files and doing Firstly, are you running current Karmic? The most recent pulseaudio package Conflicts rtkit, which was spamming syslog due to a patch not being applied to the Karmic linux source package. -- 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 member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 451893] Re: PulseAudio opens too many files, locks up, and fills up root fs (/var/log)
Are you using glitch-free? On Oct 16, 2009 5:50 PM, Michael B. Trausch m...@zest.trausch.us wrote: Daniel, Yes, it happens with the Ubuntu kernel also: m...@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 m...@zest:~/$ ps -f $(pgrep pulseaudio) UID PID PPID C STIME TTY STAT TIME CMD mbt 3486 1 0 14:08 ?Ssl0:01 /usr/bin/pulseaudio --start m...@zest:~/$ pulseaudio --version pulseaudio 0.9.19 m...@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 m...@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 member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
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 +, 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 m...@zest.trausch.us wrote: Daniel, Yes, it happens with the Ubuntu kernel also: m...@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 m...@zest:~/$ ps -f $(pgrep pulseaudio) UID PID PPID C STIME TTY STAT TIME CMD mbt 3486 1 0 14:08 ?Ssl0:01 /usr/bin/pulseaudio --start m...@zest:~/$ pulseaudio --version pulseaudio 0.9.19 m...@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 m...@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: USERPID 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 --
Re: [Bug 451893] Re: PulseAudio opens too many files, locks up, and fills up root fs (/var/log)
Right, so you are using glitch-free. Let's see if we can narrow down whether it's linux or PA at issue, or possibly both. There are definitely workarounds for either/both. -- 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 member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 451893] Re: PulseAudio opens too many files, locks up, and fills up root fs (/var/log)
Is this symptom reproducible in the Ubuntu Karmic kernel (2.6.31-14.47-generic)? -- 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 member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 451893] Re: PulseAudio opens too many files, locks up, and fills up root fs (/var/log)
On Fri, 2009-10-16 at 03:23 +, Daniel T Chen wrote: Is this symptom reproducible in the Ubuntu Karmic kernel (2.6.31-14.47-generic)? I suppose I can find out, but if the problem is dependent on the kernel to be triggered, then this PA bug is a much larger bug than it would appear to be; PA should not have bugs able to be triggered by dropping in a newer kernel that fulfills the same interfaces. Give me some time to switch back as my system is currently working on some things and I cannot reboot right now. --- Mike -- 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 -- 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 member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs