Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 313179 - x11-base/xorg-server-1.7.6: memory leak and eventual crash requiring SIGKILL to terminate
Summary: x11-base/xorg-server-1.7.6: memory leak and eventual crash requiring SIGKILL ...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High critical with 1 vote (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-05 05:25 UTC by Bryan Ward
Modified: 2012-07-14 20:49 UTC (History)
4 users (show)

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


Attachments
nvidia-bug-report.sh (nvidia-bug-report.log,349.45 KB, text/plain)
2010-04-06 03:00 UTC, Bryan Ward
Details
output of emerge -pve xorg-server x11-drivers/xf86-video-intel (jpr-emerge-pve-xorg-server.txt,41.27 KB, text/plain)
2010-04-09 17:42 UTC, Jean-Philippe Robichaud
Details
Nvidia from ssh during hang (nvidia-bug-report.log.during-hang.gz,33.19 KB, application/octet-stream)
2010-08-03 17:29 UTC, gentoo
Details
Nvidia bug before crash (nvidia-bug-report.log.gz,32.89 KB, application/octet-stream)
2010-08-03 17:30 UTC, gentoo
Details
cave resolve from my xorg (cave.resolve,794.07 KB, text/plain)
2010-08-03 17:31 UTC, gentoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bryan Ward 2010-04-05 05:25:20 UTC
The X server crashes and the mouse jumps between two of my three monitors and renders the system completely unresponsive.  Slightly prior to the actual crash, the process resource utilisation increases dramatically with the X server using sometimes on the order of gigabytes of memory.  Restarting gdm fails and the X server must be kill with SIGKILL.  I have had this problem on and off with many of the 1.7 series xorg-server packages.  I am using the nvidia-drivers on a 2.6.30.5 kernel.  I also use two nvidia graphics cards to power my three monitors, and I wonder if this is a bug associated with such a setup.

Reproducible: Couldn't Reproduce

Steps to Reproduce:
This has happened to me a few times with the 1.7 series of the X server, it seems to happen after running for 2 to 4 weeks.  Otherwise I have no way to reproduce this bug.
Actual Results:  
The mouse starts to jump back and forth between two of my three monitors (it has done it on the border between 1 & 2 and 2 & 3) about 1 inch from either border.  Logging in via an SSH session, restarting gdm fails and I must use kill -9 on the X process.

Expected Results:  
X should not have crashed.

I have two nvidia video cards powering 3 monitors.

Portage 2.1.7.17 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11-r1, 2.6.30.5 x86_64)
=================================================================
System uname: Linux-2.6.30.5-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-1.12.13
Timestamp of tree: Sun, 04 Apr 2010 08:15:02 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 1.3.7-r1, 2.1.10
dev-lang/python:     2.6.5-r1, 3.1.2-r1
dev-python/pycrypto: 2.1.0_beta1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.3
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j3"
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="/usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac accessibility acl acpi alsa amd64 apache2 automount bash-completion berkdb branding bsf bzip2 cairo cddb cdparanoia cdr cgi cjk cli cracklib crypt cuda cups curl cxx dbus djvu doc dri dvd dvdr dvi encode esd exif fastcgi ffmpeg fftw firefox flac foomaticdb fuse gdbm gdm gif gimp git glitz gmp gnome gpm graphviz gstreamer gtk hal iconv imagemagick ipod jabber jack java java6 javascript jpeg jpeg2k kpathsea latex ldap libsamplerate lirc mad mmx modules mp3 mp4 mpeg mplayer mudflap multilib mysql mythtv ncurses netbeans nls nptl nptlonly nsplugin nvidia odbc offensive ogg opencl opengl openmp pam pcre pdf perl php plasma png postgres pppd python python3 quicktime readline reflection ruby samba sdl sensord session skype slp smp snmp spell spl sql sqlite sqlite3 sse sse2 ssl stream subversion svg sysfs tcl tcpd theora threads tiff tk truetype unicode usb userlocales v4l vhosts vim vim-syntax vorbis wxwidgets x264 xcb xcomposite xine xinerama xinetd xml xorg xpm xscreensaver xulrunner xvid zip zlib zsh-completion" 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="proxy proxy_balancer proxy_connect proxy_http 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 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 proxy_ajp proxy_ftp" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="atiusb" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Panagiotis Christopoulos (RETIRED) gentoo-dev 2010-04-05 10:02:22 UTC
Please attach(upload a text file) your "emerge -e -pv xorg-server nvidia-drivers" output, and if you can, some more information eg. your Xorg.0.log when the memory leak crashes your system and also your "free -m -t" output. I drop severity to normal, for the time being.
Comment 2 Panagiotis Christopoulos (RETIRED) gentoo-dev 2010-04-05 10:03:36 UTC
Forget the last phrase.
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2010-04-05 19:30:42 UTC
Please attach the output of nvidia-bug-report.sh

