Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145240 - media-sound/audacious-1.1.2 deadlocks
Summary: media-sound/audacious-1.1.2 deadlocks
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-27 03:06 UTC by Mike Lundy
Modified: 2006-09-20 06:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Lundy 2006-08-27 03:06:28 UTC
Repeatable audacious deadlock. Z0MG information overload:

1) Start audacious, and start playing a song
2) use audacious -e to enqueue a few more songs
3) UI thread freezes, music thread plays until completion
4) audacious process running -e /also/ hangs

Backtraces:
--------------------------------------------------
First, the backtraces for the audacious process that was already running (sorry for the size. I've trimmed out a thread that was completely useless (all ??'s). Also, thread #1 is the one that gdb decided was the current context)
--------------------------------------------------
Thread 7 (Thread 997657504 (LWP 6282)):
#0  0xffffe410 in ?? ()
#1  0x3b770368 in ?? ()
#2  0x00000008 in ?? ()
#3  0x3b770390 in ?? ()
#4  0x4129ea4b in __read_nocancel () from /lib/libpthread.so.0
#5  0x3ab319eb in remote_read_packet (fd=24, pkt_hdr=0x3b770390)
    at beepctrl.c:47
#6  0x3ab31e3c in remote_get_gint (session=0, cmd=7) at beepctrl.c:182
#7  0x3ab32564 in xmms_remote_get_playlist_pos (session=0) at beepctrl.c:386
#8  0x3b4f3284 in get_song_status () at xmms_scrobbler.c:169
#9  0x3b4f3909 in xs_thread (data=0x81f3f30) at xmms_scrobbler.c:381
#10 0x4150a0f5 in g_thread_create_full () from /usr/lib/libglib-2.0.so.0
#11 0x41299167 in start_thread () from /lib/libpthread.so.0
#12 0x410f0b6e in clone () from /lib/libc.so.6

Thread 6 (Thread 999758752 (LWP 6283)):
#0  0xffffe410 in ?? ()
#1  0x3b971418 in ?? ()
#2  0x415511dc in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x3b9713fc in ?? ()
#4  0x4129f216 in __nanosleep_nocancel () from /lib/libpthread.so.0
#5  0x4150be8d in g_usleep () from /usr/lib/libglib-2.0.so.0
#6  0x3b4f3ac5 in hs_thread (data=0x81f3f30) at xmms_scrobbler.c:431
#7  0x4150a0f5 in g_thread_create_full () from /usr/lib/libglib-2.0.so.0
#8  0x41299167 in start_thread () from /lib/libpthread.so.0
#9  0x410f0b6e in clone () from /lib/libc.so.6

Thread 5 (Thread 1002539936 (LWP 6284)):
#0  0xffffe410 in ?? ()
#1  0x3bc183b8 in ?? ()
#2  0x415511dc in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x3bc1839c in ?? ()
#4  0x4129f216 in __nanosleep_nocancel () from /lib/libpthread.so.0
#5  0x4150be8d in g_usleep () from /usr/lib/libglib-2.0.so.0
#6  0x08069497 in playlist_get_info_func (arg=0x0) at playlist.c:2324
#7  0x4150a0f5 in g_thread_create_full () from /usr/lib/libglib-2.0.so.0
#8  0x41299167 in start_thread () from /lib/libpthread.so.0
#9  0x410f0b6e in clone () from /lib/libc.so.6

Thread 4 (Thread 1002806176 (LWP 6293)):
#0  0xffffe410 in ?? ()
#1  0x3bc59398 in ?? ()
#2  0xffffffff in ?? ()
#3  0x00000005 in ?? ()
#4  0x410e8528 in poll () from /lib/libc.so.6
#5  0x414f0c1f in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#6  0x414f0f8e in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#7  0x4fab64f5 in link_set_io_thread () from /usr/lib/libORBit-2.so.0
#8  0x4150a0f5 in g_thread_create_full () from /usr/lib/libglib-2.0.so.0
#9  0x41299167 in start_thread () from /lib/libpthread.so.0
#10 0x410f0b6e in clone () from /lib/libc.so.6

Thread 3 (Thread 1006635936 (LWP 6294)):
#0  0xffffe410 in ?? ()
#1  0x3bfff328 in ?? ()
#2  0x415511dc in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x3bfff30c in ?? ()
#4  0x4129f216 in __nanosleep_nocancel () from /lib/libpthread.so.0
#5  0x4150be8d in g_usleep () from /usr/lib/libglib-2.0.so.0
#6  0x0805ea2f in produce_audio (time=18290, fmt=FMT_S16_NE, nch=2,
    length=4096, ptr=0x3bfff3a8, going=0x3b05fc20) at output.c:401
#7  0x3b058161 in vorbis_process_data (last_section=0, use_rg=1,
    rg_scale=0.380189389) at vorbis.c:351
#8  0x3b0584e8 in vorbis_play_loop (arg=0x80e9f28) at vorbis.c:453
#9  0x4150a0f5 in g_thread_create_full () from /usr/lib/libglib-2.0.so.0
#10 0x41299167 in start_thread () from /lib/libpthread.so.0
#11 0x410f0b6e in clone () from /lib/libc.so.6

