[Pkg-audacious-maintainers] Bug#531835: audacious 2.0.1: freezes after playing an Ogg or MP3 file
Stephen Marron
debian at solo.boxfusion.net
Tue Jan 18 06:14:04 UTC 2011
Hi
I came across this while having a similar issue
This is likely the same as this downstream bug
https://bugs.launchpad.net/alsa-lib/+bug/567890
which affects the alsa plugin in audacious-plugins
the problem is caused by a long standing upstream bug in alsa
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3150
when audacious is being used with the alsa plugin the main thread will
call audmad_stop which calls alsa_drain which may never return causing
the main thread to wait for the child thread forever...
its suggested in the alsa bug report that it can be worked around by
wrapping the drain call with
if (snd_pcm_state() == SND_PCM_STATE_RUNNING) {}
but it has also been suggested that as of 2010-04-23 that the workaround
no longer works...
see upstream and downstream bug reports for more info :)
relevant package versions and backtraces below
Regards
Stephen
--
i can confirm that this bug exists in
ii audacious 2.3-2
ii audacious-plugins 2.3+dfsg-1+b1
ii alsa-base 1.0.23+dfsg-2
--
(gdb) backtrace
#0 0x00007f24ed8bfbe5 in pthread_join (threadid=139795970955024,
thread_return=0x7fff8661bff8) at pthread_join.c:89
#1 0x00007f24f05f8f71 in g_thread_join_posix_impl (
thread=<value optimized out>)
at /glib2.0-2.25.15/gthread/gthread-posix.c:385
#2 0x00007f24f0867dd3 in g_thread_join (thread=0x262fe00)
at /glib2.0-2.25.15/glib/gthread.c:2042
#3 0x00007f24da125382 in audmad_stop (playback=0x2489020) at plugin.c:457
#4 0x0000000000416c64 in playback_finalize (playback=0x2489020)
at playback.c:266
#5 0x0000000000416c94 in playback_stop () at playback.c:285
#6 0x0000000000417e85 in playlist_set_playing (
playlist_num=<value optimized out>) at playlist-new.c:683
#7 0x00007f24d3c9978b in ui_skinned_playlist_button_press
(widget=0x227e6d0,
event=<value optimized out>) at ui_skinned_playlist.c:1049
#8 0x00007f24eff0fc78 in _gtk_marshal_BOOLEAN__BOXED (closure=0x2240250,
return_value=0x7fff8661c290, n_param_values=<value optimized out>,
param_values=0x25a5040, invocation_hint=<value optimized out>,
marshal_data=0x7f24d3c99670)
at /scratch/build-area/gtk+2.0-2.20.1/gtk/gtkmarshalers.c:84
#9 0x00007f24ee14b12e in g_closure_invoke (closure=0x2240250,
return_value=0x7fff8661c290, n_param_values=2, param_values=0x25a5040,
invocation_hint=0x7fff8661c250) at
/glib2.0-2.25.15/gobject/gclosure.c:766
#10 0x00007f24ee163372 in signal_emit_unlocked_R (node=0x22405a0,
detail=<value optimized out>, instance=<value optimized out>,
emission_return=<value optimized out>,
instance_and_params=<value optimized out>)
at /glib2.0-2.25.15/gobject/gsignal.c:3290
#11 0x00007f24ee164cfc in g_signal_emit_valist (instance=0x227e6d0,
signal_id=<value optimized out>, detail=0, var_args=0x7fff8661c440)
at /glib2.0-2.25.15/gobject/gsignal.c:2993
#12 0x00007f24ee1656e3 in g_signal_emit (instance=0x7f24c93099e0,
signal_id=0,
detail=12368) at /glib2.0-2.25.15/gobject/gsignal.c:3040
#13 0x00007f24f0025f7f in gtk_widget_event_internal (widget=0x227e6d0,
event=0x7f24bc065d00)
at /scratch/build-area/gtk+2.0-2.20.1/gtk/gtkwidget.c:4943
#14 0x00007f24eff08163 in IA__gtk_propagate_event (widget=0x227e6d0,
event=0x7f24bc065d00)
at /scratch/build-area/gtk+2.0-2.20.1/gtk/gtkmain.c:2442
#15 0x00007f24eff0921b in IA__gtk_main_do_event (event=0x7f24bc065d00)
at /scratch/build-area/gtk+2.0-2.20.1/gtk/gtkmain.c:1647
#16 0x00007f24efb7d3cc in gdk_event_dispatch (source=<value optimized out>,
callback=<value optimized out>, user_data=<value optimized out>)
at /scratch/build-area/gtk+2.0-2.20.1/gdk/x11/gdkevents-x11.c:2372
#17 0x00007f24f083ed62 in g_main_dispatch (context=0x2134760)
at /glib2.0-2.25.15/glib/gmain.c:2119
#18 g_main_context_dispatch (context=0x2134760)
at /glib2.0-2.25.15/glib/gmain.c:2672
#19 0x00007f24f0842cb8 in g_main_context_iterate (context=0x2134760,
block=<value optimized out>, dispatch=<value optimized out>,
self=<value optimized out>) at /glib2.0-2.25.15/glib/gmain.c:2750
#20 0x00007f24f08431c5 in g_main_loop_run (loop=0x2336f80)
at /glib2.0-2.25.15/glib/gmain.c:2958
#21 0x00007f24eff096b7 in IA__gtk_main ()
at /scratch/build-area/gtk+2.0-2.20.1/gtk/gtkmain.c:1219
---Type <return> to continue, or q <return> to quit---
#22 0x00007f24d3c835aa in skins_init (cbs=0x686bc0) at plugin.c:142
#23 0x0000000000414c02 in main (argc=1, argv=0x7fff8661c908) at main.c:554
(gdb) info threads
5 Thread 0x7f24e869b710 (LWP 7817) do_sigwait (set=0x687100,
sig=0x7f24e869adcc)
at
../nptl/sysdeps/unix/sysv/linux/../../../../../sysdeps/unix/sysv/linux/sigwait.c:65
4 Thread 0x7f24cb7de710 (LWP 7822) pthread_cond_wait@@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
3 Thread 0x7f24c9b0a710 (LWP 12365) pthread_cond_wait@@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
2 Thread 0x7f24c9309710 (LWP 12368) 0x00007f24ed20a113 in __poll (
fds=<value optimized out>, nfds=<value optimized out>, timeout=-1)
at ../sysdeps/unix/sysv/linux/poll.c:87
* 1 Thread 0x7f24f12d57e0 (LWP 7816) 0x00007f24ed8bfbe5 in pthread_join (
threadid=139795970955024, thread_return=0x7fff8661bff8)
at pthread_join.c:89
(gdb) p/x threadid
$2 = 0x7f24c9309710
(gdb) thread 2
[Switching to thread 2 (Thread 0x7f24c9309710 (LWP 12368))]#0
0x00007f24ed20a113 in __poll (fds=<value optimized out>, nfds=<value
optimized out>, timeout=-1)
at ../sysdeps/unix/sysv/linux/poll.c:87
87 ../sysdeps/unix/sysv/linux/poll.c: No such file or directory.
in ../sysdeps/unix/sysv/linux/poll.c
(gdb) backtrace
#0 0x00007f24ed20a113 in __poll (fds=<value optimized out>,
nfds=<value optimized out>, timeout=-1)
at ../sysdeps/unix/sysv/linux/poll.c:87
#1 0x00007f24d68225ea in ?? () from /usr/lib/libasound.so.2
#2 0x00007f24d68535a5 in ?? () from /usr/lib/libasound.so.2
#3 0x00007f24d683a90b in ?? () from /usr/lib/libasound.so.2
#4 0x00007f24d63a02cc in alsa_drain () at alsa.c:354
#5 0x0000000000415daf in output_open_audio (format=FMT_FLOAT, rate=44100,
channels=2) at output.c:163
#6 0x00007f24da123b98 in decode_loop (arg=<value optimized out>)
at decoder.c:302
#7 0x00007f24da125608 in audmad_play_file (playback=0x2489020) at
plugin.c:502
#8 0x00000000004168f7 in playback_monitor_thread (data=<value optimized
out>)
at playback.c:385
#9 0x00007f24f0868254 in g_thread_create_proxy (data=0x262fe00)
at /glib2.0-2.25.15/glib/gthread.c:1897
#10 0x00007f24ed8be8ba in start_thread (arg=<value optimized out>)
at pthread_create.c:300
#11 0x00007f24ed21502d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()
(gdb)
More information about the Pkg-audacious-maintainers
mailing list