Launchpad has imported 13 comments from the remote bug at https://bugzilla.redhat.com/show_bug.cgi?id=544084.
If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. ------------------------------------------------------------------------ On 2009-12-03T21:33:32+00:00 Don wrote: Description of problem: Received warning that my disk was full (unpartitioned disk inside a KVM virtual machine). Noticed that /var was 2.2G (out of 8G disk). Looked further and saw that /var/log/messages was 2.2G. Tailed it and saw these messages being spammed at high speed over and over: Dec 3 15:16:02 foo pulseaudio[1465]: socket-server.c: accept(): Too many open files Dec 3 15:16:02 foo pulseaudio[1465]: socket-server.c: accept(): Too many open files Dec 3 15:16:02 foo pulseaudio[1465]: socket-server.c: accept(): Too many open files Dec 3 15:16:02 foo pulseaudio[1465]: socket-server.c: accept(): Too many open files Dec 3 15:16:02 foo pulseaudio[1465]: socket-server.c: accept(): Too many open files I had to kill the pulseaudio process and delete other files just to be able to try to compress messages. Version-Release number of selected component (if applicable): pulseaudio-0.9.21-1.fc12.x86_64 How reproducible: Have not yet tried. Additional info: When the messages file finishes compressing, I'll reboot the VM and see if the problem occurs. This VM was just created yesterday. Reply at: https://bugs.launchpad.net/ubuntu/+source/alsa- lib/+bug/451893/comments/19 ------------------------------------------------------------------------ On 2009-12-03T22:25:35+00:00 Don wrote: Finally copied the log to my host wher I have more disk. Here's where the trouble started, just earlier today. These messages are sequential, I haven't deleted any lines from the log, just changed the name of my machine hostname to "foo": Dec 3 09:21:20 foo pulseaudio[1465]: alsa-sink.c: We were woken up with POLLOUT set -- however a subsequent snd_pc m_avail() returned 0 or another value < min_avail. Dec 3 09:31:03 foo avahi-daemon[817]: Received response from host 172.16.30.3 with invalid source port 58346 on in terface 'eth0.0' Dec 3 14:05:42 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:05:42 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:08:04 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:11:08 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:11:08 foo pulseaudio[1465]: sink-input.c: Failed to create sink input: sink is suspended. Dec 3 14:13:10 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:13:29 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:13:36 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:13:57 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:14:27 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:15:36 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:16:32 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:17:24 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:17:36 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:17:47 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:17:58 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:18:04 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:18:12 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:18:20 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:19:41 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:20:01 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:20:26 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:23:33 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:23:46 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:24:12 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:24:40 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:24:40 foo pulseaudio[1465]: sink-input.c: Failed to create sink input: sink is suspended. Dec 3 14:28:09 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:28:15 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:29:14 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:29:17 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:29:17 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:30:29 foo pulseaudio[1465]: alsa-sink.c: Error opening PCM device front:0: Too many open files Dec 3 14:30:29 foo pulseaudio[1465]: shm.c: shm_open() failed: Too many open files Dec 3 14:30:29 foo pulseaudio[1465]: shm.c: shm_open() failed: Too many open files Dec 3 14:30:29 foo pulseaudio[1465]: shm.c: shm_open() failed: Too many open files Dec 3 14:32:33 foo pulseaudio[1465]: socket-server.c: accept(): Too many open files Dec 3 14:32:33 foo pulseaudio[1465]: socket-server.c: accept(): Too many open files Dec 3 14:32:33 foo pulseaudio[1465]: socket-server.c: accept(): Too many open files After this it's madness as I posted earlier. Hundreds of screenfuls of the same line with the same exact timestamp. Reply at: https://bugs.launchpad.net/ubuntu/+source/alsa- lib/+bug/451893/comments/20 ------------------------------------------------------------------------ On 2009-12-09T16:32:54+00:00 Don wrote: Happened again today. First a number of these messages in rapid succession (all with same exact timestamp): Dec 9 09:42:06 foo pulseaudio[1517]: shm.c: shm_open() failed: Too many open files Followed by a LOT of these until /var/log/messages fills up the root disk: Dec 9 09:42:07 foo pulseaudio[1517]: socket-server.c: accept(): Too many open files Have to kill the pulseaudio pid 1517 and then just truncate /var/log/messages. Reply at: https://bugs.launchpad.net/ubuntu/+source/alsa- lib/+bug/451893/comments/21 ------------------------------------------------------------------------ On 2009-12-09T16:39:45+00:00 Don wrote: In case it wasn't clear before, this is happening in my Fedora 12 KVM virtual machine. The host is also Fedora 12 with all available stable upgrades. No pulseaudio problems on the host, just in the VM. The VM also has all available Fedora 12 stable upgrades. I'm more than willing to post whatever information is required, if you are available to help. It seems like a serious bug to me if pulseaudio is allowed to fill up the partition hosting /var/log/messages. In my case, this is the root partition, and it filled 2.2G in around 45 minutes. Reply at: https://bugs.launchpad.net/ubuntu/+source/alsa- lib/+bug/451893/comments/22 ------------------------------------------------------------------------ On 2009-12-09T17:04:23+00:00 Don wrote: Found a somewhat similar bug for Ubuntu: https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/451893 I see similar cases of a number of timer links. I have no real idea what it means. [root@foo ~]# ls -l /proc/$(pgrep pulseaudio)/fd|grep timer lr-x------. 1 seiler seiler 64 2009-12-09 10:56 22 -> /dev/snd/timer lr-x------. 1 seiler seiler 64 2009-12-09 10:56 23 -> /dev/snd/timer lr-x------. 1 seiler seiler 64 2009-12-09 10:56 29 -> /dev/snd/timer lr-x------. 1 seiler seiler 64 2009-12-09 10:56 30 -> /dev/snd/timer lr-x------. 1 seiler seiler 64 2009-12-09 10:56 35 -> /dev/snd/timer lr-x------. 1 seiler seiler 64 2009-12-09 10:56 36 -> /dev/snd/timer lr-x------. 1 seiler seiler 64 2009-12-09 10:56 37 -> /dev/snd/timer lr-x------. 1 seiler seiler 64 2009-12-09 10:56 38 -> /dev/snd/timer lr-x------. 1 seiler seiler 64 2009-12-09 10:56 39 -> /dev/snd/timer lr-x------. 1 seiler seiler 64 2009-12-09 10:56 40 -> /dev/snd/timer lr-x------. 1 seiler seiler 64 2009-12-09 10:56 41 -> /dev/snd/timer lr-x------. 1 seiler seiler 64 2009-12-09 10:56 42 -> /dev/snd/timer lr-x------. 1 seiler seiler 64 2009-12-09 11:03 43 -> /dev/snd/timer lr-x------. 1 seiler seiler 64 2009-12-09 11:03 44 -> /dev/snd/timer lr-x------. 1 seiler seiler 64 2009-12-09 11:03 45 -> /dev/snd/timer lr-x------. 1 seiler seiler 64 2009-12-09 10:56 9 -> /dev/snd/timer Reply at: https://bugs.launchpad.net/ubuntu/+source/alsa- lib/+bug/451893/comments/23 ------------------------------------------------------------------------ On 2009-12-09T17:06:10+00:00 Don wrote: FYI: # pulseaudio --version pulseaudio 0.9.21 # rpm -qa | grep pulseaudio pulseaudio-libs-glib2-0.9.21-1.fc12.x86_64 pulseaudio-module-gconf-0.9.21-1.fc12.x86_64 pulseaudio-utils-0.9.21-1.fc12.x86_64 pulseaudio-0.9.21-1.fc12.x86_64 pulseaudio-libs-0.9.21-1.fc12.x86_64 pulseaudio-module-bluetooth-0.9.21-1.fc12.x86_64 alsa-plugins-pulseaudio-1.0.21-2.fc12.x86_64 pulseaudio-gdm-hooks-0.9.21-1.fc12.x86_64 pulseaudio-module-x11-0.9.21-1.fc12.x86_64 Reply at: https://bugs.launchpad.net/ubuntu/+source/alsa- lib/+bug/451893/comments/24 ------------------------------------------------------------------------ On 2009-12-13T11:54:45+00:00 Mostafa wrote: I'm seeing this behaviour as well on a fully updated F12 host (no KVM). As far as I can tell, it is usually triggered by flash (flash- plugin-10.0.42.34-release.i386). Excerpts from /var/log/messages: Dec 6 13:50:29 batcave pulseaudio[1842]: ratelimit.c: 78 events suppressed Dec 6 13:51:01 batcave pulseaudio[1842]: alsa-sink.c: ALSA woke us up to write new data to the device, but there was actually nothing to write! Dec 6 13:51:01 batcave pulseaudio[1842]: alsa-sink.c: Most likely this is a bug in the ALSA driver 'snd_emu10k1'. Please report this issue to the ALSA devel opers. Dec 6 13:51:01 batcave pulseaudio[1842]: alsa-sink.c: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail. Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-util.c: Unable to set sw params: No such device Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-sink.c: Failed to set software parameters: No such device Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-util.c: Unable to set sw params: No such device Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-sink.c: Failed to set software parameters: No such device Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-util.c: Unable to set sw params: No such device Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-sink.c: Failed to set software parameters: No such device Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-util.c: Unable to set sw params: No such device Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-sink.c: Failed to set software parameters: No such device Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-util.c: Unable to set sw params: No such device [repeats until..] Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-sink.c: Failed to set software parameters: No such device Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-util.c: Unable to set sw params: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-sink.c: Failed to set software parameters: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-util.c: Unable to set sw params: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-sink.c: Failed to set software parameters: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-util.c: Unable to set sw params: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-sink.c: Failed to set software parameters: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-util.c: Unable to set sw params: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-sink.c: Failed to set software parameters: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-util.c: Unable to set sw params: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-sink.c: Failed to set software parameters: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-util.c: Unable to set sw params: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-sink.c: Failed to set software parameters: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-util.c: Unable to set sw params: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-sink.c: Failed to set software parameters: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-util.c: Unable to set sw params: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-sink.c: Failed to set software parameters: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-util.c: Unable to set sw params: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-sink.c: Failed to set software parameters: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-util.c: Unable to set sw params: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-sink.c: Failed to set software parameters: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-util.c: Unable to set sw params: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-sink.c: Failed to set software parameters: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-util.c: Unable to set sw params: Too many open files Dec 6 14:04:51 batcave pulseaudio[1842]: alsa-sink.c: Failed to set software parameters: Too many open files This continues till I notice and kill pulseaudio or till I run out of space on /. This is a pretty serious problem and I hope it can be resolved quickly. Please let me know if I can help with more information. Reply at: https://bugs.launchpad.net/ubuntu/+source/alsa- lib/+bug/451893/comments/26 ------------------------------------------------------------------------ On 2009-12-17T14:44:54+00:00 Lennart wrote: Looks as if something is leaking fds in either PA or in libasound. Reply at: https://bugs.launchpad.net/ubuntu/+source/alsa- lib/+bug/451893/comments/28 ------------------------------------------------------------------------ On 2009-12-17T14:48:16+00:00 Lennart wrote: Oh, and one thing really sucks: rsyslog does not automatically rate limit log output from all processes. That's a real disaster if you ask me. Reply at: https://bugs.launchpad.net/ubuntu/+source/alsa- lib/+bug/451893/comments/29 ------------------------------------------------------------------------ On 2009-12-21T09:24:03+00:00 Lennart wrote: OK, seems that alsa-lib is at fault here. Reassigning. http://git.alsa-project.org/?p=alsa- lib.git;a=commit;h=a256766c10c52cb6667de8a65f5cbb332fad4cc7 Reply at: https://bugs.launchpad.net/ubuntu/+source/alsa- lib/+bug/451893/comments/36 ------------------------------------------------------------------------ On 2009-12-23T21:30:45+00:00 Don wrote: This just hit me again. I see that ubuntu has pushed the patch into their repos. Any ETA on Fedora 12 patch? Reply at: https://bugs.launchpad.net/ubuntu/+source/alsa- lib/+bug/451893/comments/39 ------------------------------------------------------------------------ On 2010-01-11T08:34:45+00:00 Jaroslav wrote: The patch is in alsa-lib-1.0.22-1 package. Reply at: https://bugs.launchpad.net/ubuntu/+source/alsa- lib/+bug/451893/comments/45 ------------------------------------------------------------------------ On 2010-01-11T14:28:07+00:00 Don wrote: My yum.log shows that I installed that package on Jan 7. I thought I had this occur again on the 8th, but can't be sure now. Anyway I'll be sure to note any re-occurrence. Reply at: https://bugs.launchpad.net/ubuntu/+source/alsa- lib/+bug/451893/comments/46 ** Changed in: pulseaudio (Fedora) Status: Confirmed => Fix Released ** Changed in: pulseaudio (Fedora) Importance: Unknown => Critical -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to alsa-lib in Ubuntu. https://bugs.launchpad.net/bugs/451893 Title: PulseAudio opens too many files, locks up, and fills up root fs (/var/log) Status in alsa-lib package in Ubuntu: Fix Released Status in alsa-lib source package in Karmic: Fix Released Status in pulseaudio package in Fedora: Fix Released Bug description: --- SRU information follows --- Impact: 9.10 users may experience a local denial of service due to fd exhaustion caused by alsa-lib failing to properly free timers upon closing slave pcm devices. 10.04 resolution: http://bazaar.launchpad.net/~ubuntu-core-dev/alsa- lib/ubuntu.new/annotate/head%3A/debian/patches/Dont_leak_timer_fd_on_pcm_slave_close.patch has been applied. Minimal 9.10 patch: http://launchpadlibrarian.net/37016945/alsa- lib_1.0.20-3ubuntu6.1.debdiff_2 TEST CASE: Choose a multichannel surround profile in Sound Preferences > Hardware > Profile Regression potential: low to none -- all pcm (including slave pcm) devices will properly free associated timers --- original bug report follows --- 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/alsa-lib/+bug/451893/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp

