Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78167 - Memory leak in MPlayer when playing back DVDs
Summary: Memory leak in MPlayer when playing back DVDs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Chris White (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-15 20:20 UTC by Todor Zviskov
Modified: 2005-03-15 22:36 UTC (History)
2 users (show)

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


Attachments
Alsa mixer memleak patch (mixer-memleak-fix.patch,465 bytes, patch)
2005-02-06 19:20 UTC, Todor Zviskov
Details | Diff
Suggested ebuild to supplement the patch. (alsa-lib-1.0.8-r1.ebuild,1.54 KB, text/plain)
2005-02-06 19:21 UTC, Todor Zviskov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Todor Zviskov 2005-01-15 20:20:26 UTC
There seems to be a huge memory leak in Mplayer 1.0_pre6 (might exist in previous versions as well) when playing back DVDs. This happened two times with two different DVDs. The first time I couldn't identify the issue because the system almost froze (with 20+ loads) and I had to kill the process (thought a bad DVD triggered something). I just watched another DVD and was about to close the player when I saw everything was lagging and both memory (1GB total) and swap were maxed out. The second I closed MPlayer everything went back to normal.

Reproducible: Always
Steps to Reproduce:
1. USE="dvd" emerge mplayer 
2. play back a DVD in mplayer


Actual Results:  
memory and swap will all be used up at some point

Expected Results:  
don't use up all memory and swap

Portage 2.0.51-r12 (default-linux/x86/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.10-LNX i686)
=================================================================
System uname: 2.6.10-LNX i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jul 30 2004, 00:33:37)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -mfpmath=sse -msse2 -mmmx -O3 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -mfpmath=sse -msse2 -mmmx -O3 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/bmg-main"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="X aalib alsa apm arts avi berkdb bitmap-fonts bonobo breakme cdr crypt cups
divx4linux dvb dvd dvdread encode esd f77 fam flac font-server foomaticdb
fortran gdbm gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal
imagemagick imlib ipv6 jack java jpeg kde ldap libg++ libwww lirc lzw-tiff mad
mikmod mmx motif mozilla mpeg ncurses nls nptl nptlonly nvidia oggvorbis opengl
oss pam pdflib perl png ppds python quicktime readline real samba scanner sdl
slang spell sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts usb
v4l v4l2 winbind wmf x86 xml xml2 xmms xorg xorg-x11 xv xvid zlib"
Unset:  LDFLAGS
Comment 1 Chris White (RETIRED) gentoo-dev 2005-01-29 23:39:09 UTC
Just to make sure, does this happen with local mplayer builds?
Comment 2 Todor Zviskov 2005-01-30 08:30:10 UTC
@2: What exacltly do you mean by that?
Comment 3 Chris White (RETIRED) gentoo-dev 2005-02-05 22:55:07 UTC
I mean that if you compile the cvs mplayer source, does this issue occur?  By knowing that, I can tell whether this is a Gentoo issue or not.
Comment 4 Reimar Döffinger 2005-02-06 13:58:26 UTC
Maybe this is http://bugzilla.mplayerhq.hu/show_bug.cgi?id=198 ?
Comment 5 Todor Zviskov 2005-02-06 17:12:00 UTC
Sounds exactly like it as I used gmplayer and I do use alsa... Looks like the alsa patch (http://sourceforge.net/mailarchive/message.php?msg_id=10552053) didn't make it in portage yet. I'll try with that alsa patch and see if the problem still exists. If that fixes it maybe open an alsa bug?
Comment 6 Todor Zviskov 2005-02-06 19:20:30 UTC
Created attachment 50594 [details, diff]
Alsa mixer memleak patch

This is the alsa patch from
http://sourceforge.net/mailarchive/message.php?msg_id=10552053 It seems to fix
the memleak that gmplayer+alsa is experiencing.
Comment 7 Todor Zviskov 2005-02-06 19:21:38 UTC
Created attachment 50595 [details]
Suggested ebuild to supplement the patch.
Comment 8 Chris White (RETIRED) gentoo-dev 2005-02-25 14:13:24 UTC
wow.. that's a sad one liner.  I'll have a look at this today.
Comment 9 Chris White (RETIRED) gentoo-dev 2005-03-15 22:36:36 UTC
Annnnnnnd a couple of weeks later (ouch..).  The one line is now in portage.  Thanks for posting.  CC-ing rest of the sound herd so they have documentation about the bug.