[pulseaudio-discuss] Still getting some kind of deadlock problem with 0.9.16

Colin Guthrie gmane at colin.guthr.ie
Thu Sep 10 03:24:43 PDT 2009


Hi,

I've kinda reported this before (mlock issue) but this backtrace is 
slightly different.

I'm fully prepared to say this is a kernel problem but this is with the 
rc9 of 2.6.31 so figure is worth mentioning again and perhaps getting a 
clearer insight so I can report it to our kernel guys who can take 
appropriate action if needs be...

(gdb) bt
#0  pa_mainloop_prepare (m=0x1809980, timeout=-1) at pulse/mainloop.c:842
#1  0x00007f03df05297a in pa_mainloop_iterate (m=0x1809980, block=<value 
optimized out>, retval=0x7fffa7291c6c) at pulse/mainloop.c:947
#2  0x00007f03df052a40 in pa_mainloop_run (m=0x1809980, 
retval=0x7fffa7291c6c) at pulse/mainloop.c:968
#3  0x0000000000409dcc in main (argc=<value optimized out>, argv=<value 
optimized out>) at daemon/main.c:924
(gdb) thread apply all bt full

Thread 4 (Thread 0x7f03db37a910 (LWP 9185)):
#0  0x00007f03db660a47 in ppoll () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007f03df2aa0a4 in pa_rtpoll_run (p=0x186c150, wait_op=104) at 
pulsecore/rtpoll.c:304
	ts = {tv_sec = 0, tv_nsec = 350772000}
	i = (pa_rtpoll_item *) 0x7f03db379f90
	r = <value optimized out>
	timeout = {tv_sec = 0, tv_usec = 350772}
	__func__ = "pa_rtpoll_run"
	__PRETTY_FUNCTION__ = "pa_rtpoll_run"
#2  0x00007f03d59165be in thread_func (userdata=<value optimized out>) 
at modules/alsa/alsa-sink.c:1425
	ret = -514
	u = (struct userdata *) 0x186d140
	revents = 0
	__func__ = "thread_func"
	__PRETTY_FUNCTION__ = "thread_func"
#3  0x00007f03dee1fd80 in internal_thread_func (userdata=0x1825750) at 
pulsecore/thread-posix.c:72
	__func__ = "internal_thread_func"
	__PRETTY_FUNCTION__ = "internal_thread_func"
#4  0x00007f03dc18a7cd in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#5  0x00007f03db66a37d in clone () from /lib64/libc.so.6
No symbol table info available.
#6  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 3 (Thread 0x7f03d5403910 (LWP 9186)):
#0  0x00007f03db660a47 in ppoll () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007f03df2aa0a4 in pa_rtpoll_run (p=0x183d8a0, wait_op=true) at 
pulsecore/rtpoll.c:304
	ts = {tv_sec = 0, tv_nsec = 0}
	i = (pa_rtpoll_item *) 0x0
	r = <value optimized out>
	timeout = {tv_sec = 0, tv_usec = 0}
	__func__ = "pa_rtpoll_run"
	__PRETTY_FUNCTION__ = "pa_rtpoll_run"
#2  0x00007f03d591b980 in thread_func (userdata=<value optimized out>) 
at modules/alsa/alsa-source.c:1270
	ret = <value optimized out>
	u = (struct userdata *) 0x1862250
	revents = 0
	__func__ = "thread_func"
---Type <return> to continue, or q <return> to quit---
	__PRETTY_FUNCTION__ = "thread_func"
#3  0x00007f03dee1fd80 in internal_thread_func (userdata=0x183d920) at 
pulsecore/thread-posix.c:72
	__func__ = "internal_thread_func"
	__PRETTY_FUNCTION__ = "internal_thread_func"
#4  0x00007f03dc18a7cd in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#5  0x00007f03db66a37d in clone () from /lib64/libc.so.6
No symbol table info available.
#6  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 2 (Thread 0x7f03d4c02910 (LWP 9187)):
#0  0x00007f03db660a47 in ppoll () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007f03df2aa0a4 in pa_rtpoll_run (p=0x1860b10, wait_op=true) at 
pulsecore/rtpoll.c:304
	ts = {tv_sec = 0, tv_nsec = 0}
	i = (pa_rtpoll_item *) 0x0
	r = <value optimized out>
	timeout = {tv_sec = 0, tv_usec = 0}
	__func__ = "pa_rtpoll_run"
	__PRETTY_FUNCTION__ = "pa_rtpoll_run"
#2  0x00007f03d59165be in thread_func (userdata=<value optimized out>) 
at modules/alsa/alsa-sink.c:1425
	ret = -514
	u = (struct userdata *) 0x183e750
	revents = 0
	__func__ = "thread_func"
	__PRETTY_FUNCTION__ = "thread_func"
#3  0x00007f03dee1fd80 in internal_thread_func (userdata=0x184e920) at 
pulsecore/thread-posix.c:72
	__func__ = "internal_thread_func"
	__PRETTY_FUNCTION__ = "internal_thread_func"
#4  0x00007f03dc18a7cd in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#5  0x00007f03db66a37d in clone () from /lib64/libc.so.6
No symbol table info available.
#6  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 1 (Thread 0x7f03df6ce6f0 (LWP 9173)):
#0  pa_mainloop_prepare (m=0x1809980, timeout=-1) at pulse/mainloop.c:842
	__func__ = "pa_mainloop_prepare"
	__PRETTY_FUNCTION__ = "pa_mainloop_prepare"
#1  0x00007f03df05297a in pa_mainloop_iterate (m=0x1809980, block=<value 
optimized out>, retval=0x7fffa7291c6c) at pulse/mainloop.c:947
---Type <return> to continue, or q <return> to quit---
	r = <value optimized out>
	__func__ = "pa_mainloop_iterate"
	__PRETTY_FUNCTION__ = "pa_mainloop_iterate"
#2  0x00007f03df052a40 in pa_mainloop_run (m=0x1809980, 
retval=0x7fffa7291c6c) at pulse/mainloop.c:968
	r = <value optimized out>
#3  0x0000000000409dcc in main (argc=<value optimized out>, argv=<value 
optimized out>) at daemon/main.c:924
	c = <value optimized out>
	buf = <value optimized out>
	conf = <value optimized out>
	mainloop = <value optimized out>
	s = <value optimized out>
	r = <value optimized out>
	retval = 0
	d = 3
	valid_pid_file = true
	ltdl_init = <value optimized out>
	passed_fd = <value optimized out>
	e = <value optimized out>
	daemon_pipe = {-1, -1}
	autospawn_fd = -1
	autospawn_locked = false
	dbus = <value optimized out>
	__func__ = "main"
	__PRETTY_FUNCTION__ = "main"
(gdb)
(gdb) info threads
   4 Thread 0x7f03db37a910 (LWP 9185)  0x00007f03db660a47 in ppoll () 
from /lib64/libc.so.6
   3 Thread 0x7f03d5403910 (LWP 9186)  0x00007f03db660a47 in ppoll () 
from /lib64/libc.so.6
   2 Thread 0x7f03d4c02910 (LWP 9187)  0x00007f03db660a47 in ppoll () 
from /lib64/libc.so.6
* 1 Thread 0x7f03df6ce6f0 (LWP 9173)  pa_mainloop_prepare (m=0x1809980, 
timeout=-1) at pulse/mainloop.c:842
(gdb) quit
The program is running.  Quit anyway (and detach it)? (y or n) y
Detaching from program: /usr/bin/pulseaudio, process 9173
[colin at jimmy www (csf)]$ pulseaudio -k
[colin at jimmy www (csf)]$ paplay /usr/share/sounds/startup3.wav
^C[colin at jimmy www (csf)]$
(the above just blocks and has to be killed).

[colin at jimmy www (csf)]$ killall -9 pulseaudio
[colin at jimmy www (csf)]$ paplay /usr/share/sounds/startup3.wav
[colin at jimmy www (csf)]$
(worked that time.


Not sure if/how this is helpful...

Col



-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
   Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
   Mandriva Linux Contributor [http://www.mandriva.com/]
   PulseAudio Hacker [http://www.pulseaudio.org/]
   Trac Hacker [http://trac.edgewall.org/]




More information about the pulseaudio-discuss mailing list