Thanks
Comment 4 Bryan Ward 2010-04-06 03:00:57 UTC
Created attachment 226683 [details]
nvidia-bug-report.sh

After the crash I had to tinker with things to get X restart, and I can't recall all of what I did, so without knowing all of what is included, here, this might not be entirely too relevant.
Comment 5 Bryan Ward 2010-04-06 03:04:14 UTC
bcw006@newton test % free -m -t
             total       used       free     shared    buffers     cached
Mem:          6393       6248        145          0         66       4859
-/+ buffers/cache:       1321       5071
Swap:         3827         39       3788
Total:       10221       6287       3934

From top:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                   
 6055 root      20   0  405m 318m  25m S    2  5.0   8:23.95 X

5% of 6GB seems a bit high doesn't it?
Comment 6 Bryan Ward 2010-04-07 22:57:58 UTC
Just an update, I have not restarted my X server since posting this bug and the memory utilization has risen over the past day or two from 5% to 11%.  It is also not as responsive as it was previously.  I will not restart to see if I can reproduce the actual crash and report it in more detail.
Comment 7 Jean-Philippe Robichaud 2010-04-09 17:41:48 UTC
I've also noticed what looks like a memory leak with xorg 1.7.6.  I'm in a "simpler" position than Bryan as it's a simple laptop with an integrated intel card (965GM)

X is now taking >500MB of memory and it's rising steadily at about 6.5M/h.


here is the output of emerge --info and I'll attach the "emerge -pve xorg-server  x11-drivers/xf86-video-intel"

Thanks!

