Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348571 - media-libs/mesa: eselect'ing mesa (7.9-r1) r600g (6.13.2) results in memory leak and then oom to kill KDE (4.5.4)
Summary: media-libs/mesa: eselect'ing mesa (7.9-r1) r600g (6.13.2) results in memory l...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High minor
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: InOverlay
Depends on:
Blocks:
 
Reported: 2010-12-12 23:36 UTC by Yan-Fa Li
Modified: 2011-01-12 20:41 UTC (History)
0 users

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 Yan-Fa Li 2010-12-12 23:36:29 UTC
If I select mesa r600g and login to KDE desktop, memory starts being consumed and then the OOM kicks in and kills part of  the desktop (kwin).  If I revert back to classic then all is well again.  Not sure what gentoo can do about this other than report it upstream.

Reproducible: Always

Steps to Reproduce:
1. enable mesa gallium r600
2. login to KDE 4.5.4 desktop
3. run top and watch memory start to get eaten

Actual Results:  
OOM starts and kills the offending process.  Kwin.

Expected Results:  
Shouldn't leak.

Portage 2.1.9.25 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r5-x86_64-AMD_Athlon-tm-_II_X4_630_Processor-with-gentoo-1.12.14
Timestamp of tree: Sun, 12 Dec 2010 22:15:03 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 1.3.7-r1, 2.1.11-r1
dev-lang/python:     2.4.6, 2.5.4-r4, 2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ "
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11"
SYNC="rsync://horus/gentoo-portage"
USE="X a52 aac aalib acl alsa amd64 berkdb bzip2 cddax cddb cdio cdparanoia cdr cli consolekit cracklib crypt css cups curl cxx dbus dirac djbfft dri dts dv dvd dvdr dvdread embedded encode extraengine extras ffmpeg flac fortran fts3 gallium gdbm gif glib glitz gnome gnutls gpm gsm gtk hardcoded-tables hfs iconv id3tag ieee1394 ipv6 java jce jpeg kde kdehiddenvisibility kvm-trace lame lcms logrotate lzo mad matroska md5sum mjpeg mmx mmxext mng modules mp3 mpeg msn mudflap multilib mysql ncurses nls nptl nptlonly nsplugin ogg opengl otr pam pcre perl png policykit postgres pppd python qemu-ifup qt3 qt3support qt4 quicktime rar readline redland rtc samba schroedinger sdl secure-delete semantic-desktop session sql sqlite sqlite3 sse sse2 ssl ssse3 startup-notification svg sysfs taglib tcpd theora threads tiff truetype unicode v4l2 vcd vcdinfo vde vorbis webkit wxwidgets x264 xcomposite xext xinerama xorg xscreensaver xv xvid xvmc yahoo yv12 zlib zvbi" 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" SANE_BACKENDS="pixma" USERLAND="GNU" VIDEO_CARDS="radeon nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-12-12 23:54:13 UTC
r600g in mesa-7.9 is not working well yet. That is why classic is default. If you want to use gallium, you can try mesa-9999.ebuild from the x11 overlay. That should work better.
Comment 2 Yan-Fa Li 2010-12-13 00:22:39 UTC
I would love to but due to upstream breakage in libx11 I can't build qt or xul and kde :(
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-12-13 08:24:55 UTC
(In reply to comment #2)
> I would love to but due to upstream breakage in libx11 I can't build qt or xul
> and kde :(

Are you sure about that? Did you try the fresh version? I don't remember any trouble building Qt, and the xulrunner-related trouble comes from its poor code only :P.
Comment 4 Yan-Fa Li 2010-12-13 08:30:55 UTC
Bug 347603 has a link to the discussion at fd.org, someone decided to change a library interface post 1.4 release that is embedded in a lot of libraries like QT.  I had mesa 9999 on my system up until yesterday when I discovered the thread, because I couldn't build kde 4.5.4.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-12-13 10:39:09 UTC
For mesa-9999, using libX11-1.4.0 from portage will satisfy the dependencies.
Comment 6 Yan-Fa Li 2010-12-14 06:09:04 UTC
Thanks, this kind of worked, but now eselect-mesa is messed up.  It doesn't run at first claiming it's missing a file /usr/share/mesa/eselect-mesa.conf.  I've tried removing it and reinstalling it but it doesn't seem to fix itself.
Comment 7 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-12-14 09:24:01 UTC
This means that you are using an old mesa-9999.ebuild, most likely your x11 overlay is stale.
Comment 8 Yan-Fa Li 2010-12-18 22:21:53 UTC
(In reply to comment #5)
> For mesa-9999, using libX11-1.4.0 from portage will satisfy the dependencies.
> 
Sorry, when I try to emerge I get this :(

x11-libs/libX11:0

  (x11-libs/libX11-1.4.0, ebuild scheduled for merge) conflicts with
    x11-libs/libX11[xcb] required by (media-libs/mesa-9999, installed)

Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-01-12 00:20:16 UTC
Reporter: Please try again with mesa-7.10.
Comment 10 Rémi Cardona (RETIRED) gentoo-dev 2011-01-12 20:41:40 UTC
Please get back to us.

Thanks