Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178526 - sys-apps/hal-0.5.9-r1 fdi generation cache failed
Summary: sys-apps/hal-0.5.9-r1 fdi generation cache failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 256661
  Show dependency tree
 
Reported: 2007-05-14 16:18 UTC by wikwam
Modified: 2009-02-05 13:40 UTC (History)
7 users (show)

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


Attachments
hal-cache-strerror.patch (hal-cache-strerror.patch,522 bytes, patch)
2007-05-24 21:21 UTC, Doug Goldstein (RETIRED)
Details | Diff
strace of hald (strace-hal,36.48 KB, text/plain)
2007-05-29 21:25 UTC, wikwam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wikwam 2007-05-14 16:18:45 UTC
Hi, since i updated to hal-0.5.9-r1 (because of kpowersave) hal wont start anymore.

# hald --verbose=yes --daemon=no

18:05:50.533 [I] hald.c:533: hal 0.5.9
18:05:50.533 [I] hald.c:598: Will not daemonize
18:05:50.533 [I] hald_dbus.c:4807: local server is listening at unix:abstract=/var/run/hald/dbus-BGhOOzqa7a,guid=915dc9b4a574d4d4237eb600464888de
18:05:50.533 [I] hald_runner.c:299: Runner has pid 11205
18:05:50.533 [W] ci-tracker.c:200: Could not get uid for connection: org.freedesktop.DBus.Error.NameHasNoOwner Could not get UID of name 'org.freedesktop.DBus': no such name
18:05:50.533 [E] hald_dbus.c:4462: Cannot get caller info for org.freedesktop.DBus
Runner started - allowed paths are '/usr/libexec:/usr/lib/hal/scripts:/usr/bin'
18:05:50.533 [I] hald_runner.c:180: runner connection is 0x8095848
18:05:50.533 [I] mmap_cache.c:161: Regenerating fdi cache..
Run started hald-generate-fdi-cache (10000) (0)
!  full path is '/usr/libexec/hald-generate-fdi-cache', program_dir is '/usr/libexec'
18:05:50.543 [I] create_cache.c:608: Loading rules
18:06:00.533 [I] mmap_cache.c:137: In regen_cache_cb exit_type=1, return_code=0
18:06:00.533 [E] mmap_cache.c:190: fdi cache regeneration failed!
18:06:00.533 [I] mmap_cache.c:193: fdi cache generation done
18:06:00.533 [I] mmap_cache.c:251: cache mtime is 1179083620
*** [DIE] mmap_cache.c:di_rules_init():68 : Unable to open cache /var/lib/cache/hald/fdi-cache

# emerge --info
Portage 2.1.2.2 (default-linux/x86/2007.0/desktop, gcc-3.4.6, glibc-2.5-r2, 2.6.19-gentoo-r5-genkernel i686)
=================================================================
System uname: 2.6.19-gentoo-r5-genkernel i686 Genuine Intel(R) CPU           U2500  @ 1.20GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 13 May 2007 15:50:01 +0000
ccache version 2.4 [enabled]
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
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.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="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/gconf /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"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.tiscali.nl/ http://gentoo.mirror.solnet.ch http://gentoo.mneisen.org/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acpi alsa apache2 apm arts audiofile bash-completion berkdb bitmap-fonts bluetooth bzip2 cdinstall cdparanoia cdr cli crypt ctype cups dba dri dvd dvdread eds emboss encode esd ethereal exif expat fam fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile hal idn imlib ipv6 jpeg kde lcms ldap libg++ libwww mad madwifi memlimit mikmod mng mono motif mozilla mp3 mpeg mysql ncurses nls nptl nptlonly nsplugin ntfs ogg opengl oss pam pcmcia pcre perl php png posix python qt quicktime readline reiserfs samba sdl session simplexml slang soap sockets spell spl ssl tcltk tcpd threads tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb vorbis wifi win32codecs x86 xinerama xml xml2 xorg xsl xv zlib" ALSA_CARDS="es1968" 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="de" USERLAND="GNU" VIDEO_CARDS="i810 mach64 vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Any suggestion?

