Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168033 - sys-apps/hal - hald-addon-storage uses all cpu
Summary: sys-apps/hal - hald-addon-storage uses all cpu
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on: 313389
Blocks:
  Show dependency tree
 
Reported: 2007-02-22 20:56 UTC by nicolo
Modified: 2010-09-30 12:30 UTC (History)
9 users (show)

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


Attachments
hald output (outhal,406.35 KB, text/plain)
2007-02-23 03:25 UTC, nicolo
Details
This is the new paste.. (outhal,406.23 KB, text/plain)
2007-02-23 21:04 UTC, nicolo
Details
hald output, issue did not occur (hald-output.txt,485.48 KB, text/plain)
2007-03-15 12:17 UTC, Ferry
Details
syslog (hald output to syslog enabled) (messages.jun6.bz2,113.69 KB, application/x-bzip)
2007-06-06 09:43 UTC, Ferry
Details
Excerpt from kernel.log during system slowdown (kernel.log,14.28 KB, text/plain)
2007-07-11 04:56 UTC, Neil Walker
Details
syslog (hald output to syslog enabled) 12 July 2007 (messages-jul-12.log.bz2,44.20 KB, application/x-bzip)
2007-07-12 10:44 UTC, Ferry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nicolo 2007-02-22 20:56:43 UTC
Randomly the process hald-addon-storage takes all the cpu, the computer become very very slow -also typing to a console takes a long time-. Killing the process all return normal, but it isn't always possible because if the system is compiling, it is impossible to log-in in a console and kill the process in reasonable time

Reproducible: Sometimes

Actual Results:  
the process takes all cpu usage

Expected Results:  
i think it shouldn't happen

This is my emerge --info:

Portage 2.1.2-r10 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r0, 2.6.20-gentoo x86_64)
=================================================================
System uname: 2.6.20-gentoo x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-50
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 22 Feb 2007 20:00:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -fomit-frame-pointer -msse3 -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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=k8 -fomit-frame-pointer -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ ftp://ftp.unina.it/pub/linux/distributions/gentoo "
LINGUAS="it"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/xeffects /usr/portage/local/layman/gentopia"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acpi aim alsa amd64 amuled arts audiofile avahi axgl bash-completion bitmap-fonts bluetooth bzip2 cdb cdparanoia cdr cli cracklib crypt cups curl curlwrappers dbus dio directfb dri dts dv dvd dvdr dvdread emacs emacs-w3 emul-linux-x86 encode exif fbcon ffmpeg firefox flac fortran ftp gd gdbm gif ginac glut gnutils gpm graphviz gstreamer gtk gtk2 hal hyperwave-api iconv icq ieee1394 imap imlib innodb ipv6 isdnlog jabber java javascript jpeg jpeg2k kde kdexdeltas ldap leim lesstif libg++ linux-smp-stats mad mailwrapper matroska matrox midi mikmod mime mng mp3 mpeg msn mysql mysqli ncurses nls nptl nptlonly nsplugin odbc ogg oggvorbis opengl oscar oss pam pcre pdf perl png posix ppds pppd python qt3 qt4 quicktime readline recode reflection ruby samba scanner sdl session smp snmp sockets spell spl sqlite sqlite3 ssl svg szip tcpd theora tidy tiff tokenizer truetype truetype-fonts type1-fonts unicode usb vcd vorbis wifi wxwindows xcb xcomposite xine xml xorg xpm xprint xscreensaver xsl xv xvid zip 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2007-02-22 23:32:01 UTC
Need the output of hald --verbose=yes --daemon=no and also exact versions here.
Comment 2 nicolo 2007-02-23 01:42:03 UTC
The output of hald --verbose=yes --daemon=no is:

 02:36:57.210 [I] hald.c:469: hal 0.5.7.1
02:36:57.210 [I] hald.c:534: Will not daemonize
02:36:57.211 [I] hald_dbus.c:3236: local server is listening at unix:abstract=/tmp/hald-local/dbus-WxHbLGtVtB,guid=b4630b3895b89973ce8f080045de4539
02:36:57.214 [I] hald_runner.c:115: Runner has pid 14283
Runner started - allowed paths are '/usr/libexec:/usr/share/hal/scripts'
Error binding udev_event socket: Address already in use



