Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263090 - sys-apps/dbus-1.2.3-r1 memory leak
Summary: sys-apps/dbus-1.2.3-r1 memory leak
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
: 263144 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-20 02:25 UTC by Paweł Drożański
Modified: 2009-12-24 16:47 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 Paweł Drożański 2009-03-20 02:25:36 UTC
Dbus v. 1.2.3-r1 probably has some problems with memore leaks - uses 680MB after 15hrs uptime.

emerge --info:
Portage 2.1.6.9 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r2 x86_64)
=================================================================                                       
System uname: Linux-2.6.28-gentoo-r2-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.2.5 
Timestamp of tree: Fri, 20 Mar 2009 01:00:02 +0000                                                      
app-shells/bash:     4.0_p10-r1                                                                         
dev-java/java-config: 1.3.7-r1, 2.1.7                                                                   
dev-lang/python:     2.5.4-r2                                                                           
dev-python/pycrypto: 2.0.1-r8                                                                           
dev-util/cmake:      2.6.3                                                                              
sys-apps/baselayout: 2.0.0                                                                              
sys-apps/openrc:     0.4.3-r1                                                                           
sys-apps/sandbox:    1.6                                                                                
sys-devel/autoconf:  2.13, 2.63                                                                         
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                          
sys-devel/binutils:  2.19.1-r1                                                                          
sys-devel/gcc-config: 1.4.1                                                                             
sys-devel/libtool:   2.2.6a                                                                             
virtual/os-headers:  2.6.28-r1                                                                          
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                          
CBUILD="x86_64-pc-linux-gnu"                                                                            
CFLAGS="-march=core2 -O2 -pipe"                                                                         
CHOST="x86_64-pc-linux-gnu"                                                                             
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /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/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.pw.edu.pl/ "
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aac acl aiglx alsa amd64 aoss asf berkdb bzip2 cli cpudetection cracklib crypt cups dbus dri dvd examples fam flac fortran gdbm gif gpm gstreamer hal iconv isdnlog java jpeg kde lm_sensors mad midi mmx mmxext mp3 mp4 mudflap multilib ncurses new-login nls nptl nptlonly nsplugin opengl openmp pam pcre pdf perl png pppd python qt4 readline reflection samba sdl session spell spl sqlitesse sse2 ssl ssse3 startup-notification svg symlink sysfs tcpd threads tiff truetype unicode x264 xcomposite xinerama xml xorg xscreensaver xv xvid 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_iduserdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Reproducible: Always

Steps to Reproduce:
1. just turn the system on

Actual Results:  
uses 680MB RAM
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-20 18:21:54 UTC
*** Bug 263144 has been marked as a duplicate of this bug. ***
Comment 2 Steev Klimaszewski (RETIRED) gentoo-dev 2009-03-22 07:04:08 UTC
I'm sorry, could you elaborate more on this?  I've run my machines for more than 15 hours without any memory leak issues.  What desktop are you running, what apps are running, what do you have installed that uses DBus....   Things of that nature, just saying there is a memory leak... isn't extremely helpful.
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-22 10:38:20 UTC
you might also want to see what's actually communicating via dbus by using dbus-monitor maybe.
Comment 4 Paweł Drożański 2009-03-23 00:11:03 UTC
dbus-monitor blows:
signal sender=org.freedesktop.DBus -> dest=:1.278274 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.278274"                                                                                                               
method call sender=:1.278274 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='method_call'"                                                                                                       
method call sender=:1.278274 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='method_return'"                                                                                                     
method call sender=:1.278274 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='error'"                                                                                                             
signal sender=org.freedesktop.DBus -> dest=(null destination) path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.278275"                                                                                                                            
   string ""                                                                                                                                     
   string ":1.278275"                                                                                                                            
method call sender=:1.278275 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=Hello               
method call sender=:1.278275 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch            
   string "destination=':1.278275'"                                                                                                              
method call sender=:1.278275 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner        
   string "org.freedesktop.DBus"                                                                                                                 
method call sender=:1.278275 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch            
   string "type='signal',sender='org.freedesktop.DBus',path='/org/freedesktop/DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged'"  
method call sender=:1.278275 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameHasOwner        
   string "org.kde.amarok"                                                                                                                       
signal sender=org.freedesktop.DBus -> dest=(null destination) path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.278275"                                                                                                                            
   string ":1.278275"                                                                                                                            
   string ""                                                                                                                                     
signal sender=org.freedesktop.DBus -> dest=(null destination) path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.278276"                                                                                                                            
   string ""                                                                                                                                     
   string ":1.278276"                                                                                                                            
method call sender=:1.278276 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=Hello               
method call sender=:1.278276 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch            
   string "destination=':1.278276'"                                                                                                              
method call sender=:1.278276 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner        
   string "org.freedesktop.DBus"                                                                                                                 
method call sender=:1.278276 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch            
   string "type='signal',sender='org.freedesktop.DBus',path='/org/freedesktop/DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged'"  
method call sender=:1.278276 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameHasOwner        
   string "org.kde.amarok"                                                                                                                       
signal sender=org.freedesktop.DBus -> dest=(null destination) path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.278276"                                                                                                                                                                                      
   string ":1.278276"                                                                                                                                                                                      
   string ""
Comment 5 Steev Klimaszewski (RETIRED) gentoo-dev 2009-03-23 17:42:33 UTC
Okay, so, while running Amarok dbus starts taking up tons of memory after its been running 15 hours... could you please give the output of emerge -pv amarok ?  Also which version of kde and so forth.  
Comment 6 Paweł Drożański 2009-03-23 18:14:08 UTC
KDE i run is 4.2.1 but i have no amarok...
Comment 7 Paweł Drożański 2009-04-02 23:12:08 UTC
Any ideas? The bug still exists...
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-07-26 11:34:13 UTC
(In reply to comment #7)
> Any ideas? The bug still exists...
> 

from the log you pasted, it doesn't look like a dbus bug, but rather some kde service doing kind of DoS on dbus. We need to figure out what causing all those dbus calls.
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-11-04 21:54:08 UTC
how are things going nowadays ?
Comment 10 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-11-05 00:00:24 UTC
Also, what were your dbus use flags ?
Comment 11 Paweł Szymański 2009-11-24 01:07:30 UTC
(In reply to comment #10)
> Also, what were your dbus use flags ?
> 

I'm experiencing the same behaviour. My dbus use flags are +X -debug -doc -selinux. I suppose the leak may be connected with qt 4.5.3 or kde 4.3.1 because it didn't occur before I upgraded from 3.5.
(upgrading to dbus-1.3.0 didn't help. I haven't tried downgrading dbus yet)
Comment 12 Lee Thompson 2009-12-24 16:47:26 UTC
A patch exists
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/295741