Bug 14639 - Xserver 1.4 memory leak related to dbus?
Summary: Xserver 1.4 memory leak related to dbus?
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.3 (2007.09)
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL: http://bugs.debian.org/cgi-bin/bugrep...
: 13538 16574 (view as bug list)
Depends on:
Blocks: xorg-server-1.4.1
  Show dependency treegraph
Reported: 2008-02-23 13:04 UTC by Brice Goglin
Modified: 2009-08-31 17:55 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:

Xorg.0.log crash (54.86 KB, text/plain)
2008-05-17 14:07 UTC, Sérgio M. Basto
no flags Details

Description Brice Goglin 2008-02-23 13:04:35 UTC
Ian Beckwith reported the following on the Debian BTS today. He's using Xserver from the 1.4.1 branch (snapshot from January 31th). His report contains interesting things about dbus being involved in some memory leaks. Let's hope it will help. He says:

After running for 52 days (and adding lots of swap), it was taking up 1831m of virtual memory:

14893 root       5 -10 1831m  16m 1840 S  0.7  3.6   1690:08 Xorg

I suspect it is something to do with DBus, as running strings(1) on swap produced lots of references to dbus:

$ sudo strings /dev/hda2  /home/sys/swap/* |fgrep org.freedesktop.DBus.Local|wc -l

The strings output contained lots of copies of:

Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

DBus appears to be working OK (at least running dbus-monitor then starting pidgin produced a flurry of messages).

In case it is relevant, I'm running ion3 with mostly xterms.

The data above was with a recent but non-current version of X from unstable, I've now been running for 19 days with the version that was in unstable 19 days ago, and X is up to 734Mb of VM usage.
Comment 1 Sérgio M. Basto 2008-03-29 13:26:07 UTC
I had some strange HAL / DBUS / EVDEV things after some hibernations and resumes of my laptop. 
Comment 2 Daniel Stone 2008-05-16 09:53:48 UTC
*** Bug 13538 has been marked as a duplicate of this bug. ***
Comment 3 Sérgio M. Basto 2008-05-17 14:07:33 UTC
Created attachment 16607 [details]
Xorg.0.log crash 

Hi, seems to me this could be relevant. 

I had install the same packages of X server 1.4.1 of my laptop, on laptop of my co-worker which is next to me.  And one day after some network problems my laptop and his laptop had a X crash.
I notice that I just had X crash one time a month and in the office.

Last  Wednesday I had a X crash.

May 14 18:49:11 segulix NetworkManager: <info>  Deactivating device eth0.
May 14 18:49:11 segulix NetworkManager: <info>  eth0: canceled DHCP transaction, dhclient pid 30167
May 14 18:49:14 segulix kdm[2130]: X server for display :0 terminated unexpectedly

Seems that network problems and Networkmanager can make a X crash !
Comment 4 Sérgio M. Basto 2008-05-21 08:07:01 UTC
let's test it:

Fix hal shutdown crash.

Removing the device invalidates its ->next pointer.  Copy it aside before

destroying the device.

(cherry picked from commit f52f6c5c7efc281f9ac204fbaa4f71383df7463d)

Comment 5 Peter Hutterer 2008-07-03 00:15:35 UTC
*** Bug 16574 has been marked as a duplicate of this bug. ***
Comment 6 Daniel Stone 2009-08-31 17:55:07 UTC
seems to be fine these days ...

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.