Hal il version 0.5.7.1-r5, udev is104-r12 

Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2007-02-23 01:44:29 UTC
Stop the current one running with /etc/init.d/hald stop

You can't have two at once. You also must run that as root.
Comment 4 nicolo 2007-02-23 03:25:53 UTC
Created attachment 111021 [details]
hald output

The output of hald --verbose=yes --daemon=no redirected to file standard output and error output
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2007-02-23 05:28:37 UTC
what's /dev/hdc? what partitions does it have on it? lvm? evms? anything special like that?

Also, if you still have the hald from this log running, can you tell me the PID of the hald-addon-storage that's eating all your CPU? If not, can you repaste the log and tell me the PID from ps aux while capturing the log. And check a few times, just in case the PID is changing since it does start the addon a couple of times.
Comment 6 nicolo 2007-02-23 21:04:57 UTC
Created attachment 111083 [details]
This is the new paste..

/dev/hdc is my hard disk( pata with nvidia/amd driver enabled in kernel). I have an ntfs,2 ext3, an ext4 and a swap partition.

No i'm not running lvm or anything like this.

The pid of /usr/libexec/hald-addon-storage is 14136 in this case, but it changes every time i give the command..
Comment 7 Ferry 2007-03-15 12:16:06 UTC
Have same issues, both on my amd64 x2 running ~amd64 and on my laptop intel core 2 duo running ~x86. Hard to reproduce. Often happens when I'm working with my usbstick. On my intel I sometimes have these entries in dmesg:

hda: status timeout: status=0xd0 { Busy }
ide: failed opcode was: unknown
hda: drive not ready for command

repeated a lot :D. hda is the CD player, there is no CD in it... Not sure if it's related.

In case it matters, on both systems i have the xeffects overlay.

info from my laptop:

Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r1, 2.6.21-rc1 i686)
=================================================================
System uname: 2.6.21-rc1 i686 Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 15 Mar 2007 09:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r4
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://gentoo.tiscali.nl/pub/mirror/gentoo/ http://mirror.gentoo.no/ "
LANG="en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/xeffects"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acpi alsa avi berkdb bitmap-fonts bluetooth cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode fam firefox fortran gdbm gif glitz gnome gstreamer gtk gtk2 hal iconv ipv6 isdnlog jpeg kde ldap libg++ mad midi mikmod mmx mmxext mozbranding mp3 mpeg mysql ncurses nls nptl nptlonly ogg openal opengl pam pcre pdf pdflib perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session smp spell spl sse sse2 sse3 ssl svg svga tcpd tiff truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs wmf x86 xml xml2 xorg xv xvid 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Comment 8 Ferry 2007-03-15 12:17:34 UTC
Created attachment 113357 [details]
hald output, issue did not occur
Comment 9 Doug Goldstein (RETIRED) gentoo-dev 2007-04-16 20:08:33 UTC
please re-test with hal-0.5.9
Comment 10 nicolo 2007-06-05 00:05:36 UTC
tested, same problem

Comment 11 Ferry 2007-06-06 09:31:12 UTC
Tested, same problem here too
Comment 12 Ferry 2007-06-06 09:43:34 UTC
Created attachment 121327 [details]
syslog (hald output to syslog enabled)

Please see attached log file. Perhaps it sheds some insights. My laptop hang (well was unworkably slow, given enough patience, say like an hour, one could stop hald and just run like usual) a little before 11:21, after booting it was immediately slow again so booted again at 11:25. Both times last thing it said was power related.

Please also note the following, I'm on a HP/Compaq nc6320 laptop. This had issues with acpi in the kernel (big kernel issues, can find it all over the web). Perhaps it has to do with it.

Some side notes that might be of interest. Some times gnome-power-manager (which is screwing up 2, don't get an icon indicating i'm on battery power unless I kill and restart it...) seems to think my laptop will only last 2 minutes on 99% charged. This laptop can run almost 3 hours on a full battery. I think something is seriously screwed up in the way hald reads certain power states or whatever.

Doubt it has to do with ACPI/kernel, although not sure. Reason for this: /proc/acpi/battery/C1BC/state shows this for example when drowning:
present rate:            1685 mA
remaining capacity:      4526 mAh

These are per hour statistics AFAIK and 4526/1685 is almost 2.7 hours which is far more than 5 minutes. Kismet and some other tools do correctly recognize the time it will take to drown the battery.

