using sys-apps/hal-0.5.5.1-r3 i searched a lot this seems not a duplicate. why? because: /etc/init.d/hald start * Starting Hardware Abstraction Layer daemon ... [ !! ] doesn't start but doing: start-stop-daemon --start -q --exec /usr/sbin/hald -- --use-syslog works! and hald system works too. i suspect it needs a variable or something like that. i updated all conf files, using the default ones. any idea?
i can add that /var/run/hald.pid contains a integer number so it seems that hal starts but dies nothing in my log files :(
i fixed this way: edited init script adding: export HOME=/root export DISPLAY=:0.0 export OSTYPE=linux-gnu export HOSTNAME=blight export HOSTTYPE=i686 export HOME=/root i had a similar problem with a perl script...
The real question is what's screwed up on your system. because right now you're the only one that can duplicate it.... I'd start to strip out one env var at a time till you figure out the one required.
ok i got it reduced to minimum: i just need to set the PATH export PATH=/sbin:/bin:/usr/sbin:/usr/bin any idea why?
try hal-0.5.7
0.5.7 seems broken completly :) /etc/init.d/hald start * Caching service dependencies ... [ ok ] * Starting D-BUS system messagebus ... [ ok ] * Starting Hardware Abstraction Layer daemon ... ...waiting for nothing top shows no cpu usage... root 29048 0.2 0.3 3136 1724 pts/0 S+ 17:56 0:00 /bin/bash /sbin/runscript.sh /etc/init.d/hald start 106 29430 0.0 0.1 3816 644 ? Ss 17:56 0:00 /usr/bin/dbus-daemon --system root 29453 0.0 0.2 3136 1176 pts/0 S+ 17:56 0:00 /bin/bash /sbin/runscript.sh /etc/init.d/hald start root 29458 0.0 0.1 3200 884 pts/0 S+ 17:56 0:00 /usr/sbin/hald --use-syslog root 29459 0.0 0.0 0 0 ? Zs 17:56 0:00 [hald] <defunct> no activities at all. same if i remove -q from start-stop-daemon. if i keep export PATH=/sbin:/bin:/usr/sbin:/usr/bin it starts and works. 119 30612 7.8 1.0 6720 5288 ? Ss 18:01 0:01 /usr/sbin/hald --use-syslog root 30613 0.1 0.1 2808 964 ? S 18:01 0:00 hald-runner 119 30619 0.0 0.1 2000 788 ? S 18:01 0:00 /usr/libexec/hald-addon-acpi 119 30625 0.0 0.1 2008 800 ? S 18:01 0:00 /usr/libexec/hald-addon-keyboard root 30634 0.0 0.1 1884 628 ? S 18:01 0:00 /usr/libexec/hald-addon-storage root 30636 0.0 0.1 1888 632 ? S 18:01 0:00 /usr/libexec/hald-addon-storage
Patrizio: Your c#2 said you added 6 env vars to the init script and it didn't work but your follow ups you switched it to PATH rather then any of those 6 env vars. Sounds to me like it's something else not PATH related. Please include the obligitory emerge --info.
in addition... what's syslog say? Try running the initscript with --verbose=yes --daemon=no
/etc/init.d/hald start * Caching service dependencies ... [ ok ] * Starting Hardware Abstraction Layer daemon ... [ !! ] Mar 22 10:48:10 blight hald[22151]: 10:48:10.239 [I] hald.c:469: hal 0.5.7 Mar 22 10:48:10 blight hald[22151]: 10:48:10.240 [I] hald.c:534: Will not daemonize Mar 22 10:48:10 blight hald[22151]: 10:48:10.241 [I] hald_dbus.c:3236: local server is listening at unix:abstract=/tmp/hald-local/dbus-0AhazNhZtR,guid=5a1d2144c1bfb6bb48817108d3c27b00 Mar 22 10:48:10 blight hald[22151]: 10:48:10.244 [E] hald_runner.c:108: Could not spawn runner : 'Failed to execute child process "hald-runner" (No such file or directory)' it doesn't find the binary, that's why i'm telling it's a path problem Portage 2.1_pre6-r5 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16 i686) ================================================================= System uname: 2.6.16 i686 Pentium III (Katmai) Gentoo Base System version 1.12.0_pre16 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.91.0.6-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -ffast-math" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/mail/dspam /opt/openjms/config /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control /var/run/dspam" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -ffast-math -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks fixpackages metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://gentoo.ngi.it" LANG="it_IT.utf8" LC_ALL="it_IT.utf8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,--as-needed -Wl,-hashvals -Wl,-zdynsort" LINGUAS="it" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/myportage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X X509 Xaw3d a52 aac aalib accessibility acl acpi activefilter adns alsa apache2 apm arts asf audiofile avi bash-completion berkdb bidi bitmap-fonts bootsplash browserplugin bzip2 cairo caps cdda cddb cdio cdparanoia cdr cgi chroot clamav cli client codecs crypt css ctype cups curl dba dbus dga dhcp directfb djbfft dri edl eds emboss encode ethereal exif expat extraengine faac faad fam fastbuild fbcon ffmpeg fftw firefox flac flash foomaticdb force-cgi-redirect foreign-package fortran ftp gcj gd gdbm geometry ggi gif gimp gimpprint glibc-omitfp glut glx gnokii gnome gnutls gphoto2 gpm graphviz gs gstreamer gtk gtk2 gtkhtml guile h264 hal iconv idea idn imagemagick imap imlib innodb ipod irda irmc jack java javascript jikes jit joystick jpeg jpeg2k junit justify kde kdeenablefinal kerberos kqemu lame lcd lcms ldap libcaca libclamav libg++ libgda libusb libwww lirc live lm_sensors lua lzo mad mailwrapper matroska md5sum mdb memlimit mhash mikmod mime mmx mmx2 mmxext mng mono motif mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mpeg4 mplayer msn msnextras musepack mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses neXt network ngui nls nntp no_wxgtk1 nobsh nopie nossp noxalan nptl nptlonly nsplugin oav odbc ogg openal opengl openssl operanom2 oss pam pcre pda pdf pdflib pdo pear perl php png pnp posix postgres ppds pthreads python qemu-fast qhull qt quicktime quotas readline real rrdtool rtc ruby samba scanner sdl server session sftplogging sguil simplexml slang slp snortsam soap sockets socks5 softmmu softquota spamassassin speex spell spl sqlite3 sse ssl subject-rewrite svg svga tcltk tcpd tetex tga theora tiff tokenizer truetype truetype-fonts trusted type1-fonts udev unicode usb userlocales vidix vorbis win32codecs wma wmf wmv wsconvert wxwindows x264 xanim xchatdccserver xchattext xcomposite xine xinerama xml xml2 xmlrpc xmms xosd xpm xprint xsl xv xvid xvm xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev input_devices_joystick kernel_linux linguas_it userland_GNU video_cards_i128 video_cards_fbdev video_cards_vesa video_cards_vga video_cards_ati" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, MAKEOPTS
what's syslog say? env | grep PATH as root add echo ${PATH} to the init script
i already pasted syslog: Mar 22 10:48:10 blight hald[22151]: 10:48:10.239 [I] hald.c:469: hal 0.5.7 Mar 22 10:48:10 blight hald[22151]: 10:48:10.240 [I] hald.c:534: Will not daemonize Mar 22 10:48:10 blight hald[22151]: 10:48:10.241 [I] hald_dbus.c:3236: local server is listening at unix:abstract=/tmp/hald-local/dbus-0AhazNhZtR,guid=5a1d2144c1bfb6bb48817108d3c27b00 Mar 22 10:48:10 blight hald[22151]: 10:48:10.244 [E] hald_runner.c:108: Could not spawn runner : 'Failed to execute child process "hald-runner" (No such file or directory)' and in the ebuild i have my root PATH * Starting D-BUS system messagebus ... [ ok ] * Starting Hardware Abstraction Layer daemon ... /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/athena/sbin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.0:/opt/intel/compiler90/bin:/opt/intel/fortran90/bin:/opt/xmingw/bin:/opt/stuffit/bin:/opt/sun-jdk-1.5.0.06/bin:/opt/sun-jdk-1.5.0.06/jre/bin:/usr/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/opt/vmware/workstation/bin:/usr/bin/scripts:/sbin:/usr/sbin/:/usr/bin:/opt/bin:/bin:/usr/X11R6/bin:/usr/share/karamba/bin:/opt/Omni/bin
same Problem here... using hal-0.5.7, dbus-0.60-r4 tried setting PATH as mentioned above as well as starting with start-stop-daemon without success, hald just refuses to work. env | grep PATH: MANPATH=/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6/man::/opt/blackdown-jdk-1.4.2.03/man PRELINK_PATH_MASK=/usr/lib/gstreamer-0.10:/usr/lib/gstreamer-0.8 GUILE_LOAD_PATH=/usr/share/guile/1.6 PATH=/sbin:/bin:/usr/sbin:/usr/bin DCCC_PATH=/usr/lib/distcc/bin PYTHONPATH=/usr/lib/portage/pym CLASSPATH=. INFOPATH=/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6/info emerge --info: Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.3.6, glibc-2.3.5-r3, 2.6.15-gentoo-r1 i686) ================================================================= System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon -O2 -pipe -fomit-frame-pointer -mmmx -m3dnow" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon -O2 -pipe -fomit-frame-pointer -mmmx -m3dnow" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache digest distlocks fixpackages sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="de_DE.UTF-8" LC_ALL="de_DE.UTF-8" LINGUAS="de" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dfx 3dnow 3dnowext X a52 aac acpi alsa apache2 audiofile avi berkdb bitmap-fonts bzip2 cairo cddb cdr cli crypt ctype cups curl dba dbus dri dvb dvd dvdr emboss encode esd exif expat fam fastbuild ffmpeg firefox flac force-cgi-redirect fortran ftp gd gdbm gif gjc glut gmp gnome gnutls gstreamer gtk gtk2 gtkhtml guile hal howl idn imagemagick imap imlib isdnlog java jpeg lcms libcaca libg++ libwww mad md5sum memlimit mhash mikmod mmx mng mono mp3 mpeg musicbrainz nautilus ncurses network nis nls nntp nptl nsplugin objc ogg oggvorbis opengl oss pam pam_console pcre pdf pdflib perl php png posix pppd python quicktime readline real ruby sdl session simplexml slang slp smtp soap sockets sox speex spell spl sse ssl tagwriting tcltk tcpd theora tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb v4l vcd vidix vorbis win32codecs wxwindows xml xml2 xsl xv xvid zlib linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LDFLAGS
Same here with dbus 0.61-r1 and hal 0.5.7-r1 The hald-runner hald looks for just doesn't exist anywhere on the system... ;o( emerge --info: Portage 2.1_pre10-r3 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.4-r2, 2.6.16.14 i686) ================================================================= System uname: 2.6.16.14 i686 VIA Nehemiah Gentoo Base System version 1.12.0_pre19 dev-lang/python: 2.3.5, 2.4.3-r1 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=i686 -msse -mmmx -mfpmath=sse,387 -Os -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/ share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config / var/bind /var/qmail/alias /var/qmail/control /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=i686 -msse -mmmx -mfpmath=sse,387 -Os -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo ftp://ftp.informatik.rwth-aachen.de/pub/Linux/gentoo http://distfiles.gentoo.org http://www.i biblio.org/pub/Linux/distributions/gentoo" LANG="de_DE" LC_ALL="de_DE" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/home" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="x86 X a52 aac aalib acl acpi alsa amr apache2 apm arts asf audiofile avahi avi bash-completion bcmath bcp berkdb bidi big-tables bitmap-fonts bjam bookmark s bzip2 bzlib calendar caps cdb cddb cle266 cli cpdflib crypt ctype cups curl curlwrappers dba dbox2 dbus dga divx djvu dmi doc dri dts dvb dvd eap-tls eds embo ss encode esd exif extensions extrafilters faac faad fam fbcon festival fftw filepro firefox flac flatfile fontconfig foomaticdb fortran ftp gd gdbm ggi gif gmp gnome gnutls gpm gs gstreamer gtk gtk2 gtkhtml hal hbci howl-compat iconv ieee1394 imagemagick imap imlib inifile ipv6 isdnlog jack java joystick jpeg jpeg2k k erberos lame latin1 ldap libg++ libwww lirc livecd logrotate lufsusermount mad maildir matroska mbrola mcve mdnsresponder-compat mikmod mime ming mmx mng modplu g mono motif mp3 mpeg mpm-worker mppe-mppc multiuser musepack mxhash mysql ncurses network nls nptl nptlonly odbc offensive ogg oggvorbis openal opengl pam pcnt l pcre pdf pdflib perl php pie png posix postgres pppd pyste python qt qt4 quicktime quota quotes readline recode reflection rtsp samba sane sasl sdl sensors se ssion sharedmem shout simplexml skins slp sndfile snmp soap sockets speex spell spl sse ssl svga swat syslog sysvipc tcltk tcpd tetex theora threads tidy tiff t okenizer tools transcode truetype truetype-fonts type1-fonts unichrome unicode usb utf8 v4l v4l2 vorbis vorbis-psy win32codecs wmf wxwindows x264 xfs xine xiner ama xml xml2 xmlrpc xmms xorg xosd xpm xprint xsl xv xvid xvmc xxmc zip zlib elibc_glibc fritzcapi_cards_fcpci kernel_linux userland_GNU video_cards_cle266 vide o_cards_via" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS
Maybe my case isn't connected with this problem, but I've found that if
Maybe my case isn't connected with this problem, but I've found that if hald-runner is compiled with -DG_DISABLE_ASSERT in CFLAGS it'll get SIGSEGV, and hald won't start.
Any news about this ? I'm using ~x86 and never got this bug.
Gilles, Thx for the help on a bunch of bugs recently. :) But I can't reproduce this on the 20 or so Gentoo boxes I've got access to. Steve can't reproduce it on his boxes or the ones at his office. Saleem can't reproduce it either. It's kind of hard to know what to fix...
:) I'm administrating 10 boxes at my club and had no problem with hald either. I'm using mix of ~x86 and x86 with kde and gnome installed and none of my own boxes have this problem. I cannot reproduce it. Patrizio, do you still have this problem ? I recommend you to test flameeyes overlay which includes a new binutils with corrections regarding --as-needed and other linker options. I suggest you to go on a gentoo irc channel (don't know which one is appropriate), it migth be more easy to fix that.
i'm abroad, so i can't test actually. i'll test next week, when i'll be at home
I'm on amd64 and first tried the stable 0.5.5.1-r3, but with this i got this error: * Starting Hardware Abstraction Layer daemon ... [ !! ] After upgrading to 0.5.7-r3, everything worked like a charm! Portage 2.1-r1 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.16-ck12 x86_64) ================================================================= System uname: 2.6.16-ck12 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.15 ccache version 2.4 [enabled] app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.2 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r2 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe -msse3 -fno-ident" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf" CXXFLAGS="-march=k8 -O2 -pipe -msse3 -fno-ident" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" MAKEOPTS="-j2" 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/local/portage /usr/portage/local/layman/liferea_overlay /usr/portage/local/layman/kpex-media /usr/portage/local/layman/portage-xgl" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="amd64 X a52 aac alsa apache2 avi bash-completion bitmap-fonts cairo cli crypt cups dbus dlloader dri dvd dvdr eds emboss encode fam flac foomaticdb fortran gd gif glibc-omitfp gpm gstreamer gtk gtk2 imlib isdnlog javascript jpeg lzw lzw-tiff mad mp3 mpeg musepack mysql ncurses nptl nptlonly nvidia ogg oggvorbis opengl pam pcre pdflib perl php png pppd python qt3 qt4 quicktime readline reflection samba sdl session spell spl sse3 ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis xml xml2 xorg xpm xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
I have hald failing to start on init about half of the times, whereas about half of the times it succeeds. It always succeeds if I launch it manually with /etc/init.d/hald start if it failed previously. I am using RC_PARALLEL_STARTUP="yes", so it might be a race condition or so. Will test without parallel startup and try to get some debug information when I have some more time to do a massive amount of reboots. I'm not sure if this might be related at this point, if someone is sure it isn't, I should probably create a new bug?
in reply to comment #20, please don't forget to add your emerge --info if you can reproduce this problem.
I haven't seen hald failing to start as of late with RC_PARALLEL_STARTUP after various updates to various things. It does show as failed sometimes (the two red exclamation marks), but rc-status says it's launched and it is (stuff needing hal daemon works fine). I get these curious exclamation marks usually for one init item per boot, with varying package it shows it to. However, this is probably something related to baselayout, and not relevant to this bug entry. Please keep in mind I'm not the OP (and the problem was probably different) when considering closing this bug.
hald needs these dependencies added to the init script use logger after dns nscd I've updated the init script in portage, so emerge --sync && emerge -1 sys-apps/hal to get the fix.
i'm now on a core2 (amd64 profile) machine and i still have the same problem, but now i'm completly unable to run it. any idea? Portage 2.1.2.5 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r1, 2.6.20.4 x86_64) ================================================================= System uname: 2.6.20.4 x86_64 Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz Gentoo Base System release 1.12.10 Timestamp of tree: Tue, 01 May 2007 08:30:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] dev-java/java-config: 1.3.7, 2.0.31-r7 dev-lang/python: 2.4.4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r7 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.50.0.15 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.20-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -pipe -march=nocona -mtune=nocona -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/mail/dspam /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/run/dspam" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O3 -pipe -march=nocona -mtune=nocona -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="39" LC_ALL="it_IT.utf8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--hash-style=both" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/mnt/Dati/Gentoo/tmp/" PORTDIR="/mnt/Dati/Gentoo/portage/" PORTDIR_OVERLAY="/usr/local/portage/myportage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="64bit 7zip X X509 Xaw3d a52 aac aalib accessibility ace acl acpi activefilter adns aiglx aio alsa amd amd64 amr amrr amuled ao aoss apache2 arj asf aspnet2 async atk audacious audiofile authfile automount bash-completion berkdb bidi binary-drivers bitmap-fonts bittorrent bootsplash browserplugin bzip2 cairo calendar caps cdda cddb cdio cdparanoia cdr cgi charconv chardet chroot clamav clearcase cli client codecs corba cracklib crypt cscope css ctype cups curl cvs daemon dar64 dba dbus depth32 dga dhcp dio directfb diskio divx djbfft dmi dri dvd dvdr dvdread edl encode ethereal exif expat extraengine faac faad fam fastbuild fbcon ffmpeg fftw firefox flac flash foreign-package fortran ftp gcj gd gdbm geometry ggi gif gimp gimpprint glibc-omitfp glitz glut glx gnokii gnome gnutls gphoto2 gpm graphviz gs gtk gtk2 gtkhtml guile h264 hal iconv idea idn imagemagick imap innodb ipod irda irmc isdnlog jack java java5 javamail javascript jikes jit joystick jpeg jpeg2k junit justify kde kdeenablefinal kdehiddenvisibility kerberos kqemu lame lcd lcms ldap libcaca libclamav libg++ libgda libusb lirc live lm_sensors lua lzo mad mailwrapper matroska md5sum mdb mhash midi mikmod mime mmx2 mng mono mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mpeg4 mplayer mpm-prefork msn msnextras musepack mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses neXt network ngui nls nntp no_wxgtk1 nobsh nopie nossp noxalan nptl nptlonly nsplugin nv nvidia oav odbc ogg openal opengl openssl operanom2 pam pcre pda pdf pdo pear perl php pmu png pnp postgres ppds pppd pthreads python qemu-fast qhull qt3 qt4 quicktime quotas readline reflection rrdtool rtc ruby samba scanner sdl server session sftplogging sguil slang slp smp snortsam soap sockets socks5 softmmu softquota spamassassin speex spl sqlite3 sse3 ssl ssse3 subject-rewrite svg tcltk tcpd tetex tga theora tiff tokenizer truetype truetype-fonts trusted type1-fonts unicode usb userlocales vorbis wma wmf wmv wsconvert wxwindows x264 xanim xchatdccserver xchattext xcomposite xine xinerama xml xml2 xmlrpc xorg xosd xpm xprint xsl xv xvid xvm 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="fbdev vesa vga nv nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Patrizio, I see you are running ~amd64 now, could you test with hal-0.5.9 ? If it is still a path issue, could you attach the output of equery files hal (from gentoolkit package)
unluckely doesn't work and even setting path doesn't let me start hal :(
Please attach the requested previously information. 1) test hal 0.5.9 2) equery files hal
could you also retry comment #8 ? If the path thing doesn't make it work, maybe there is something different this time.
Created attachment 119475 [details] files list
this is the version i'm using [ebuild R ] sys-apps/hal-0.5.9-r1 USE="acpi crypt -debug -dell -disk-partition -doc -pcmcia (-selinux)" 0 kB
Last night I updated hal to version 0.5.9-r1 on amd64 and it refused to run again. Running start-stop-daemon --start -q --exec /usr/sbin/hald -- --verbose=yes --daemon=no gave me the reason it didn't want to work: inotify not enabled in kernel. After enabling inotify (File systems -> Inotify file change notification support) and loading the new kernel it started working again. I hope that help you to solve your problem.
Patrizio, could you recompile hal with less aggressive cflags ? (like CFLAGS="-O2") I noticed that hald-runner is in /usr/libexec/hald-runner so it will never be on the path of anything. It's hal to needs to find it.
yes the problem is the path... start-stop-daemon --start -q --exec /usr/sbin/hald -- --verbose=yes --daemon=no 23:30:29.793 [I] hald.c:533: hal 0.5.9 23:30:29.793 [I] hald.c:598: Will not daemonize 23:30:29.794 [I] hald_dbus.c:4807: local server is listening at unix:abstract=/var/run/hald/dbus-LWhnNZWeOF,guid=a6335a6e6f15873bdf00f6004675a7f5 23:30:29.795 [E] hald_runner.c:292: Could not spawn runner : 'Failed to execute child process "hald-runner" (No such file or directory)'
same issue with no flags set at all
could you check by hand that hald-runner is there and run hald with strace ?
Created attachment 122390 [details] strace output
from the trace i don't see the request/access to that process. no CFLAGS/LDFLAGS set...
I'm sorry to insist, but that still doesn't tell me if you have hald-runner in /usr/libexec/hald-runner. If it is not, try setting HALD_RUNNER_PATH to the path where it is located and launch hald from with this variable in its environment. # HALD_RUNNER_PATH="/usr/libexec" hald --daemon=no --verbose=yes not 100% sure it will work though.
ls /usr/libexec/hald-runner -l -rwxr-xr-x 1 root root 19240 17 giu 23:35 /usr/libexec/hald-runner HALD_RUNNER_PATH="/usr/libexec" hald --daemon=no --verbose=yes 22:00:56.901 [I] hald.c:533: hal 0.5.9 22:00:56.901 [I] hald.c:598: Will not daemonize 22:00:56.901 [I] hald_dbus.c:4807: local server is listening at unix:abstract=/var/run/hald/dbus-KmW0icYkQQ,guid=f0505281a03cf7aa4f108f004676e478 22:00:56.902 [E] hald_runner.c:292: Could not spawn runner : 'Failed to execute child process "hald-runner" (No such file or directory)'
we are kind of out of ideas with Cardoe. Maybe you could try sending a mail to hal-devel mailing list and point them to this bug report. They'll have different ideas maybe.
no news with the new 0.5.9.1 version
I have had the same problem with hald failing to start. I checked my kernel for Inotify: Inotify file change notification support (enabled). Inotify support for userspace. (not enabled). enabling Inotify support for userspace and rebuilding the kernel fixed the problem. I am using the following ebuilds sys-apps/hal-0.5.9-r1 sys-kernel/gentoo-sources-2.6.20-r8
i already tried that CONFIG_INOTIFY=y CONFIG_INOTIFY_USER=y # CONFIG_QUOTA is not set CONFIG_DNOTIFY=y doesn't work :(
I have the same problems in a Pentium-M Centrino (Vaio VGN-FS760/w)
my emerge --info: enterprise linux # emerge --info Portage 2.1.3.6 (default-linux/x86/2007.0, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-gentoo-r4 i686) ================================================================= System uname: 2.6.22-gentoo-r4 i686 Intel(R) Pentium(R) M processor 1.86GHz Gentoo Base System release 1.12.10 Timestamp of tree: Tue, 21 Aug 2007 02:00:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/sandbox: 1.2.18.1 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 sys-devel/binutils: 2.17-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -ftracer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openjms/config /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/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" CXXFLAGS="-O2 -march=pentium-m -ftracer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="en en_GB fr it de pt_BR" 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.gentoo.org/gentoo-portage" USE="3ds X X509 Xaw3d a52 aac aalib acl acpi activefilter ada adns afs aiglx aim akode alsa amr amrnb amrwb apache2 applet artworkextra asf async atm audiofile avahi bash-completion battery bcmath bcp beagle berkdb bidi bitmap-fonts bjam bl blas blender-game blitz bluetooth bogofilter bonobo branding bzip2 cairo calendar canna cardbus cdb cdda cddb cdf cdparanoia cdr cgi chm clamav clearcase cli cpufreq cracklib crypt ctype cups curl curlwrappers daap dbm dbus dbx dcraw devhelp dhcp directfb divx divx4linux djvu dmi doc docdri dri dts dv dvd dvdnav dvdr dvdread dvi dxr3 eap-tls ecc eds emboss emerald enca encode esd evo exif expat extrafilters fam fame fasttrack fbcon ffmpeg fftw firefox flac foomatic foomaticdb fortran freeimage freetds freetts freewnn ftp gadu galago gb gcj gd gdbm gdl geoip ggi gif ginac glade glib glitz gmedia gmp gnome gnustep gnutella gnutls gphoto2 gpm grace graphviz groupwise gs gsf gsl gsm gstreamer gtk gtk2 gtkhtml guile hal hddtemp hdf howl hpn ical iconv icq idea idn ieee1394 imagemagick imap imlib inherit-graph ipod ipv6 isdnlog jabber jack java javamail javascript jbig jce jms jmx joystick jpeg jpeg2k kdeenablefinal keyring kqemu ladcca ladspa lame lash latex lcms ldap lesstif libburn libcaca libg++ libgda libnotify libsamplerate libwww live lm_sensors logrotate lua lzo m17n-lib mad madwifi magic maildir mailwrapper matroska mbox mcal mcve md5sum mdnsresponder-compat meanwhile memlimit mhash midi migemo mikmod milter mime mmap mmx mmxext mng mnogosearch modplug mono motif mozsha1 mp2 mp3 mpeg mpeg2 mpeg4 mplayer msn mudflap musepack musicbrainz nas nautilus ncurses neXt netcdf netjack network networkmanager nis nls nntp nptl nptlonly nsplugin nvidia offensive ofx ogg ole openal openct openexr opengl openmp osc oscar oss pam pango pcmcia pcntl pcre pda pdf perl pfpro php pidgin plotutils png pnm pnp portaudio postgres povray ppds pppd prediction preview-latex pulseaudio pyste python qemu qq qt qt3support qt4 quicktime radius rar readline real reflection rtc ruby samba sasl scanner sdl session sftplogging sharedext shorten silc skey slp sms sndfile soap sockets socks5 sourceview sox speex spell spl sql srt sse sse2 ssl startup-notification subtitles subversion svg svga swat symlink sysvipc t1lib tagwriting tcl tcltk tcpd tetex tga theora threads thumbnailing thunderbird tidy tiff tk tokenizer toolbar totem truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 valgrind vcd vcdimager vdr videos vidix vim-syntiax visualization vorbis wavpack wddx webdav widescreen wifi win32codecs winbind wmf wmp wxwindows x264 x86 xanim xchatdccserver xcomposite xfs xine xinerama xml xmlrpc xorg xosd xpm xprint xscreensaver xsl xulrunner xv xvid xvmc yahoo yaz zephyr zeroconf 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" CAMERAS="panasonic" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev joystick mutouch vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB fr it de pt_BR" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Same issue on a dual P3 after complete system upgrade (emerge -uD world && revdep-rebuild): hald-initscript won't start hald Downgraded back to 0.5.7.1-r5 (and ran etc-update, of course), and it works again. simon@maseltov ~ $ emerge --info Portage 2.1.2.12 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r5-smp-reiser4 i686) ================================================================= System uname: 2.6.22-gentoo-r5-smp-reiser4 i686 Pentium III (Coppermine) Gentoo Base System release 1.12.9 Timestamp of tree: Thu, 30 Aug 2007 21:20: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_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.17 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 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium3 -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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer" DISTDIR="/var/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.inode.at/" LANG="de_AT.UTF-8" LINGUAS="de" MAKEOPTS="-j5" PKGDIR="/var/portage/Packages" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes" 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="/var/portage" PORTDIR_OVERLAY="/usr/local/portage/crossdev" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="a52 aac aalib acpi alsa apache2 arts avi bitmap-fonts bzip2 cairo caps cddb cdparanoia cdr cli cpudetection cracklib crypt cups curl dbus divx4linux dri dv dvd dvdr dvdread encode exif expat ffmpeg flac fortran gd gdbm gif gimp gmp gpm gtk gtk2 hal iconv ieee1394 imagemagick imlib isdnlog ivtv jack jack-tmpfs jpeg kde kdexdeltas lcms libsamplerate matroska midi mmx mng mozilla mozsvg mp3 mpeg mudflap musicbrainz mysql ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis openexr opengl openmp pam pcre pdf pdflib perl png ppds pppd python qt3 quicktime readline real reflection scanner sdl session smp sox spell spl sse ssl svg tcl tcpd theora tiff tk truetype truetype-fonts type1-fonts unicode usb v4l vcd vorbis win32codecs wmf x264 x86 xcomposite xine xinerama xml xorg xprint xscreensaver xv xvid xvmc zlib" ALSA_CARDS="ice1712 bt87x 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev v4l" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
for me 0.5.7 doesn't work. actually on my amd64 profile i never had hald running....
BTW, my DVD is a TSSTcorpCD/DVDW ~ $ lshal | grep DVD | grep info.product info.product = 'TSSTcorpCD/DVDW SH-S182D' (string) Maybe there is some relation to bug #168033 ? I never had the problems described there, though.
Recently, I tried to upgrade to hal-0.5.9.1-r3.. Same thing: When the machine boots or when I try to run /etc/init.d/hald start manually, I get: /etc/init.d/hald start * Starting Hardware Abstraction Layer daemon ... and then nothing happens. A subsequent Ctrl C gives: * ERROR: hald caught an interrupt NB.: Basically this means that I cannot boot, since I still have no terminal when hal is going to start (indefinitely...). revdep-rebuild has nothing to complain, when I nevertheless re-emerge udev, no change. When I do # HALD_RUNNER_PATH="/usr/libexec" hald --daemon=no --verbose=yes and then very quickly a Ctrl C, I get the following: 15:28:45.919 [I] coldplug.c:252: new event (dev node from udev) '/sys/block/loop5' '/dev/loop/5' 15:28:45.920 [I] coldplug.c:252: new event (dev node from udev) '/sys/block/loop6' '/dev/loop/6' 15:28:45.920 [I] coldplug.c:252: new event (dev node from udev) '/sys/block/loop7' '/dev/loop/7' 15:28:45.923 [I] osspec.c:752: Synthesizing powermgmt events... 15:28:45.925 [E] acpi.c:934: Couldn't open /proc/acpi/battery: Error opening directory '/proc/acpi/battery': No such file or directory 15:28:45.926 [I] acpi.c:905: Processing /proc/acpi/processor/CPU2 15:28:45.926 [I] acpi.c:905: Processing /proc/acpi/processor/CPU1 15:28:45.927 [E] acpi.c:934: Couldn't open /proc/acpi/fan: Error opening directory '/proc/acpi/fan': No such file or directory 15:28:45.927 [E] acpi.c:934: Couldn't open /proc/acpi/ac_adapter: Error opening directory '/proc/acpi/ac_adapter': No such file or directory 15:28:45.928 [E] acpi.c:934: Couldn't open /proc/acpi/button/lid: Error opening directory '/proc/acpi/button/lid': No such file or directory 15:28:45.929 [E] acpi.c:934: Couldn't open /proc/acpi/button/power: Error opening directory '/proc/acpi/button/power': No such file or directory 15:28:45.929 [E] acpi.c:934: Couldn't open /proc/acpi/button/sleep: Error opening directory '/proc/acpi/button/sleep': No such file or directory 15:28:45.930 [I] acpi.c:1012: Processing sonypi display 15:28:45.930 [I] osspec.c:754: ACPI capabilities found 15:28:45.931 [I] osspec.c:762: Done synthesizing events Run started hald-probe-smbios (10000) (0) ! full path is '/usr/libexec/hald-probe-smbios', program_dir is '/usr/libexec' 15:28:45.979 [I] hald_dbus.c:4766: *************************** 15:28:45.980 [I] hald_dbus.c:4767: ********* got a connection 809d300 15:28:45.980 [I] hald_dbus.c:4768: *************************** 15:28:46.013 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer, key=system.firmware.vendor [24683]: 15:28:46.014 [D] probe-smbios.c:78: Setting system.firmware.vendor='American Megatrends Inc.' 15:28:46.055 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer, key=system.firmware.version [24683]: 15:28:46.056 [D] probe-smbios.c:78: Setting system.firmware.version='07.00T' 15:28:46.057 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer, key=system.firmware.release_date [24683]: 15:28:46.058 [D] probe-smbios.c:78: Setting system.firmware.release_date='11/29/2002' 15:28:46.059 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer, key=system.hardware.vendor [24683]: 15:28:46.060 [D] probe-smbios.c:78: Setting system.hardware.vendor='American Megatrends Inc.' 15:28:46.061 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer, key=system.hardware.product [24683]: 15:28:46.062 [D] probe-smbios.c:78: Setting system.hardware.product='VIA694T/686B' 15:28:46.063 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer, key=system.hardware.version [24683]: 15:28:46.064 [D] probe-smbios.c:78: Setting system.hardware.version='0000000' 15:28:46.065 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer, key=system.hardware.serial [24683]: 15:28:46.065 [D] probe-smbios.c:78: Setting system.hardware.serial='00000000' 15:28:46.066 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer, key=system.hardware.uuid [24683]: 15:28:46.067 [D] probe-smbios.c:78: Setting system.hardware.uuid='Not Present' 15:28:46.068 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer, key=system.chassis.manufacturer [24683]: 15:28:46.068 [D] probe-smbios.c:78: Setting system.chassis.manufacturer='' 15:28:46.069 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer, key=system.chassis.type [24683]: 15:28:46.070 [D] probe-smbios.c:78: Setting system.chassis.type='Desktop' [24683]: 15:28:46.071 [D] probe-smbios.c:99: Copying system.hardware.vendor -> smbios.system.manufacturer 15:28:46.072 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer, key=smbios.system.manufacturer [24683]: 15:28:46.074 [D] probe-smbios.c:99: Copying system.hardware.product -> smbios.system.product 15:28:46.075 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer, key=smbios.system.product [24683]: 15:28:46.076 [D] probe-smbios.c:99: Copying system.hardware.version -> smbios.system.version 15:28:46.077 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer, key=smbios.system.version [24683]: 15:28:46.078 [D] probe-smbios.c:99: Copying system.hardware.serial -> smbios.system.serial 15:28:46.079 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer, key=smbios.system.serial [24683]: 15:28:46.080 [D] probe-smbios.c:99: Copying system.hardware.uuid -> smbios.system.uuid 15:28:46.081 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer, key=smbios.system.uuid [24683]: 15:28:46.082 [D] probe-smbios.c:99: Copying system.firmware.vendor -> smbios.bios.vendor 15:28:46.083 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer, key=smbios.bios.vendor [24683]: 15:28:46.084 [D] probe-smbios.c:99: Copying system.firmware.version -> smbios.bios.version 15:28:46.085 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer, key=smbios.bios.version [24683]: 15:28:46.086 [D] probe-smbios.c:99: Copying system.firmware.release_date -> smbios.bios.release_date 15:28:46.087 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer, key=smbios.bios.release_date [24683]: 15:28:46.088 [D] probe-smbios.c:99: Copying system.chassis.manufacturer -> smbios.chassis.manufacturer 15:28:46.089 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer, key=smbios.chassis.manufacturer [24683]: 15:28:46.090 [D] probe-smbios.c:99: Copying system.chassis.type -> smbios.chassis.type 15:28:46.091 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer, key=smbios.chassis.type 15:28:46.092 [I] hald_dbus.c:4711: ************************ 15:28:46.093 [I] hald_dbus.c:4712: Client to local_server was disconnected for 809d300 15:28:46.093 [I] hald_dbus.c:4713: ************************ 15:28:46.093 [I] hald_dbus.c:4752: *************************** 15:28:46.093 [I] hald_dbus.c:4753: ********* unregistered 809d300 15:28:46.094 [I] hald_dbus.c:4754: *************************** /usr/libexec/hald-probe-smbios exited 15:28:46.098 [W] device_info.c:984: Unhandled rule (0)! 15:28:46.098 [W] device_info.c:984: Unhandled rule (0)! 15:28:46.240 [W] device_info.c:984: Unhandled rule (0)! the last message continuing endlessly until I send the interrupt. Once again, I had to downgrade to 0.5.7.1-r5 which luckily enough is still in the portage tree.
(In reply to comment #50) > Recently, I tried to upgrade to hal-0.5.9.1-r3.. Same thing: Please give the output of the following commands: equery belongs /usr/share/hal/fdi equery belongs /etc/hal/fdi ls -lR /usr/share/hal/fdi ls -lR /etc/hal/fdi Basically, you have a custom FDI file in there that's telling HAL to do bad things.
Sure. simon@maseltov ~ $ equery belongs /usr/share/hal/fdi [ Searching for file(s) /usr/share/hal/fdi in *... ] media-libs/libgphoto2-2.2.1-r1 (/usr/share/hal/fdi) sys-apps/hal-0.5.7.1-r5 (/usr/share/hal/fdi) ======= simon@maseltov ~ $ equery belongs /etc/hal/fdi [ Searching for file(s) /etc/hal/fdi in *... ] sys-apps/hal-0.5.7.1-r5 (/etc/hal/fdi) ========= simon@maseltov ~ $ ls -lR /usr/share/hal/fdi /usr/share/hal/fdi: insgesamt 5 -rw-r--r-- 1 root root 1488 3. Dez 16:53 fdi.dtd -rw-r--r-- 1 root root 1631 3. Dez 16:53 fdi.rng drwxr-xr-x 4 root root 4 3. Dez 16:53 information drwxr-xr-x 4 root root 4 2. Dez 23:55 policy drwxr-xr-x 4 root root 4 3. Dez 16:53 preprobe /usr/share/hal/fdi/information: insgesamt 2 drwxr-xr-x 2 root root 10 3. Dez 16:53 10freedesktop drwxr-xr-x 2 root root 2 3. Dez 16:53 20thirdparty /usr/share/hal/fdi/information/10freedesktop: insgesamt 47 -rw-r--r-- 1 root root 250 30. Mai 2007 10-camera-libgphoto2.fdi -rw-r--r-- 1 root root 609 3. Dez 16:53 10-camera-ptp.fdi -rw-r--r-- 1 root root 1278 3. Dez 16:53 10-cd-dvd-burner.fdi -rw-r--r-- 1 root root 4158 3. Dez 16:53 10-usb-card-readers.fdi -rw-r--r-- 1 root root 30148 3. Dez 16:53 10-usb-music-players.fdi -rw-r--r-- 1 root root 5030 3. Dez 16:53 10-usb-pda.fdi -rw-r--r-- 1 root root 558 3. Dez 16:53 10-usb-zip-drives.fdi -rw-r--r-- 1 root root 1415 3. Dez 16:53 10-wireless-mice.fdi /usr/share/hal/fdi/information/20thirdparty: insgesamt 0 /usr/share/hal/fdi/policy: insgesamt 1 drwxr-xr-x 2 root root 7 3. Dez 16:53 10osvendor drwxr-xr-x 2 root root 2 2. Dez 23:55 20thirdparty /usr/share/hal/fdi/policy/10osvendor: insgesamt 16 -rw-r--r-- 1 root root 470 3. Dez 16:53 10-keyboard-policy.fdi -rw-r--r-- 1 root root 987 3. Dez 16:53 10-laptop-panel-mgmt-policy.fdi -rw-r--r-- 1 root root 2721 3. Dez 16:53 10-power-mgmt-policy.fdi -rw-r--r-- 1 root root 1038 3. Dez 16:53 15-storage-luks.fdi -rw-r--r-- 1 root root 9756 3. Dez 16:53 20-storage-methods.fdi /usr/share/hal/fdi/policy/20thirdparty: insgesamt 0 /usr/share/hal/fdi/preprobe: insgesamt 1 drwxr-xr-x 2 root root 3 3. Dez 16:53 10osvendor drwxr-xr-x 2 root root 2 3. Dez 16:53 20thirdparty /usr/share/hal/fdi/preprobe/10osvendor: insgesamt 3 -rw-r--r-- 1 root root 3064 3. Dez 16:53 10-ide-drives.fdi /usr/share/hal/fdi/preprobe/20thirdparty: insgesamt 0 ========= simon@maseltov ~ $ ls -lR /etc/hal/fdi /etc/hal/fdi: insgesamt 0 drwxr-xr-x 2 root root 48 3. Dez 16:53 information drwxr-xr-x 2 root root 48 3. Dez 16:53 policy drwxr-xr-x 2 root root 48 3. Dez 16:53 preprobe /etc/hal/fdi/information: insgesamt 0 /etc/hal/fdi/policy: insgesamt 0 /etc/hal/fdi/preprobe: insgesamt 0
(In reply to comment #52) > Sure. > > simon@maseltov ~ $ equery belongs /usr/share/hal/fdi > [ Searching for file(s) /usr/share/hal/fdi in *... ] > media-libs/libgphoto2-2.2.1-r1 (/usr/share/hal/fdi) > sys-apps/hal-0.5.7.1-r5 (/usr/share/hal/fdi) libgphoto2 knowingly produces FDI files which cause HAL to crash, bug #172830
(In reply to comment #53) > libgphoto2 knowingly produces FDI files which cause HAL to crash, bug #172830 Indeed, unmerging libgphoto2 did it. Thanks for your reply - just one additional word: how can a normal user = non-developer know? Perhaps one should add a warning or the like to the hal ebuild script.
in the case of libgphoto2, 2.2 is getting really old wrt to udev/hal handling. I would stable it if somebody was answering to my comments on the relevant bug (bug #172830) + fixing the newly found bad udev rules generation problem (bug #201028).
you only need to add support to all camera devices, than udev+hal+libgphoto2 will work fine.
I found the source of this problem. It is a bug in HAL. I guess HAL depends on a previous bug in glib. Then hald tries to start hald-runner it calls g_spawn_async and passes a newly created envoronment with PATH containing the path to hald-runner and the flag G_SPAWN_SEARCH_PATH. HAL expects this to cause g_spawn_async to search the PATH of the child's environment for hald-runner, but this is not what G_SPAWN_SEARCH_PATH means. Older versions of glib probably did what HAL expects (I havn't confirmed this), which might be a reason why it works for some people. Until HAL gets fixed the problem can be worked around by making sure hald-runner is in the path of hald. For example by ading the line "export PATH=/usr/libexec:$PATH" to /etc/init.d/hald.
i found the cause of the original problem i had: compiled pciutils without zlib flag, than compiled hal, than, in some updates, pciutils with zlib...this breaks...
(In reply to comment #58) > i found the cause of the original problem i had: > > compiled pciutils without zlib flag, than compiled hal, than, in some updates, > pciutils with zlib...this breaks... > this has been fixed a while ago already. Was your problem fixed only recently ?
yes recently....don't ask me the exact date, 2008 for sure
i'm going to close it as it got fixed. reopen if you feel this is still around
hald 0.5.12_rc1 seems to be broken again, can't find hald-runner in /usr/libexec. forcing $PATH to include it in /etc/init.d/hald works around the bug. please reopen this bug until it's actually fixed.
0.5.12_rc1-r6 also got the PATH problem : hald --verbose=yes --daemon=no 15:47:44.314 [I] hald.c:671: hal 0.5.12rc1 15:47:44.315 [I] hald.c:736: Will not daemonize 15:47:44.315 [I] hald_dbus.c:5417: local server is listening at unix:abstract=/var/run/hald/dbus-QoVVCKPRCD,guid=7335b45253bee336f38047a44a267f00 15:47:44.317 [I] ck-tracker.c:391: got seat '/org/freedesktop/ConsoleKit/Seat1' 15:47:44.317 [I] ck-tracker.c:342: Got all sessions on seat '/org/freedesktop/ConsoleKit/Seat1' 15:47:44.317 [I] ck-tracker.c:418: Got seats 15:47:44.317 [I] ck-tracker.c:816: Got seats and sessions 15:47:44.318 [E] hald_runner.c:294: Could not spawn runner : 'Failed to execute child process "hald-runner" (No such file or directory)' Don't trust the "log" it's really sys-apps/hal-0.5.12_rc1-r6 which is installed here, there is no extra-version written.
I have started getting this problem as well. It was triggered when I did two things: chnged my FS from ext2 to ext3 and added ZC0301 module to my kernel. Reverting to an earlier monolithic kernel without ZC0301 support did not clear the problem. Reverting to ext2 (remembering to do tune2fs -O ^has_journal) did not clear the problem. I am using hal-0.5.13-r2. By using the various fiddles mentioned by other sufferers I can get hald to start. A problem is that nautilus is continually crashing and restarting saying that it cannot contact inotify, even with hald and hald-runner running. It soaks up mosot of my cpu in so doing. In the meantime I am rebuilding all the components that depend on hal with '-hal' flag. This does not solve the nautilus respawn problem. /usr/src/linux # emerge --info Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.17.13 i686) ================================================================= System uname: Linux-2.6.17.13-i686-Pentium_III_-Katmai-with-gentoo-1.12.13 Timestamp of tree: Sun, 06 Dec 2009 18:30:23 +0000 app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.6.2-r1 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=i686 -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config" 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/terminfo /etc/udev/rules.d" CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ ftp://ftp.kaist.ac.kr/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://mirrors.ludost.net/gentoo/" LDFLAGS="-Wl,-O1" LINGUAS="en he" 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/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X X509 a52 aac accessibility acl acpi alsa apache apache1 asf automount bash-completion berkdb bidi bindist bluetooth branding bzip2 cairo cdparanoia cdr cdrom chroot cli consolekit cracklib crypt css cups cvs cvsgraph cxx dbus devfs26 devmap dga dnsdb dri dts dvd dvdr eds emboss encode evo evolution exif exim exiscan exiscan-acl fam fat ffmpeg firefox flac fortran ftp gdbm gif gimp gnome gpm gstreamer gtk iconv innodb ipv6 java java5 java6 jpeg kde ldap libnotify mad mikmod modules mozilla mp3 mp4 mpeg mudflap mysql mysqli ncurses nls nntp nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime rc5 readline realmedia reflection samba sdl session sndfile sound spamassassin spell spf spl srs ssl startup-notification subversion svg sysfs tcpd thunar tiff tk truetype unicode usb vncviewer vorbis widescreen win32codecs x264 x86 xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="usb-audio emu10k1" 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" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en he" RUBY_TARGETS="ruby18" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="radeon ati vesa fbdev s3 mach64" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS /usr/src/linux #
(In reply to comment #64) Rebuild glib with -O2, see bug #282341
The short story is that I managed to solve my problem. What it comes down to is that we need an enhancement to the init.d/hal script to check the version of udevd that is running. At emerge time hal checks the version of udev, but it does not make such a check when it starts running. In contrast, udevd does make the check. The long story is: I upgraded evolution. This caused all sorts of things also to be upgraded, including udev. The end result was that I finished up with a udev that was incompatible with my kernel. Attempts to install a newer kernel failed because at boot time it could not find its root file system (not yet solved). So may things were broken that eventually I did an 'emerge -uD world'. This solved most, but not all, of my problems: I still had a bad udevd. Downgrading udev fixed some more problems but introduced a silent incompatibility between hal and udev. So, what we need is and init.d time check on the mutual compatibility of kenel/udevd/hald.