Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45624 - MPlayer 1.0pre3-3.3.2 cause memory to be filled RAPIDLY and eventually hangs the system
Summary: MPlayer 1.0pre3-3.3.2 cause memory to be filled RAPIDLY and eventually hangs ...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-24 11:00 UTC by Nexu
Modified: 2004-08-09 23:36 UTC (History)
3 users (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 Nexu 2004-03-24 11:00:05 UTC
Playing a DVD with MPlayer 1.0pre3-3.3.2 running on XFree86 Version 4.3.99.902 (4.4.0 RC 2) under kernel 2.6.4-mm1 with ATI fglrx drivers 3.7.1 cause memory to be filled and eventually that the system "locks up".

Example of memory usage during playing a DVD playback with the command gmplayer:

(Memory usage and state before)
Wed Mar 24 19:15:23 CET 2004
             total       used       free     shared    buffers     cached
Mem:        256816     125124     131692          0       6148      50860
-/+ buffers/cache:      68116     188700
Swap:       506008       5968     500040

[nexu@epyon:~]$ date ; free; ps wux | head -n 1; ps wux | grep -i mplayer | grep -v grep
Wed Mar 24 19:15:44 CET 2004
             total       used       free     shared    buffers     cached
Mem:        256816     180532      76284          0      15296      69632
-/+ buffers/cache:      95604     161212
Swap:       506008       5784     500224
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
nexu      6483 94.5 13.7 220944 35236 tty2   SL   19:15   0:03 /usr/bin/gmplayer
nexu      6485  0.0  8.7 45248 22552 tty2    S    19:15   0:00 /usr/bin/gmplayer

Wed Mar 24 19:16:06 CET 2004
             total       used       free     shared    buffers     cached
Mem:        256816     208876      47940          0      37196      69640
-/+ buffers/cache:     102040     154776
Swap:       506008       5784     500224
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
nexu      6483 75.4 18.0 226856 46304 tty2   SL   19:15   0:19 /usr/bin/gmplayer
nexu      6485  0.2  8.7 45248 22560 tty2    S    19:15   0:00 /usr/bin/gmplayer

Wed Mar 24 19:21:54 CET 2004
             total       used       free     shared    buffers     cached
Mem:        256816     253936       2880          0      21152      43132
-/+ buffers/cache:     189652      67164
Swap:       506008       9328     496680
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
nexu      6483 73.6 52.2 318344 134288 tty2  SL   19:15   4:36 /usr/bin/gmplayer
nexu      6485  0.2  8.7 45248 22404 tty2    S    19:15   0:00 /usr/bin/gmplayer

Wed Mar 24 19:26:02 CET 2004
             total       used       free     shared    buffers     cached
Mem:        256816     254104       2712          0      28688      28152
-/+ buffers/cache:     197264      59552
Swap:       506008      67780     438228
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
nexu      6483 73.8 61.4 383436 157892 tty2  SL   19:15   7:40 /usr/bin/gmplayer
nexu      6485  0.2  7.6 45248 19748 tty2    S    19:15   0:01 /usr/bin/gmplayer

Wed Mar 24 19:31:55 CET 2004
             total       used       free     shared    buffers     cached
Mem:        256816     254392       2424          0      30152      22488
-/+ buffers/cache:     201752      55064
Swap:       506008     156516     349492
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
nexu      6483 73.9 68.3 476132 175500 tty2  SL   19:15  12:01 /usr/bin/gmplayer
nexu      6485  0.2  6.1 45248 15788 tty2    S    19:15   0:02 /usr/bin/gmplayer

A note that should be said is that i am using -vo gl2 option to play video as Xv cause mplayer to crash.

(Memory usage and state after gmplayer is stopped)
Wed Mar 24 19:32:05 CET 2004
             total       used       free     shared    buffers     cached
Mem:        256816      66480     190336          0       2736      20860
-/+ buffers/cache:      42884     213932
Swap:       506008      38064     467944


Reproducible: Always
Steps to Reproduce:
1. run gmplayer
2. play a dvd
3. leave the dvd playing for a while (30 minutes or more depending on the amount of memory resource available)

Actual Results:  
Memory usage increases and depending on the amount of actual RAM and swap size
configured, the system will lock up (read: unusable and very very very very
slow. Killing the job takes a long time and rebooting is a much faster
alternative) if mplayer is still running before the memory resource is utilized
to it's maximum.

Expected Results:  
Mplayer should not increase memory usage in this manner

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0,
2.6.4-mm1)
=================================================================
System uname: 2.6.4-mm1 i686 AMD Athlon(TM) XP2400+
Gentoo Base System version 1.4.3.13p1
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=athlon-xp -pipe -funroll-loops"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=athlon-xp -pipe -funroll-loops"
DISTDIR="/home/portage/distfiles"
FEATURES="ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo
http://212.219.247.10/sites/www .ibiblio.org/gentoo http://gentoo.inode.at/"
MAKEOPTS="-j2"
PKGDIR="/home/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi alsa apm arts avi berkdb bonobo cdr crypt cups dedicated
directfb dvd encode esd evo fbcon foomaticdb gdbm gif gnome gpm gstreamer gtk
gtk2 imlib ipv6 java joystick jpeg kde ldap libg++ libwww mad mikmod mmx motif
mozilla mpeg ncurses nls odbc oggvorbis opengl oss pam pdflib perl png python qt
quicktime readline samba scanner sdl slang spell sse ssl tcltk tcpd tiff
truetype usb video_cards_radeon videos x86 xinerama xml2 xmms xosd xv zlib"
Comment 1 Nexu 2004-03-24 11:30:52 UTC
ATI fglrx 3.7.6 drivers i mean....typo :-|
Comment 2 Chris White (RETIRED) gentoo-dev 2004-06-28 11:14:02 UTC
Can you confirm this bug exists in mplayer-1.0_pre4-r4?
Comment 3 Chris White (RETIRED) gentoo-dev 2004-08-09 23:36:17 UTC
Please confirm this.  Update version to pre5 or pre4-r7.

Re-assigning to myself (maintainer) as I'm not sure why xfree needs
assignment.