Portage 2.2_rc67 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6-take-1 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-take-1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7100_@_1.80GHz-with-gentoo-1.12.13
Timestamp of tree: Mon, 05 Apr 2010 15:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.5.4-r3, 2.6.4-r1
dev-python/pycrypto: 2.1.0_beta1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6-r1, 1.5, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -msse -msse2 -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native -msse -msse2 -msse3"
DISTDIR="/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.arcticnetwork.ca/pub/gentoo/ ftp://mirrors.tera-byte.com/pub/gentoo ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US fr"
MAKEOPTS="-j2"
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="/usr/portage/local/layman/vmware /usr/portage/local/layman/openoffice-geki /usr/portage/local/layman/kde /usr/local/portage/LocalOverlay /usr/local/portage/nekoverlay /usr/local/portage/dberkholz /usr/local/portage/quarks_gentoo_overlay"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr amrnb amrwb apache2 apm audio bash-completion berkdb bluetooth branding bzip2 cairo cdaudio cdr chm cisco cli clucene consolekit contrast cracklib crypt cups cxx daap dbus dell disk-partition djvu dri dts dvd dvdr ebook emboss encode evo exchange exif fam festival ffmpeg flac flite fontconfig foomaticdb fortran freetts ftp fuse gcj gdbm gif gimp glitz gnome google-gadgets gpm gstreamer gtk hal hbci hdri htmlhandbook hybrid-auth iconv icq id3tag imagemagick inotify ipod ipv6 irda irmc ithreads jabber jack java java5 java6 jce jpeg kde kde4 kdehiddenvisibility kdexdeltas kipi laptop lcms ldap lensfun libnotify lm_sensors log4j lzo mad madwifi mbrola mikmod mmx mng modules mono mp3 mp3tunes mp4 mpeg mplayer msn mtp mudflap multilib ncurses nfs nls nptl nptlonly nsplugin ntfs obex odbc ofx ogg ole openexr opengl openmp pam pango pch pcmcia pcre pdf perl phonon plasma pmu png portaudio ppds pppd python qt qt3support qt4 quotes rar raw rdesktop readline reflection remote resolvconf samba sametime scanner sdl semantic-desktop servletapi session smb smp snv soundtouch soup spell spl sse sse2 ssh ssl startup-notification subversion svg svnserve sysfs tcpd theora threads tiff truetype unicode usb vamp vboxwebsrv vdpau vim-syntax vorbis wavepack wicd wmf x264 xattr xcb xcomposite xinerama xml xorg xulrunner xv xvid yahoo 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 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 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US fr" NETBEANS_MODULES="apisupport harness ide java nb profiler websvccommon groovy gsf j2ee java  websvccommon ergonomics" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel vesa" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 8 Jean-Philippe Robichaud 2010-04-09 17:42:32 UTC
Created attachment 227167 [details]
output of emerge -pve xorg-server x11-drivers/xf86-video-intel
Comment 9 Nico Baggus 2010-04-22 07:41:43 UTC
on an x86_64 I've seen the same thing. It doesn't have that much memory as the above system. Also it can run for a day with almost nothing actualy doing something on screen and working with it will crash in a few hours. the effects noted:

blinking screens, (effectively the machine stops working), or a screen where all characters get replaces with 3 horizontal lines and the system is still slightly responsive. 

I havn't seen it yet on x86.
other influences:
- x11-drivers/nvidia-drivers-190.42-r3
- sys-kernel/gentoo-sources-2.6.31-r10

Updating nvidia-drivers to 190.53-r1 only made it worse as that crashes during the logon screen.
Also as I need the system for normal work I already downgraded it again to xorg-server-1.6.5
Comment 10 Bryan Ward 2010-04-22 15:04:54 UTC
I wonder if this could be related to the problems Ubuntu is having.

http://slashdot.org/story/10/04/21/2021247/Ubuntu-LTS-Experiences-Xorg-Memory-Leak
Comment 11 f 2010-04-23 07:10:01 UTC
https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/565981
it seems that ubuntu guys has patched it to work.
Comment 12 Nico Baggus 2010-06-24 01:21:26 UTC
cant test/reproduce as the laptop with the problems died (Nvidia chip overheated and gave up).
New laptop has an ATI card. Although memory stil is large is doesn't seem too excessive.
Comment 13 gentoo 2010-08-03 17:02:07 UTC
I'm getting the same bug, with both 1.7.6 and 1.8.2.  I'm in very similar position as the OP, two cards, three monitors.  I get this 2x daily, only when the screens are in use.  I'll attach my cave resolve, and an nvidia-bug-report.log taken from a ssh session.  I'll also take another when I restart X.  I'm going to try and take out the composite and  "AddARGBGLXVisuals" to see if that helps.
Comment 14 gentoo 2010-08-03 17:29:44 UTC
Created attachment 241293 [details]
Nvidia from ssh during hang
Comment 15 gentoo 2010-08-03 17:30:31 UTC
Created attachment 241295 [details]
Nvidia bug before crash
Comment 16 gentoo 2010-08-03 17:31:21 UTC
Created attachment 241297 [details]
cave resolve from my xorg
Comment 17 Nico Baggus 2012-01-09 09:43:39 UTC
Not in the tree anymore, could be closed.
Comment 18 Doug Goldstein (RETIRED) gentoo-dev 2012-07-14 20:49:03 UTC
(In reply to comment #17)
> Not in the tree anymore, could be closed.

Done.