Thread 2 (Thread 1008737184 (LWP 6295)):
#0  0xffffe410 in ?? ()
#1  0x3c2013b8 in ?? ()
#2  0x0000000a in ?? ()
#3  0x00000001 in ?? ()
#4  0x410e8528 in poll () from /lib/libc.so.6
#5  0x3af70fab in alsa_loop (arg=0x0) at audio.c:824
#6  0x4150a0f5 in g_thread_create_full () from /usr/lib/libglib-2.0.so.0
#7  0x41299167 in start_thread () from /lib/libpthread.so.0
#8  0x410f0b6e in clone () from /lib/libc.so.6

Thread 1 (Thread 984874336 (LWP 6280)):
#0  0xffffe410 in ?? ()
#1  0xafc4aab8 in ?? ()
#2  0x00000008 in ?? ()
#3  0xafc4aae0 in ?? ()
#4  0x4129ea4b in __read_nocancel () from /lib/libpthread.so.0
#5  0x3ab319eb in remote_read_packet (fd=23, pkt_hdr=0xafc4aae0)
    at beepctrl.c:47
#6  0x3ab31d92 in remote_get_gboolean (session=0, cmd=5) at beepctrl.c:161
#7  0x3ab3252e in xmms_remote_is_playing (session=0) at beepctrl.c:374
#8  0x3b500ca7 in timeout_func (data=0x0) at song_change.c:453
#9  0x414ee3d0 in g_source_get_current_time () from /usr/lib/libglib-2.0.so.0
#10 0x414ede68 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#11 0x414f0beb in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#12 0x414f0f8e in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#13 0x418b551c in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#14 0x08078777 in main (argc=1, argv=0xafc4ad94) at main.c:1136
#0  0xffffe410 in ?? ()
Comment 1 Mike Lundy 2006-08-27 03:06:57 UTC
===================================================================
Okay, now for the audacious -e process
===================================================================

Thread 1 (Thread 984874336 (LWP 6297)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0x4129ea23 in __read_nocancel () from /lib/libpthread.so.0
#2  0x3ab319eb in remote_read_packet (fd=14, pkt_hdr=0xaf86d368)
    at beepctrl.c:47
#3  0x3ab31a6e in remote_read_ack (fd=14) at beepctrl.c:67
#4  0x3ab322f7 in xmms_remote_playlist (session=0, list=0x80ecf90, num=7,
    enqueue=1) at beepctrl.c:298
#5  0x3ab32476 in xmms_remote_playlist_add (session=0, list=0x80e68a0)
    at beepctrl.c:337
#6  0x08078120 in handle_cmd_line_options (options=0x80c54a0, remote=1)
    at main.c:880
#7  0x08078576 in main (argc=9, argv=0xaf86d504) at main.c:1048

#######################################################

Portage 2.1.1_rc1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 3.40GHz
Gentoo Base System version 1.12.4
Last Sync: Sat, 26 Aug 2006 08:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo"
LC_ALL="en_US.utf8"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/opt/overlay/mine /opt/overlay/lu_zero"
SYNC="rsync://nfs/gentoo-portage"
USE="x86 S3TC X a52 aac acpi acpi4linux adns alsa amazon aotuv apache apache1 ared aredmem asf audiofile avi bcp berkdb bitmap-fonts bjam browserplugin bzip2 cairo calendar cap cddb cdparanoia cdr cg cli crypt crypto cups curl dbus dga djbfft dlloader dmi dri dts dv dvd dvdr dvdread edl elibc_glibc emboss encode exif exim exo extensions faac faad fam ffmpeg fftw firefox fla flac foomaticdb freetype gb gd gdbm gif gimp ginac glade glgd glitz glut gmp gnome gnomedb gphoto2 graphviz gstreamer gtk gtk2 gtkhtml hal hou imagemagick imap imlib imlib2 innodb input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog javascript jikes jpeg junit kde kdeenablefinal kdehiddenvisibility kernel_linux kqemu latex lcms lesstif libg++ libgda libnotify libwww linguas_en live logitech-mouse logrotate lua mad maildir matroska mikmod mime mmx mng modperl modplug mozcalendar mozdomi mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg mpeg4 mplayer musepack music mysql ncurses nethack network nocardbus nocd nodrm nowin nptl nptlonly nsplugin nvidia objc offensive ogg ooo-kde openal opengl oss pam panel-plugin pcap pcre pda pdf pdflib perl physfs pic plotutils png posix povray ppds pppd print python qhull qt3 quicktime quotes rar readline real reflection rtc ruby samba sdk sdl session sid silc slp sockets sou spell spl sqlite sqlite3 sse sse2 ssl startup-notification stream stroke subtitles svg tcltk tcpd tetex theora thumbnail thunar-vfs tidy tiff truetype truetype-fonts type1-fonts udev ungif unicode usb userland_GNU userlocales v4l2 vhosts video_cards_nvidia videos vim-pager vim-with-x vorbis win32codecs wma x264 xine xinerama xinetd xml xml2 xorg xosd xrandr xscreensaver xslt xv xvid zeroconf zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Tony Vroon (RETIRED) gentoo-dev 2006-09-13 04:57:59 UTC
Could you see if 1.1.2-r1 has any affect on the issue? If not, does an SVN build exhibit the issue, still?
Please use ./configure --prefix=/usr on SVN, or let me know if you want an unsupported ebuild attached to the bug.
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2006-09-20 06:56:52 UTC
I need to know whether that helped or not. Please be sure to test 1.2.0 RC1 if 1.1.2-r1 does not help.