Reproducible: Always
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2007-05-14 16:32:48 UTC
ls -l /var/lib/cache/
Comment 2 wikwam 2007-05-14 16:40:50 UTC
# ls -l /var/lib/cache/
insgesamt 4
drwxr-xr-x 2 haldaemon haldaemon 4096 14. Mai 18:27 hald
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2007-05-14 16:46:02 UTC
ls -l /var/lib/cache/hald/
Comment 4 wikwam 2007-05-14 16:50:51 UTC
# ls -l /var/lib/cache/hald/
insgesamt 40
-rw-r--r-- 1 root root 38660 14. Mai 18:48 fdi-cache~
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2007-05-14 17:02:17 UTC
Nuke that file. It's definitely not right.
Comment 6 wikwam 2007-05-14 17:07:29 UTC
i already done, but no effect. still same error.
Comment 7 phl0ri4n 2007-05-14 22:19:16 UTC
amd64 ~ #  hald --verbose=yes --daemon=no
00:17:42.230 [I] hald.c:533: hal 0.5.9
00:17:42.230 [I] hald.c:598: Will not daemonize
00:17:42.231 [I] hald_dbus.c:4807: local server is listening at unix:abstract=/var/run/hald/dbus-KN2gYpAmOB,guid=0cfdecba8bbff49b647e5e004648e006
Runner started - allowed paths are '/usr/libexec:/usr/lib64/hal/scripts:/usr/bin'
00:17:42.238 [I] hald_runner.c:299: Runner has pid 29881
00:17:42.240 [W] ci-tracker.c:200: Could not get uid for connection: org.freedesktop.DBus.Error.NameHasNoOwner Could not get UID of name 'org.freedesktop.DBus': no such name
00:17:42.240 [E] hald_dbus.c:4462: Cannot get caller info for org.freedesktop.DBus
00:17:42.241 [I] hald_runner.c:180: runner connection is 0x554290
00:17:42.244 [I] mmap_cache.c:251: cache mtime is 1179179330
*** [DIE] osspec.c:watch_fdi_files():349 : Unable to initialize inotify: Function not implemented


amd64 ~ # emerge --info
Portage 2.1.2.7 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r2, 2.6.19-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r4 x86_64 AMD Sempron(tm) Processor 3300+
Gentoo Base System release 1.12.10
Timestamp of tree: Sun, 13 May 2007 01:00:09 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.3.6, 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.21
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/vmware/workstation/lib/modules/binary /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/share/X11/xkb /usr/share/config /var/spool/fax/etc"
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="-march=k8 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://mirrors.64hosting.com/pub/mirrors/gentoo/"
LANG="de_DE.utf-8"
LINGUAS="de"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/gentoo-de /usr/local/overlays/gentoo-de /usr/local/portage /usr/local/overlays/my-gentoo /usr/local/overlays/pkalin"
SYNC="rsync://192.168.0.1/gentoo-portage"
USE="X acpi alsa amd64 apache2 arts berkdb bitmap-fonts bluetooth bzip2 cairo ccache cdr cli cracklib crypt cups dbus divx dri dvb dvd dvdr dvdread eds emboss encode esd fam fat firefox foomaticdb fortran gdbm gif gimp gkrellm gnuplot gpm gstreamer gtk gtk2 h323 hal iconv icq imagemagick imap iproute2 ipv6 isdnlog jabber java javascript jpeg kde latex libg++ lirc mad math mbox midi mikmod mp3 mp4live mpeg mpeg2 mpeg4 mplayer mysql ncurses nls nptl nptlonly nsplugin nvidia obex octave ogg oggvorbis opengl openssh openssl oss pam pcre pdf perl php plotutils png ppds pppd python qt3 qt4 quicktime rar rdesktop readline reflection reiserfs samba sdl session sftp spell spl ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb vcd vdr visualization vorbis wma wma123 xcomposite xinerama xinetd xml xml2 xorg xv xvid xvmc zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev glint i128 i810 mga neomagic nv rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2007-05-15 01:44:31 UTC
phl0ri4n: You have a completely different issue. Your issue is that you updated linux-headers and the einfo at the end tells you that you MUST recompile glibc at this point, you didn't follow those instructions.
Comment 9 wikwam 2007-05-23 20:30:46 UTC
Does anyone know a fix for this??
Comment 10 Patrick Ohearn 2007-05-24 21:04:58 UTC
I have have the same issue with hal-0.5.9

