Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218242 - sys-apps/hal-0.5.9.1 memory leak and CPU hog
Summary: sys-apps/hal-0.5.9.1 memory leak and CPU hog
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Saleem Abdulrasool (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-18 10:15 UTC by VPN-User
Modified: 2008-06-09 14:23 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 VPN-User 2008-04-18 10:15:05 UTC
After some days of uptime, I can see a steady increase of memory usage by "hald-addon-hid-ups". After some more days, a huge amount of memory is consumed (last time it was at 1,5GB and it also filled up the whole swap). Last time, it also caused CPU to consume 100%.

I have an APC UPS, thats perhaps why its the process "hald-addon-hid-ups".

The problem is gone for a while when i restart /etc/init.d/hald. But it comes again.

Reproducible: Always

Steps to Reproduce:
1. (Perhaps you have to have ab APC UPS and apcupsd running?)
2.
3.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-04-18 13:17:08 UTC
Please provide your emerge --info too.
Comment 2 Blake Leverett 2008-04-30 12:04:57 UTC
I see the same problem.  I have to restart hald every few days.  After about 5 days, restarting hald freed up about 160MB.  Here is my emerge --info

Portage 2.1.4.4 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r4 i686)
=================================================================
System uname: 2.6.24-gentoo-r4 i686 AMD Athlon(tm) XP 2000+
Timestamp of tree: Sat, 26 Apr 2008 14:30:02 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-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/env.d /etc/env.d/java/ /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/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://cudlug.cudenver.edu/gentoo rsync://cudlug.cudenver.edu.gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo http://gentoo.binarycompass.org"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib alsa arts audiofile bash-completion berkdb bzip2 cairo cdr cli cracklib crypt crypto cscope cups curl dbus directfb dri dvd dvdr eds emboss encode esd exif expat fam ffmpeg firefox flac foomaticdb fortran gd gdbm geoip gif glut gmp gpm gstreamer gtk guile hal iconv idn imagemagick imlib ipv6 isdnlog jack java jpeg junit kde lcms libcaca libwww mad mga mhash midi mikmod mng motif mp3 mpeg mudflap mysql ncurses nls nptl nptlonly ogg openal opengl openmp oss pam pcre perl php png ppds pppd python qt3 qt4 quicktime rdesktop readline recode reflection ruby samba scanner sdl session slang speex spell spl sqlite ssl svg svga tcl tcpd tetex tiff tk truetype unicode usb vorbis win32codecs wxgtk1 wxwindows x86 xine xml xml2 xorg xv xvid zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa fbdev mga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 VPN-User 2008-05-14 22:45:43 UTC
emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r7 i686)
=================================================================
System uname: 2.6.24-gentoo-r7 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 3600+
Timestamp of tree: Wed, 14 May 2008 08:06:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe -msse3"
CHOST="i686-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/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /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/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon64 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.intergenia.de http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/linux/gentoo"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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 /usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 acl acpi alsa apache2 avahi berkdb bzip2 cdr cdrom cli cracklib crypt cups dbus dri dts dvd dvdr encode esd firefox fortran gdbm gif glitz gnome gpm gtk gtk2 hal iconv idn imagemagick isdnlog jpeg jpeg2k midi mmx mp3 mpeg mudflap ncurses network-cron nls nptl nptlonly nvidia opengl openmp pam pcre pdf perl png pppd python readline reflection samba session slang spl sse ssl svg symlink tcpd threads truetype unicode usb userlocales vcd vorbis wavpack win32codecs x86 xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Saleem Abdulrasool (RETIRED) gentoo-dev 2008-05-20 04:50:14 UTC
Please see if you can reproduce this with 0.5.11.
Comment 5 Blake Leverett 2008-05-20 11:47:06 UTC
I can tell you how 0.5.11 works when that version makes it into portage.

For now, the memory hogging behavior has stopped.  But hal functionality has stopped, too.  I wasn't that excited about the automounting behavior, so it isn't that big of a deal to me.

Comment 6 VPN-User 2008-05-20 15:45:29 UTC
(In reply to comment #5)
> I can tell you how 0.5.11 works when that version makes it into portage.
> 
> For now, the memory hogging behavior has stopped.  But hal functionality has
> stopped, too.  I wasn't that excited about the automounting behavior, so it
> isn't that big of a deal to me.
> 

That means you disabled hald? So its didn't go away. At least not for me.

0.5.11 is in portage (~arch). I'll test now.
Comment 7 Blake Leverett 2008-06-09 14:05:02 UTC
Installed hal-0.5.11.  Memory leak appears to be fixed in that version.
Comment 8 VPN-User 2008-06-09 14:23:26 UTC
Same observation here. Please mark x86 stable.