Reason I say this is because:
1) gnome-power-management uses hald to read certain things afaik
2) I have a feeling gnome-power-management in combination with hald, or atleast something power related is screwing over hald.

Also, I have a feeling the issue occurs more often when there's a CD in the drive and/or when I'm burning. Maybe this causes additional polls within hal causing the issue to occur more often.
Comment 13 Vanessa Dannenberg 2007-06-20 00:14:45 UTC
I can confirm that this bug happens on both of our machines as well.  It is especially easy to trigger the bug if you're ripping a CD and run across a hard read error like a bad scratch.  Then, the system can (and for both of us, did) become totally unuseable and unrecoverable - the "Magic" SysRq was the only way out.  The strange thing is that, judging by my CPU meter, only *one* core gets monopolized.

Both of our machines are identical, using Gigabyte M1689D motherboards carrying a single AMD 64x2 3800+ processor, 1GB RAM, ULI/ALI chipset, generic SATA hard disks, running plain IDE mode (no RAID).

HAL package version 0.5.9, kernel 2.6.21.5 (also happens under 2.6.21.1).
Comment 14 takken 2007-07-01 10:35:31 UTC
I got the exact same problem after upgrading my system to hal 0.5.9-r1. Out of the blue, hald-addon-storage eats all CPU and the system logs are filled with:

Jul  1 12:17:29 [kernel] hdc: drive not ready for command
Jul  1 12:17:34 [kernel] hdc: status timeout: status=0xd0 { Busy }
Jul  1 12:17:39 [kernel] ide: failed opcode was: unknown

Here, HDC is my DVD drive. The drive is empty, and I don't even touch it when HAL goes nuts.

I tried downgrading to hal 0.5.7.1-r5, but it still happens now and then. Maybe it's the kernel. My kernel was upgraded from 2.6.18-suspend2-r1 to 2.6.20-suspend2-r6.

Unfortunately, I cannot go back to my previous kernel, as it is not in portage anymore....


Portage 2.1.2.7 (default-linux/x86/2007.0/desktop, gcc-4.1.1, glibc-2.5-r2, 2.6.20-suspend2-r6 i686)
=================================================================
System uname: 2.6.20-suspend2-r6 i686 Mobile AMD Sempron(tm) Processor 3400+
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 16 Jun 2007 12:00:02 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -msse3 -fomit-frame-pointer -pipe -fvisibility-inlines-hidden"
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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.scarlet-internet.nl/pub/gentoo http://gentoo.tiscali.nl/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ "
LINGUAS="nl"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa arts asf berkdb bitmap-fonts cairo cdparanoia cdr cli cracklib crypt cups dbus dri dts dv dvd dvdr dvdread eds emboss encode evo fam ffmpeg firefox flac fortran gdbm gif gimpprint gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kdeenablefinal kdehiddenvisibility kerberos ldap libg++ mad matroska midi mikmod mmx mmx2 mmxext mp3 mpeg mudflap ncurses no_wxgtk1 nodrm nptl nptlonly nvidia ogg opengl openmp pam pcmcia pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline real reflection rtc sdl session sox spell spl sqlite sse sse2 ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode vorbis win32codecs x86 xine xml xorg xscreensaver xv xvid xvmc 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="nl" USERLAND="GNU" VIDEO_CARDS="nv nvidia vga vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 15 Neil Walker 2007-07-11 04:56:15 UTC
Created attachment 124511 [details]
Excerpt from kernel.log during system slowdown

