Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203430 - media-video/mplayer-1.0_rc2_p24929 "-ao pulse" sometimes hangs/crashes
Summary: media-video/mplayer-1.0_rc2_p24929 "-ao pulse" sometimes hangs/crashes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-27 09:32 UTC by Mark Glines
Modified: 2008-01-05 05:50 UTC (History)
0 users

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


Attachments
mplayer-pulse.patch (mplayer-pulse.patch,1.19 KB, patch)
2008-01-05 00:46 UTC, Mark Glines
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Glines 2007-12-27 09:32:42 UTC
mplayer 1.0_rc2_p24929 sometimes crashes in mysterious ways, and sometimes just hangs, when using the "pulse" output driver.

Apparently mplayer is calling the libpulse API without holding a necessary lock.  Here is what the pulse guys have to say about this: http://www.pulseaudio.org/ticket/166

It looks like the mplayer guys checked in a similar patch for this on 2007-12-15, svn r25414.  Perhaps a simple package update will fix this.

It doesn't happen very often and is unpredictable, but it happens a few times a day during heavy use.  Since it is locking-related, an SMP machine might be required to reproduce this... running on a dual core processor here.  Both I and the reporter of the pulse trac ticket (above) are running on amd64, but I don't believe this is an amd64-specific issue.

Reproducible: difficult, random
Step 1: find a 2 hour avi file or dvd or something, fire up mplayer -ao pulse
Step 2: wait and hope it crashes (crashes about once per 4-6 hours of use, here)


Portage 2.1.4_rc11 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.23.8 x86_64)
=================================================================
System uname: 2.6.23.8 x86_64 Intel(R) Core(TM)2 Duo CPU T7100 @ 1.80GHz
Timestamp of tree: Wed, 26 Dec 2007 07:00:04 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python:     2.4.3-r4, 2.5.1-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-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/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j4"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-overlay/layman/catalystframework /usr/local/portage-overlay/layman/gentoo-de /usr/local/portage-overlay/layman/zugaina /usr/local/portage-overlay/layman/sunrise /usr/local/portage-overlay/layman/philantrop"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi adns agg aio akode alsa amd64 amr ansi aotuv apache2 arts atlas avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cdda cddb cdinstall cdio cdparanoia clamav cli cpanplus cpudetection cracklib crypt cups curl dbus dga divx4linux dri dts dv dvb dvd dvdnav dvdread effects emerald enca encode esd ethereal exif exscalibar fbcon fbdev ffmpeg fftw firefox flac flash foomaticdb fortran gcc4 gdbm gif gimp glib glitz glut gnome gphoto2 gpm gps gstreamer gtk gtk2 gvim hal hou hpn httpd iconv id3 id3tag ifp imap ipod ipv6 ipw4965 isdnlog ithreads jpeg jpeg2k kerberos kqemu kvm lame libcaca libgda libsamplerate lirc live lzo mad madwifi matroska md5sum midi mikmod mjpeg mmx mmxext mng mod modperl modplug mono mozdevelop mozilla moznoirc mozsvg mp2 mp3 mp3id3 mp4 mpeg mplayer mpm-worker mtp mudflap musepack musicbrainz nativecode ncurses netjack network nfsv4 normalize nptl nptlonly offensive ofx ogg oggvorbis openal opengl openmp pam pcmcia pcre pdf perl plugins png pnm pnp ppds pppd pulseaudio python qemu quicktime quotes readline reflection rsync rtc rtp rtsp ruby samba scanner scim sdl server session shout skins slp sndfile sockets sou spamassassin speex spell spl sqlite sqlite3 srt sse sse2 ssl startup-notification stream subtitles svg tcltk tcpd theora threads tiff tordns truetype truetype-fonts type1-fonts uim unicode upnp usb v4l v4l2 vcd vdr vhosts vorbis vorbis-psy wavpack x264 xanim xcomposite xine xinerama xml xml2 xorg xpm xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mark Glines 2008-01-05 00:46:27 UTC
Created attachment 140146 [details, diff]
mplayer-pulse.patch

use pulseaudio && epatch "${FILESDIR}/${PN}-pulse.patch"

This patch makes mplayer work reliably for me.  It is the patch attached to the pulseaudio ticket, reissued to remove some line numbering fuzz.
Comment 2 Steve Dibb (RETIRED) gentoo-dev 2008-01-05 05:50:23 UTC
Fixed in CVS, thanks Mark