Ticket #789 (new defect)

Opened 2 years ago

Last modified 12 months ago

100% CPU use even with 0.9.21-3+b1

Reported by: porton Owned by: lennart
Milestone: Component: daemon
Keywords: Cc: arun@…, srikar137@…

Description

Sometimes PulseAudio starts to use 100% of one CPU core.

The quality of sound seems not affected.

(I don't know how to replicate this bug.)

Change History

  Changed 16 months ago by Ford_Prefect

If you are familiar with gdb, when CPU usage hits 100%, could you attach to the process and provide a backtrace? Roughly, this would required:

gdb <path-to-pulseaudio> <pid-of-pulseaudio> thread apply all bt

Also would help if you're using the latest version of PA available on your distro.

  Changed 16 months ago by Ford_Prefect

  • cc arun@… added

  Changed 15 months ago by porton

When I executed

gdb <path-to-pulseaudio> <pid-of-pulseaudio>

my window manager (which uses PulseAudio) hanged and I was in need to press power button on the computer to reboot it.

  Changed 15 months ago by porton

(gdb) thread apply all bt

Thread 3 (Thread 0xb2d3cb70 (LWP 3711)):
#0  0xb78b7424 in __kernel_vsyscall ()
#1  0xb7489775 in ppoll () from /lib/i686/cmov/libc.so.6
#2  0xb784fda0 in pa_rtpoll_run () from /usr/lib/libpulsecore-0.9.21.so
#3  0xb2d5a4ac in ?? () from /usr/lib/pulse-0.9.21/modules/libalsa-util.so
#4  0xb780e322 in ?? () from /usr/lib/libpulsecommon-0.9.21.so
#5  0xb7554955 in start_thread () from /lib/i686/cmov/libpthread.so.0
#6  0xb7496e7e in clone () from /lib/i686/cmov/libc.so.6

Thread 2 (Thread 0xb253bb70 (LWP 3713)):
#0  0xb78b7424 in __kernel_vsyscall ()
#1  0xb7489775 in ppoll () from /lib/i686/cmov/libc.so.6
#2  0xb784fda0 in pa_rtpoll_run () from /usr/lib/libpulsecore-0.9.21.so
#3  0xb2d60c66 in ?? () from /usr/lib/pulse-0.9.21/modules/libalsa-util.so
#4  0xb780e322 in ?? () from /usr/lib/libpulsecommon-0.9.21.so
#5  0xb7554955 in start_thread () from /lib/i686/cmov/libpthread.so.0
#6  0xb7496e7e in clone () from /lib/i686/cmov/libc.so.6

Thread 1 (Thread 0xb7012700 (LWP 3670)):
#0  0xb78b7424 in __kernel_vsyscall ()
#1  0xb7489775 in ppoll () from /lib/i686/cmov/libc.so.6
#2  0xb77ad4aa in pa_mainloop_poll () from /usr/lib/libpulse.so.0
#3  0xb77aec43 in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#4  0xb77aed14 in pa_mainloop_run () from /usr/lib/libpulse.so.0
#5  0x08052a2e in main ()

  Changed 15 months ago by w00d5t0ck

  • summary changed from 100% CPU use to 100% CPU use even with 0.9.22

Hello,

I'm experiencing the same problem with 0.9.22. Following is my gdb backtrace.

The whole stuff is happened when I logged in to my Gentoo system, and started Rhythmbox (which uses GStreamer, using PulseAudio).

Best, W00d5t0ck

#0 0xb7830424 in kernel_vsyscall () #1 0xb711c1f5 in sem_wait@@GLIBC_2.1 () from /lib/libpthread.so.0 #2 0xb7725b7d in pa_semaphore_wait () from /usr/lib/libpulsecommon-0.9.22.so #3 0xb778fda5 in pa_asyncmsgq_send () from /usr/lib/libpulsecore-0.9.22.so #4 0xb23dc4a4 in ?? ()

from /usr/lib/pulse-0.9.22/modules/libprotocol-native.so

#5 0x08e33640 in ?? () #6 0x08e80cd8 in ?? () #7 0x0000000d in ?? () #8 0x08e7c330 in ?? () #9 0x00000000 in ?? ()

in reply to: ↑ description   Changed 12 months ago by srikar

  • cc srikar137@… added
  • summary changed from 100% CPU use even with 0.9.22 to 100% CPU use even with 0.9.21-3+b1

Replying to porton:

Sometimes PulseAudio starts to use 100% of one CPU core. The quality of sound seems not affected. (I don't know how to replicate this bug.)

I am Facing the same :( http://forums.linuxmint.com/viewtopic.php?f=141&t=66083&p=382098#p382098

Note: See TracTickets for help on using tickets.