I believe I just experienced this bug with hal-0.5.9-r1 and kernel 2.6.22-gentoo on my AMD64 X2. The system became unresponsive and the hd was thrashing like crazy. After some time, the problem cleared itself and the only relevant entries in the logs during that time are in the attached file. The system was under light load at the time - running firefox with 3 tabs open and boinc running in the background. I hope this will help to shed some more light on the bug.
Comment 16 Doug Goldstein (RETIRED) gentoo-dev 2007-07-11 13:43:45 UTC
(In reply to comment #15)
> I believe I just experienced this bug with hal-0.5.9-r1 and kernel
> 2.6.22-gentoo on my AMD64 X2. The system became unresponsive and the hd was
> thrashing like crazy. 

Something ate all your RAM. Not necessarily HAL. The issue people are reporting is that HAL uses CPU, not RAM.

You mentioned you were using boinc, boinc can be a intensive application at times but is designed to be background.

The logs you posted only definitively show you had no RAM and no swap remaining and the kernel started killing things. Yes, one of those things was an HAL addon, but it doesn't point to the HAL addon being the culprit. It killed kdesktop and syslog-ng as well.
Comment 17 Ferry 2007-07-12 10:43:30 UTC
Today I had the issue again. Almost thought it was solved with the new kernel (2.6.22 gentoo) as I hadn't had the problem in a couple of days.

Anyways, I had a root shell open, so I just shut down hald. This took quite some time after which in gnome a msg appeared I didn't have rights to unmount boot-part (which is the label attached to my /boot partition, which wasn't mounted by me, shouldn't automount (or atleast fstab is not setup to mount /boot at boot), gnome might have mounted it tho' there's an icon on the desktop for it too).

Attached is a logfile. Strangely it now reports errors on hda, my only harddisk. Also a lot of voltage stuff again.
Comment 18 Ferry 2007-07-12 10:44:58 UTC
Created attachment 124632 [details]
syslog (hald output to syslog enabled) 12 July 2007
Comment 19 Ferry 2007-07-12 10:47:16 UTC
PS my attachments (or atleast the last 2, the sylog ones) are bzip2 compressed. No idea why bugzilla reports it as text/plain. Clicking details will just give you the binary garbage, files needs to be extracted to read (or use less with bzip2 support)
Comment 20 Neil Walker 2007-07-16 10:53:51 UTC
> Something ate all your RAM. Not necessarily HAL. The issue people are reporting
> is that HAL uses CPU, not RAM.
> 
> You mentioned you were using boinc, boinc can be a intensive application at
> times but is designed to be background.
> 
> The logs you posted only definitively show you had no RAM and no swap remaining
> and the kernel started killing things. Yes, one of those things was an HAL
> addon, but it doesn't point to the HAL addon being the culprit. It killed
> kdesktop and syslog-ng as well.
> 
It's using 99-100% CPU when it goes into an infinite loop trying to allocate more and more memory. It happens every time I try to write a CD with k3b. Nero2 simply crashes.

Comment 21 Neil 2007-07-31 17:30:11 UTC
I encountered this same problem, and a bit of digging revealed that in my case its a conflict between HAL and libgphoto2 as described in bug  http://bugs.gentoo.org/show_bug.cgi?id=172830

I'd only installed libgphoto2/gphoto2 as my camera had stopped being recognised as a USB device (see http://bugs.gentoo.org/show_bug.cgi?id=186326).

Un-emerging libgphoto2 and gphoto2, then re-emerging HAL resolved this problem.

Thus this may well be a duplicate of bug 172830
Comment 22 takken 2007-08-05 15:05:15 UTC
I removed the HAL and UDEV hooks installed by gphoto2 and libgphoto2, to see if this is the cause of the problem. Unfortunately, HAL is still bugging me daily. 

My other Gentoo systems have not been fully updated for several months, and I intend to keep it that way because they function normally. Updating *always* breaks something...
Comment 23 takken 2007-08-05 19:49:46 UTC
The Ubuntu folks also ran into this issue. It turns out that all affected systems have a TSSTcorpCD/DVDW DVD drive, which has broken firmware. 

Could everyone please report what the output of

  lshal | grep DVD | grep info.product

is on their system? Here is the Ubuntu bug report about the problem, and possible fixes:

https://bugs.launchpad.net/ubuntu/+source/hal/+bug/85695
Comment 24 Vanessa Dannenberg 2007-08-05 21:09:24 UTC
Not quite all systems.  Both of ours have been struck by this bug at least 
once.

My box:  info.product = 'HP CD-Writer+ 7200'  (string)
Husband's box:    info.product = 'LITE-ON DVDRW SHW-160P6S'  (string)

Both boxes have ALi/ULi chipsets (M5229 IDE/PATA, and 5289 SATA controllers) 
with generic (white label) hard disks.
Comment 25 Krzysztof Walo 2007-08-11 00:25:49 UTC
(In reply to comment #23)
> The Ubuntu folks also ran into this issue. It turns out that all affected
> systems have a TSSTcorpCD/DVDW DVD drive, which has broken firmware. 
> 
> Could everyone please report what the output of
> 
>   lshal | grep DVD | grep info.product
> 
> is on their system? Here is the Ubuntu bug report about the problem, and
> possible fixes:
> 
> https://bugs.launchpad.net/ubuntu/+source/hal/+bug/85695
> 
I can commit this. I have this drive and both Ubuntu and Gentoo. Hal takes all CPU at random. modprobe -r ide_cd makes PC useable. I just insert module ide-cd when CDROM is needed.
Comment 26 Krzysztof Walo 2007-08-11 00:28:03 UTC
(In reply to comment #23)
> The Ubuntu folks also ran into this issue. It turns out that all affected
> systems have a TSSTcorpCD/DVDW DVD drive, which has broken firmware. 
> 
> Could everyone please report what the output of
> 
>   lshal | grep DVD | grep info.product
> 
> is on their system? Here is the Ubuntu bug report about the problem, and
> possible fixes:
> 
> https://bugs.launchpad.net/ubuntu/+source/hal/+bug/85695
> 
I can commit this. I have this drive and both Gentoo and Ubuntu on the same machine. Random slowdown happens on both system, when module ide-cd is insterted. I remove it and do modprobe ide-cd, when needed.
Comment 27 Ferry 2007-10-25 13:10:43 UTC
Hey there,

  info.product = 'TSSTcorpCD/DVDW TS-L632D'  (string)

In the ubuntu forum (link ^^) someone says it's solved with HP firmware HH15, my drive already has this firmware, so it's not likely to solve anything.

TIA
Comment 28 Ferry 2007-10-26 14:04:07 UTC
Called with HP support, according to them the HH15 is the latest firmware (there is no firmware listed for the CD player under my notebook on the support site).

If anyone comes across newer HP firmware please let me know.
Comment 29 Ferry 2007-10-29 12:32:47 UTC
As HP doesn't seem to want to release firmware that fixes it, as they don't support linux. So I just went with the cross flash thingy, seems fine.

In case anyone wonders, here's instructions. NOTE THIS MIGHT TRASH YOUR DVD DRIVE, YOUR LAPTOP SUPPORT AND IN SHORT IF YOU DON'T UNDERSTAND WHAT YOU ARE DOING AND/OR ARE NOT WILLING TO TAKE THE RISK _DO NOT_!! I/GENTOO/THIS FORUM/UBUNTU/WHOMEVER BUT YOU CAN'T BE HELD RESPONSIBLE.

Boot into windows
Download the Samsung SC04 firmware from here: http://www.toshibaer.com/firmware/index.php?path=TS-L632D/ start the flash utility from command line with the '-nocheck' option, select the firmware and flash it.

That's it. If you are unlucky after this your drive will no longer work and you might loose warrantly on your whole computer/laptop. Don't e-mail me, don't drop lines here, we do not, can not, will not support it.

Comment 30 Michał Kudła 2007-11-11 14:04:56 UTC
I found two files:
TS-L632D_AC01_Acer_OEM.zip 18-10-2007   AC01 (Acer OEM) for the TSSTCorp TS-L632D
TS-L632D_AC01_RPC1.zip   08-11-2007   RPC1 for the TSSTCorp TS-L632D.

I have laptop based on ASUS S96S

which file I must use?

Comment 31 Farrel Lifson 2008-03-11 19:13:56 UTC
(In reply to comment #24)
> Not quite all systems.  Both of ours have been struck by this bug at least 
> once.
> 
> My box:  info.product = 'HP CD-Writer+ 7200'  (string)
> Husband's box:    info.product = 'LITE-ON DVDRW SHW-160P6S'  (string)
> 
> Both boxes have ALi/ULi chipsets (M5229 IDE/PATA, and 5289 SATA controllers) 
> with generic (white label) hard disks.
> 

I can confirm that this happens with my LITE-ON DVDRW drive as well

lshal | grep DVD | grep info.product:
  info.product = 'LITE-ON DVDRW SOHW-1693S'  (string)

Kernel is 2.6.22-gentoo-r9

I used to be able to burn DVD's so I'm not sure if the firmware is an issue with me.
Comment 32 Alexey 2008-09-22 20:13:02 UTC
(In reply to comment #31)
> I used to be able to burn DVD's so I'm not sure if the firmware is an issue
> with me.
> 
Just type in terminal
# hwinfo --cdrom
and you see it in line
>> Revision: "H15" (in my case)

Well, I'll try update firmware up to "H18" Revision & 'll see what's hapend
...
Comment 33 Jaak Ristioja 2008-12-05 17:20:28 UTC
(In reply to comment #7)> 
> hda: status timeout: status=0xd0 { Busy }
> ide: failed opcode was: unknown
> hda: drive not ready for command

I also got this lockup and these messages trying to rip a CD using k3b. The process "hald-addon-storage: polling /dev/hda (every 2 sec)" was using 100% CPU (gentoo-sources-2.6.27-r4 and hal-0.5.11-r1). Appears to be reproducible. Information retrieved from sysfs:

# cd /sys/devices/pci0000:00/0000:00:0f.1/ide0/0.0
# cat drivename firmware media modalias model
hda
QS08
cdrom
ide:m-cdrom
LITE-ON LTR-52327S
Comment 34 Michael Wharmby 2008-12-14 13:15:52 UTC
I think I've got the same problem here.  Three hald-addon-storage processes running one taking up 135% CPU and another 30% (according to top).
The problem occurred without me touching the DVD drive and with no other storage attached to the system (save for the SATA harddisk).  I don't have libgphoto2 installed, but I don't think that's relevant.

I had a quick look on the hal pages at freedesktop.org and there's been no entries in the changelog relating to this issue nor does there appear to be anything in their Bugzilla.  Is it perhaps worth informing the developers upstream that this issue exists?

My DVD drives:
info.product = 'TSSTcorpCD/DVDW TS-H552B'  (string)
info.product = 'HL-DT-ST DVDRAM GSA-4160B'  (string)

System is:
Linux - 2.6.25-gentoo-r7 #2 SMP Tue Jul 29 00:23:04 BST 2008 x86_64 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz GenuineIntel GNU/Linux

hal version (from portage) is 0.5.11-r1
Comment 35 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-09-06 09:28:46 UTC
Everyone, what's the status on this one ? Using hal-0.5.13-r2 ? It all sounds like hardware problem that would have been triggered by anything using the failing hardware so I'm not sure there's anything to do for hal here.
Comment 36 Pacho Ramos gentoo-dev 2009-09-12 16:51:10 UTC
No problem for me with 0.5.11-r9 and 0.5.12_rc1-r7 (haven't tried 0.5.13 due needing to update util-linux also)
Comment 37 Justin 2009-10-28 21:07:37 UTC
I'm seeing this behavior on an AMD_64 with hal-0.5.12_rc1.  Has been installed and running fine since January, but, suddenly started, this week.  Could this be an indicator that hardware is failing?
Comment 38 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-10-28 21:22:48 UTC
if you have the same problem with another hal version and/or having strange messages in kernel log, then yes.
Comment 39 Dmitri Bogomolov 2009-12-10 08:36:04 UTC
Today I have the same bug with =sys-apps/hal-0.5.11-r9, =sys-fs/udev-146-r1. When xfburn-0.4.2 burning image hald-addon-storage on hdc (CD-ROM) eats 98% CPU.

uname -a
Linux smb 2.6.31-gentoo-r6 #1 PREEMPT Thu Dec 3 14:34:00 EET 2009 i686 VIA Esther processor 1000MHz CentaurHauls GNU/Linux

tail /var/log/messages 
Dec 10 09:02:19 localhost kernel: [  928.231777] EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
Dec 10 09:03:29 localhost kernel: [  998.319329] Thunar used greatest stack depth: 5160 bytes left
Dec 10 09:06:34 localhost kernel: [ 1182.942460] cdrom: This disc doesn't have any tracks I recognize!
Dec 10 09:07:31 localhost kernel: [ 1239.933503] cdrom: This disc doesn't have any tracks I recognize!
Dec 10 09:10:08 localhost syslogd 1.4.1: restart.
Dec 10 09:32:54 localhost kernel: [ 2763.499856] xfburn used greatest stack depth: 5144 bytes left
Dec 10 09:33:31 localhost kernel: [ 2795.408502] xfburn used greatest stack depth: 5124 bytes left
Dec 10 09:40:23 localhost kernel: [ 3211.911569] cdrom: This disc doesn't have any tracks I recognize!
Dec 10 09:47:54 localhost kernel: [ 3662.914050] xfburn[5296]: segfault at 8 ip 080598a4 sp bfeda760 error 4 in xfburn[8048000+2e000]
Dec 10 10:18:36 localhost kernel: [ 5505.357476] hald-addon-stor used greatest stack depth: 4924 bytes left

As for EXT2-fs - this about my USB flash, probably.
Comment 40 Dmitri Bogomolov 2009-12-10 08:37:44 UTC
tail -n 25 /var/log/kern.log 
Dec 10 10:18:00 localhost kernel: [ 5469.162019] hdc: status timeout: status=0xd0 { Busy }
Dec 10 10:18:00 localhost kernel: [ 5469.162039] hdc: possibly failed opcode: 0xa0
Dec 10 10:18:00 localhost kernel: [ 5469.162062] hdc: drive not ready for command
Dec 10 10:18:05 localhost kernel: [ 5474.250028] hdc: status timeout: status=0xd0 { Busy }
Dec 10 10:18:05 localhost kernel: [ 5474.250046] hdc: possibly failed opcode: 0xa0
Dec 10 10:18:05 localhost kernel: [ 5474.250065] hdc: drive not ready for command
Dec 10 10:18:10 localhost kernel: [ 5479.325019] hdc: status timeout: status=0xd0 { Busy }
Dec 10 10:18:10 localhost kernel: [ 5479.325038] hdc: possibly failed opcode: 0xa0
Dec 10 10:18:10 localhost kernel: [ 5479.325057] hdc: drive not ready for command
Dec 10 10:18:15 localhost kernel: [ 5484.461018] hdc: status timeout: status=0xd0 { Busy }
Dec 10 10:18:15 localhost kernel: [ 5484.461037] hdc: possibly failed opcode: 0xa0
Dec 10 10:18:15 localhost kernel: [ 5484.461056] hdc: drive not ready for command
Dec 10 10:18:21 localhost kernel: [ 5489.903020] hdc: status timeout: status=0xd0 { Busy }
Dec 10 10:18:21 localhost kernel: [ 5489.903038] hdc: possibly failed opcode: 0xa0
Dec 10 10:18:21 localhost kernel: [ 5489.903063] hdc: drive not ready for command
Dec 10 10:18:26 localhost kernel: [ 5495.086019] hdc: status timeout: status=0xd0 { Busy }
Dec 10 10:18:26 localhost kernel: [ 5495.086039] hdc: possibly failed opcode: 0xa0
Dec 10 10:18:26 localhost kernel: [ 5495.086058] hdc: drive not ready for command
Dec 10 10:18:31 localhost kernel: [ 5500.158020] hdc: status timeout: status=0xd0 { Busy }
Dec 10 10:18:31 localhost kernel: [ 5500.158038] hdc: possibly failed opcode: 0xa0
Dec 10 10:18:31 localhost kernel: [ 5500.158057] hdc: drive not ready for command
Dec 10 10:18:36 localhost kernel: [ 5505.283020] hdc: status timeout: status=0xd0 { Busy }
Dec 10 10:18:36 localhost kernel: [ 5505.283039] hdc: possibly failed opcode: 0xa0
Dec 10 10:18:36 localhost kernel: [ 5505.283059] hdc: drive not ready for command
Dec 10 10:18:36 localhost kernel: [ 5505.357476] hald-addon-stor used greatest stack depth: 4924 bytes left
Comment 41 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-12-10 09:37:22 UTC
looks like your drive is dying.
Comment 42 Dmitri Bogomolov 2009-12-10 12:13:00 UTC
(In reply to comment #41)
> looks like your drive is dying.
> 

Did you mean CD-ROM drive or maybe it's scratched disk? So, maybe all reports in this page are related to hardware damage?
Comment 43 Samuli Suominen (RETIRED) gentoo-dev 2010-09-28 05:59:47 UTC
Can we get a update on this? Anyone?

Current stable is sys-apps/hal-0.5.14-r2 but it's deprecated by sys-fs/udisks and sys-power/upower.
Comment 44 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-09-30 12:30:24 UTC
Please get back to us, anyone.