aim patoh # ls -lh /var/lib/cache 
total 8.0K
drwxr-xr-x 2 root root 4.0K 2007-05-24 16:29 hald
drwxr-xr-x 3 root root 4.0K 2007-02-18 13:37 system-tools-backends
aim patoh # 

aim patoh # ls -l /var/lib/cache/hald/      
total 456
-rw-r--r-- 1 root root 460748 2007-05-24 16:29 fdi-cache
aim patoh # 

hald can be ran if using the --retain-privileges switch
Comment 11 Doug Goldstein (RETIRED) gentoo-dev 2007-05-24 21:20:15 UTC
Please run hal through strace and provide the full strace output.
Comment 12 Doug Goldstein (RETIRED) gentoo-dev 2007-05-24 21:21:22 UTC
Created attachment 120224 [details, diff]
hal-cache-strerror.patch

You could try applying this patch instead of providing the strace output. However, strace will probably be the best.
Comment 13 wikwam 2007-05-26 21:07:44 UTC
Here the strace outout:

# strace hald
execve("/usr/sbin/hald", ["hald"], [/* 59 vars */]) = 0
brk(0)                                  = 0x808f000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f42000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=107777, ...}) = 0
mmap2(NULL, 107777, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f27000
close(3)                                = 0
open("/usr/lib/libdbus-glib-1.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200j\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=111072, ...}) = 0
mmap2(NULL, 109084, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f0c000
mmap2(0xb7f26000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a) = 0xb7f26000
close(3)                                = 0
open("/usr/lib/libgobject-2.0.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320`\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=238248, ...}) = 0
mmap2(NULL, 237188, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ed2000
mmap2(0xb7f0b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x39) = 0xb7f0b000
close(3)                                = 0
open("/usr/lib/libglib-2.0.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\323\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=600508, ...}) = 0
mmap2(NULL, 596260, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e40000
mmap2(0xb7ed1000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x91) = 0xb7ed1000
close(3)                                = 0
open("/usr/lib/libdbus-1.so.3", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340J\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=203296, ...}) = 0
mmap2(NULL, 203776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e0e000
mmap2(0xb7e3f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x30) = 0xb7e3f000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0FY\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1260608, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e0d000
mmap2(NULL, 1193660, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ce9000
mmap2(0xb7e07000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11e) = 0xb7e07000
mmap2(0xb7e0a000, 9916, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7e0a000
close(3)                                = 0
open("/lib/libnsl.so.1", O_RDONLY)      = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2205\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=78192, ...}) = 0
mmap2(NULL, 83752, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7cd4000
mmap2(0xb7ce5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11) = 0xb7ce5000
mmap2(0xb7ce7000, 5928, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ce7000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7cd3000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7cd36b0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7e07000, 4096, PROT_READ)   = 0
mprotect(0xb7f5d000, 4096, PROT_READ)   = 0
munmap(0xb7f27000, 107777)              = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f41000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f40000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f3f000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f3e000
gettimeofday({1180213550, 636601}, NULL) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f3d000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f3c000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f3b000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f3a000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f39000
brk(0)                                  = 0x808f000
brk(0x80b0000)                          = 0x80b0000
pipe([3, 4])                            = 0
chdir("/")                              = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7cd36f8) = 5041
rt_sigaction(SIGCHLD, {0x805a0f7, [CHLD], SA_RESTART}, {SIG_DFL}, 8) = 0
select(4, [3], NULL, [3], {250, 0})     = ? ERESTARTNOHAND (To be restarted)
--- SIGCHLD (Child exited) @ 0 (0) ---
sigreturn()                             = ? (mask now [])
exit_group(1)                           = ?
Process 5040 detached
Comment 14 Doug Goldstein (RETIRED) gentoo-dev 2007-05-27 18:03:01 UTC
Need "strace hald --daemon=no" otherwise it will daemonize and strace will only track the original process.
Comment 15 wikwam 2007-05-29 21:25:24 UTC
Created attachment 120655 [details]
strace of hald

oh sorry for that, in the attachment ist the full strace output in no deamon mode.
Comment 16 Doug Goldstein (RETIRED) gentoo-dev 2007-05-29 21:41:53 UTC
What happens if you do chown haldaemon:haldaemon /var/lib/cache/hald ?
Comment 17 wikwam 2007-05-30 12:48:28 UTC
(In reply to comment #16)
> What happens if you do chown haldaemon:haldaemon /var/lib/cache/hald ?
> 
It is already, read comment#2
Comment 18 Drakos7 /Greg Wilson/ 2007-06-19 01:08:27 UTC
Emerging hal-info seems to have gotten things working for me.
Comment 19 Andreas Weber 2007-06-19 20:11:31 UTC
I had the same problem.
Recompiling the kernel with inotify support did the job for me.
Comment 20 Marcello Magaldi 2007-07-03 00:33:10 UTC
(In reply to comment #18)
> Emerging hal-info seems to have gotten things working for me.
> 

also for me
Comment 21 Jesper Saxtorph 2007-07-03 14:03:03 UTC
I have the just emerged hal-0.5.9-r1 yesterday and got the exact same problem as the original described.
I have tried the following suggestiongs with no success:
--retain-privileges
reemerge hal-info
checked that I do have inotify support in the kernel
glibc is just emerged before this wich is after linux-headers (old emerge)

I have the same /var/lib/cache/ and /var/lib/cache/hald as wikwam

I do notice the following 2 things:

/var/lib/cache/hald/fdi-cache~ is created every time I try to run hald. The file is only writable by root:
# ls -l /var/lib/cache/hald/ 
total 148
-rw-r--r-- 1 root root 146727 Jul  3 15:57 fdi-cache~

The other thing is that the fdi error is not the first error given from hald. The first error message is about org.freedesktop.DBus

Any suggestions?

# hald --verbose=yes --daemon=no
15:47:29.851 [I] hald.c:533: hal 0.5.9
15:47:29.851 [I] hald.c:598: Will not daemonize
15:47:29.852 [I] hald_dbus.c:4807: local server is listening at unix:abstract=/var/run/hald/dbus-eDFjQMI7ky,guid=ef23707ed771c24025254500468a5371
15:47:30.063 [I] hald_runner.c:299: Runner has pid 7225
15:47:30.064 [W] ci-tracker.c:200: Could not get uid for connection: org.freedesktop.DBus.Error.NameHasNoOwner Could not get UID of name 'org.freedesktop.DBus': no such name
15:47:30.064 [E] hald_dbus.c:4462: Cannot get caller info for org.freedesktop.DBus
Runner started - allowed paths are '/usr/libexec:/usr/lib64/hal/scripts:/usr/bin'
15:47:30.067 [I] hald_runner.c:180: runner connection is 0x5541f0
15:47:30.284 [I] mmap_cache.c:161: Regenerating fdi cache..
Run started hald-generate-fdi-cache (10000) (0) 
!  full path is '/usr/libexec/hald-generate-fdi-cache', program_dir is '/usr/libexec'
15:47:30.288 [I] create_cache.c:608: Loading rules
15:47:40.286 [I] mmap_cache.c:137: In regen_cache_cb exit_type=1, return_code=0
15:47:40.286 [E] mmap_cache.c:190: fdi cache regeneration failed!
15:47:40.286 [I] mmap_cache.c:193: fdi cache generation done
15:47:40.286 [I] mmap_cache.c:251: cache mtime is 1183469507
*** [DIE] mmap_cache.c:di_rules_init():68 : Unable to open cache /var/lib/cache/hald/fdi-cache

# emerge --info
Portage 2.1.2.9 (default-linux/amd64/2006.1/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.20-gentoo-r7-sax-r1 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r7-sax-r1 x86_64 AMD Turion(tm) 64 Mobile Technology MT-37
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 02 Jul 2007 23:20:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
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.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -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/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="-march=athlon64 -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo "
LINGUAS="en en_GB da ro"
MAKEOPTS="-j1"
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/local/portage/local/layman/secondlife /usr/local/portage"
SYNC="none"
USE="X a52 aac acl acpi aiglx alsa amd64 amr apache2 asf audiofile avahi bash-completion berkdb bitmap-fonts blender-game bluetooth boo bzip2 cairo caps cdda cddb cdio cdr cli cracklib crciprec crypt cscope css cups cvs cvsgraph dbus divx dmi dmx doc dri dts dv dvd dvdr dvdread eds emboss encode enscript esd exif expat fam fame ffmpeg fftw firefox flac font-server foomaticdb fortran freetype frontendonly gdbm gif gimp gimpprint glut gmedia gnome gphoto2 gpm gstreamer gtk gtk2 hal httpd iconv idn imagemagick imlib ipv6 isdnlog jack java joystick jpeg jpeg2k junit kde lcms ldap libg++ libsamplerate lirc live lm_sensors logitech-mouse logrotate ltsp lzo mad matroska midi mikmod mjpeg mmap mng mono mp3 mpeg mplayer mudflap mysql mythtv nas ncurses net netboot netjack network nfs nls nptl nptlonly nsplugin nxclient offensive ogg openal openexr opengl openmp oss pam pcre pda pdf perl php png ppds pppd pulseaudio python qt3 qt4 quicktime rar rdesktop readline realmedia reflection rtc samba scanner sdl session slp sndfile snmp speex spell spl ssl stream subtitles subversion svg swat tcpd tetex theora threadsafe tiff timidity transcode transmitter truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vlm vnc vorbis wma wmf wmp wxwindows xcomposite xft xine xinerama xml xorg xosd xrandr xv xvid yv12 zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev jamstudio" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB da ro" LIRC_DEVICES="mceusb2" USERLAND="GNU" VIDEO_CARDS="vesa v4l nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


# emerge -uvp --newuse --deep hal

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/module-init-tools-3.2.2-r3  USE="-old-linux% (-no-old-linux%)" 0 kB 

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Comment 22 Jesper Saxtorph 2007-07-16 16:20:00 UTC
I have now tried to update a quite different system. I gave the exact same error messages as in my last comment (#21).

I have not found any solution or workaround so far and have no idea where to look.

# emerge --info
Portage 2.1.2.9 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.21-gentoo-r4-epia-m-r1 i686)
=================================================================
System uname: 2.6.21-gentoo-r4-epia-m-r1 i686 VIA Nehemiah
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 15 Jul 2007 23:20:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
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.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=c3-2 -msse -mmmx -Os -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/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=c3-2 -msse -mmmx -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo "
LINGUAS="en en_GB da ro"
MAKEOPTS="-j1"
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/local/portage"
SYNC="none"
USE="X a52 aac acl acpi alsa amr apache2 asf audiofile avahi bash-completion berkdb bitmap-fonts bzip2 cairo caps cdda cddb cdio cdr cli cracklib crciprec crypt css cups dbus divx dmi dmx doc dri dts dv dvd dvdr dvdread eds emboss encode esd exif expat fam fame ffmpeg fftw firefox flac foomaticdb fortran freetype frontendonly gdbm gif gimp gimpprint glut gmedia gnome gphoto2 gpm gstreamer gtk hal iconv idn imagemagick imlib ipv6 isdnlog jack java joystick jpeg jpeg2k kde kqemu lcms ldap libg++ libsamplerate lirc live lm_sensors logitech-mouse logrotate lzo mad matroska midi mikmod mjpeg mmap mmx mng mp3 mpeg mplayer mudflap mysql mythtv nas ncurses net netboot netjack network nfs nls nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp oss pam pcre pdf perl png ppds pppd pulseaudio python qt3 qt4 quicktime rar readline real realmedia reflection rtc scanner sdl session slp sndfile snmp speex spell spl sse ssl stream subtitles svg tcpd theora threadsafe tiff timidity transcode transmitter truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vidix vlm vnc vorbis win32codecs wma wmf wmp x264 x86 xcomposite xft xine xinerama xml xorg xosd xrandr xv xvid xvmc yv12 zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB da ro" LIRC_DEVICES="mceusb2" USERLAND="GNU" VIDEO_CARDS="vesa v4l via"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 23 Jesper Saxtorph 2007-08-06 11:49:29 UTC
Hi again

Anyone looking into this problem?
Now the old stable version 0.5.7.1-r3 has disappeared from portage.
That is the version I currently use.
I am very reluctant to try installing something else as long as I don't have the ebuild for the old stable version.
Is there a place where I can get ebuild for 0.5.7.1-r3 so I can put it in my local overlay?

And please anyone - any suggestions to what I can try?
Comment 24 Jesper Saxtorph 2007-09-02 12:30:20 UTC
The problem is found: /var/lib/cache/hald does not like to be on nfs!
Read on to see what I tried and some questions in the end.

Today I tried again - with 0.5.9-r1 and 0.5.9.1-r2
Still same problem.
Then I gave the problem a second look.
Just after the error, it complains about it can not open /var/lib/cache/hald/fdi-cache
This file does not exist, but on the other hand /var/lib/cache/hald/fdi-cache~ is generated.
So I tried copy fdi-cache~ to fdi-cache and then it started!
If I remove the file again, I am back to square one, it will not start.
If I leave fdi-cache in place it starts, but the file is not regenerated on start.
If I try to remove a file out from /usr/share/hal/fdi/information/ I would expect the cache to be regenerated. But after doing that an ls give me:
-rw-r--r-- 1 root root 55262 Sep  2 13:54 fdi-cache
-rw-r--r-- 1 root root 92812 Sep  2 14:01 fdi-cache~
So I have a new fdi-cache~ but not a new fdi-cache.

I guess fdi-cache~ is supposed to be moved to fdi-cache, but it for some reason failed to do so.

All permission seem to be fine, but I the system diskless, so it is on nfs.
If the cache is tried to be moved in some fancy way this could maybe be the trouble.

So in with a disk, mount a partition I got with something else on, make a test dir and change /var/lib/cache/hald to be a symbolic link to my empty test dir.
Voila, it works!

So for now I need a disk in the system to have hald work :-(

So what now? Why do I need a local disk? Can I solve it by using some special nfs options (using rw,tcp,rsize=8192,wsize=8192,nfsvers=3)? Is this the gentoo setup or is it a upstream problem?

And the interesting question, wikwam, do you also have it on nfs?

With hope for response,
Jesper
Comment 25 wikwam 2007-09-02 13:00:01 UTC
Hi Jesper Saxtorph,

no, the system is located on internal disk! So NFS can't be the problem.

Greets
Comment 26 Nico Schlömer 2008-11-28 10:50:09 UTC
hi,

i had the same problem and a

hald --daemon=no --verbose=yes

showed that hald wanted to generate a cache file in the folder /var/cache/hald which didn't exist. i created the folder by hand, and that solved all my hal problems.

cheers,
nico
Comment 27 cmuelle8 2009-02-02 03:40:45 UTC
I just had the same problem with a fresh ~amd64 install.  I did nothing more than to add the directory /var/cache/hald and change perm to haldaemon:haldaemon and the daemon started just fine.  Can somebody plz update the ebuild to just create that directory in postinst()..  

Cheers,
cmuelle8
Comment 28 Tony Vroon (RETIRED) gentoo-dev 2009-02-04 19:46:24 UTC
To confirm, this is done in newer HAL ebuilds:
       # HAL stores it's fdi cache in /var/lib/cache/hald
        keepdir /var/lib/cache/hald
Comment 29 Cezary Bartoszuk 2009-02-05 13:40:30 UTC
The same for me. On a fresh ~amd64 installation:
# mkdir /var/cache/hald
# chown haldaemon:haldaemon /var/cache/hald