Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176380 - sys-apps/hal-0.5.9-r1 won't start for ppc64
Summary: sys-apps/hal-0.5.9-r1 won't start for ppc64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Project Gentopia
URL: http://bugs.freedesktop.org/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks: 184889 199322 gnome2.22-tracker
  Show dependency tree
 
Reported: 2007-04-28 17:45 UTC by Markus Rothe (RETIRED)
Modified: 2008-10-26 08:32 UTC (History)
10 users (show)

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


Attachments
hald.explosion.txt (hald.explosion.txt,159.78 KB, text/plain)
2007-04-28 23:03 UTC, Tony Vroon (RETIRED)
Details
98_compnerd_verbosity.patch (98_compnerd_verbosity.patch,2.35 KB, patch)
2007-05-07 15:23 UTC, Tony Vroon (RETIRED)
Details | Diff
kernel.config (kernel.config,33.57 KB, text/plain)
2007-05-07 15:36 UTC, Tony Vroon (RETIRED)
Details
lshal.txt (lshal.txt,82.58 KB, text/plain)
2007-05-07 22:48 UTC, Tony Vroon (RETIRED)
Details
backtrace just before hald exits (hald_gdb.txt,3.92 KB, text/plain)
2008-09-12 18:59 UTC, Markus Rothe (RETIRED)
Details
jump_positons (jump_positions.txt,69.43 KB, text/plain)
2008-09-12 19:01 UTC, Markus Rothe (RETIRED)
Details
proposed patch (0001-Fix-issue-on-64bit-big-endian-architectures.patch.txt,1.10 KB, patch)
2008-09-27 11:10 UTC, Markus Rothe (RETIRED)
Details | Diff
the patch (0001-Fix-issue-on-64bit-big-endian-architectures.patch.txt,1.10 KB, patch)
2008-09-27 11:22 UTC, Markus Rothe (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rothe (RETIRED) gentoo-dev 2007-04-28 17:45:23 UTC
I just updated to hal-0.5.9-r1 [crypt disk-partition (-acpi) -debug (-dell) -doc (-pcmcia) (-selinux)], but it won't start:

$ hald --use-syslog --daemon no
Runner started - allowed paths are '/usr/libexec:/usr/lib64/hal/scripts:/usr/bin'
*** [DIE] device_info.c:rules_match_and_merge_device():962 : Rule is NULL on jump
$ emerge --info
Portage 2.1.2.2 (default-linux/ppc/ppc64/2007.0/64bit-userland/desktop/970/pmac, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo-r5 ppc64)
=================================================================
System uname: 2.6.20-gentoo-r5 ppc64 PPC970FX, altivec supported
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 28 Apr 2007 06:00:08 +0000
dev-lang/python:     2.4.3-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.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.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="ppc64"
AUTOCLEAN="yes"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O3 -pipe -mtune=970 -mcpu=970 -mabi=altivec"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /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/terminfo /etc/texmf/web2c"
CXXFLAGS="-O3 -pipe -mtune=970 -mcpu=970 -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig collision-protect cvs distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
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="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acl aiglx alsa altivec amr apache2 asf avahi bash-completion berkdb bitmap-fonts bzip2 cairo ccache cdinstall cdparanoia cdr cli cracklib crypt cups curl cvs dbus disk-partition dri dts dv dvd dvdr dvdread emboss enca encode exif exscalibar fam ffmpeg firefox flac foomaticdb fortran fping gcj gd gdbm ggi gif gimp gimpprint glib glitz gmp gnokii gnutls gphoto2 gpm graphviz gs gstreamer gtk hal hfs highlight iconv ieee1394 imagemagick imap imlib ipv6 isdnlog jingle jpeg kdeenablefinal latex ldap libg++ libnotify mad matroska mdnsresponder-compat midi mikmod mjpeg mp3 mp4 mpeg mplayer multiuser musicbrainz mysql ncurses network nls no-old-linux nptl nptlonly nsplugin objc objc++ offensive ogg openal opengl pam pcre pdf perl php plotutils plugins png ppc64 ppds pppd python qt3 qt3support qt4 quicktime rdesktop readline reflection rtsp ruby samba scanner screen sdl session skins slp smp spell spl ssl startup-notification stream subtitles subversion svg tcltk tcpd teamarena tetex theora threads tiff trayicon truetype truetype-fonts type1-fonts unicode upnp usb utempter vcd videos vim-pager vorbis wxwindows x264 xcb xcomposite xine xml xorg xpm xscreensaver xv xvid xvmc zeroconf zlib" 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" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Tony Vroon (RETIRED) gentoo-dev 2007-04-28 22:10:41 UTC
Confirmed, exact same problem here.

Portage 2.1.2.5 (default-linux/ppc/ppc64/2007.0/64bit-userland/desktop/970/pmac, gcc-4.1.2, glibc-2.5-r1, 2.6.21-rc7-g80d74d51-dirty ppc64)
=================================================================
System uname: 2.6.21-rc7-g80d74d51-dirty ppc64 PPC970FX, altivec supported
Gentoo Base System release 1.12.10
Timestamp of tree: Unknown
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.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="ppc64 ~ppc64"
AUTOCLEAN="yes"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mtune=G5 -mcpu=G5 -mabi=altivec -maltivec"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -mtune=G5 -mcpu=G5 -mabi=altivec -maltivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig cvs distlocks metadata-transfer sandbox sfperms sign"
GENTOO_MIRRORS="http://gentoo.virginmedia.com"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
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="/cvs/gentoo-x86/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://localhost/disabled"
USE="X a52 aac aalib acl adns adplug alsa altivec amr aotuv audacious avahi bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cddb cdparanoia cdr cdrom cli cracklib crypt cups dbus djvu dri dts dv dvd dvdr dvi ecc eds emboss enca encode epiphany erandom evolution exif expat fam fbcon ffmpeg firefox flac fortran ftp gcc64 gdbm gif glitz gnutls gpm gstreamer gtk gtkhtml hal iconv idle ipv6 jpeg keyring libcaca libg++ libnotify libsamplerate libsexy lzo m17n-lib mad midi mikmod modplug mozbranding mp2 mp3 mp3rtp mpeg mplayer mudflap musepack ncurses nls no-old-linux nptl nptlonly nsplugin ogg opengl openssl pam pcre pdf perl pic plugins pmu png pnm ppc64 pppd pulseaudio python qt3support quicktime readline reflection rtc scenarios sdl session sid speex spell spl srt ssl startup-notification svg theora thunar-vfs tiff timidity trayicon truetype truetype-fonts tta type1-fonts unicode urandom usb vorbis vorbis-psy wavpack wma wmf xcb xcomposite xml xorg xv xvid zlib" 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 keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon r300"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Tony Vroon (RETIRED) gentoo-dev 2007-04-28 23:03:34 UTC
Created attachment 117603 [details]
hald.explosion.txt

The result of:
jupiter ~ # udevstart && udevtrigger && /etc/init.d/dbus restart && hald --daemon=no --verbose=yes &> hald.explosion.txt
Comment 3 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2007-05-07 01:55:30 UTC
Another error with this version (hal-0.5.7-r1 works fine):

[ebuild   R   ] sys-apps/hal-0.5.9-r1  USE="acpi crypt dell disk-partition -debug -doc -pcmcia (-selinux)" 0 kB

# hald --daemon=no
Runner started - allowed paths are '/usr/libexec:/usr/lib/hal/scripts:/usr/bin'
*** [DIE] osspec.c:watch_fdi_files():349 : Unable to initialize inotify: Function not implemented

emerge --info

Portage 2.1.2.5 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.21-gentoo i686)
=================================================================
System uname: 2.6.21-gentoo i686 Genuine Intel(R) CPU T2080 @ 1.73GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Sat, 05 May 2007 03:30:01 +0000
dev-lang/python:     2.4.4
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.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=prescott -pipe -funroll-loops -fomit-frame-pointer -momit-leaf-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -march=prescott -pipe -funroll-loops -fomit-frame-pointer -momit-leaf-frame-pointer"
DISTDIR="/var/tmp/distfiles"
FEATURES="collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,--as-needed"
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="/var/tmp"
PORTDIR="/var/lib/portage"
PORTDIR_OVERLAY="/home/pclouds/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa avahi bash-completion berkdb bitmap-fonts cairo cjk cli cracklib crypt cups dbus dri eds emacs fortran gdbm gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg libg++ libnotify mad midi ncurses nls nptl nptlonly ogg opengl pam pcre perl png ppds pppd python readline reflection session spl sse2 ssl tcpd theora truetype truetype-fonts type1-fonts unicode vorbis x86 xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="i810 fbdev vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2007-05-07 13:34:15 UTC
corsair & chainsaw: Some application you have has installed fdi files that are completely incorrect. Check /usr/share/hal/fdi and /etc/hal/fdi for files that weren't installed by HAL and that's your culprit. File a bug against that application and CC gentopia. Most likely your issue is with gphoto. Their app to create HAL fdi files with their new 2.3.x series has generated a proper file on 1 out of about 10 computers that I've seen it tested on.

pcclouds: You've upgraded your linux-headers without recompiling glibc as required and mentioend in the via ewarn/elog in linux-headers. There is an ewarn about this by the HAL ebuild, however not an eerror as releng says we can't make it a fatal error.

jakub: I'm CC'ing you since these are the two most common errors that will be seen with HAL
Comment 5 Tony Vroon (RETIRED) gentoo-dev 2007-05-07 15:02:31 UTC
(In reply to comment #4)
> corsair & chainsaw: Some application you have has installed fdi files that are
> completely incorrect. Check /usr/share/hal/fdi and /etc/hal/fdi for files that
> weren't installed by HAL and that's your culprit.

I'm sorry to report that it is not that simple. The contents of /etc/hal/fdi:
./information
./information/.keep_sys-apps_hal-0
./preprobe
./preprobe/.keep_sys-apps_hal-0
./policy
./policy/.keep_sys-apps_hal-0

I cleared out the contents of /usr/share/hal completely, then emerged hal 0.5.9-r1 and made sure to remerge hal-info. I started HAL again:
15:53:12.156 [I] osspec.c:752: Synthesizing powermgmt events...
15:53:12.156 [I] pmu.c:312: Processing /proc/pmu/info
15:53:12.156 [I] osspec.c:756: PMU capabilities found
15:53:12.156 [I] osspec.c:762: Done synthesizing events
*** [DIE] device_info.c:rules_match_and_merge_device():962 : Rule is NULL on jump

To confirm, this is how I obtained that dump:
udevstart && udevtrigger && /etc/init.d/dbus restart && hald --daemon=no --verbose=yes &> ~/hald.explosion.txt

This version of HAL requires a patch given to me by compnerd to even start on PPC64, and when it does, my machine is accused of having components that it most certainly does not have:
chainsaw@jupiter /cvs/gentoo-x86 $ lshal | grep "^udi =" | grep switch
udi = '/org/freedesktop/Hal/devices/dell_bluetooth_switch'
udi = '/org/freedesktop/Hal/devices/dell_wlan_switch'
udi = '/org/freedesktop/Hal/devices/sonypic_bluetooth_switch'

Nearly all udi nodes are on temporary addresses:
chainsaw@jupiter /cvs/gentoo-x86 $ lshal | grep "^udi =" | grep temp | wc -l
23
Comment 6 Tony Vroon (RETIRED) gentoo-dev 2007-05-07 15:23:12 UTC
Created attachment 118457 [details, diff]
98_compnerd_verbosity.patch

The verbose debugging path that compnerd gave me. It also contains a fix that allows HALd to start (but it goes completely berserk). I will attach the output from a HALd run in a moment.
Comment 7 Tony Vroon (RETIRED) gentoo-dev 2007-05-07 15:27:58 UTC
See the URL field for the log output, a brief run of HALd, where it seems that the pmu_info_1 device gets incorrect helpers attached to it. Note that the resulting device list looks very wrong:
chainsaw@jupiter /etc/hal/fdi $ lshal | grep "^udi ="
udi = '/org/freedesktop/Hal/devices/computer'
udi = '/org/freedesktop/Hal/devices/dell_bluetooth_switch'
udi = '/org/freedesktop/Hal/devices/dell_wlan_switch'
udi = '/org/freedesktop/Hal/devices/sonypic_bluetooth_switch'
udi = '/org/freedesktop/Hal/devices/pmu_info_1'
udi = '/org/freedesktop/Hal/devices/temp/26'
udi = '/org/freedesktop/Hal/devices/temp/25'
udi = '/org/freedesktop/Hal/devices/temp/24'
udi = '/org/freedesktop/Hal/devices/temp/23'
udi = '/org/freedesktop/Hal/devices/temp/22'
udi = '/org/freedesktop/Hal/devices/temp/21'
udi = '/org/freedesktop/Hal/devices/temp/20'
udi = '/org/freedesktop/Hal/devices/temp/19'
udi = '/org/freedesktop/Hal/devices/temp/18'
udi = '/org/freedesktop/Hal/devices/temp/17'
udi = '/org/freedesktop/Hal/devices/temp/16'
udi = '/org/freedesktop/Hal/devices/temp/15'
udi = '/org/freedesktop/Hal/devices/temp/14'
udi = '/org/freedesktop/Hal/devices/temp/13'
udi = '/org/freedesktop/Hal/devices/temp/12'
udi = '/org/freedesktop/Hal/devices/temp/11'
udi = '/org/freedesktop/Hal/devices/temp/10'
udi = '/org/freedesktop/Hal/devices/temp/9'
udi = '/org/freedesktop/Hal/devices/temp/8'
udi = '/org/freedesktop/Hal/devices/temp/7'
udi = '/org/freedesktop/Hal/devices/temp/6'
udi = '/org/freedesktop/Hal/devices/temp/5'
udi = '/org/freedesktop/Hal/devices/temp/4'
Comment 8 Tony Vroon (RETIRED) gentoo-dev 2007-05-07 15:36:28 UTC
Created attachment 118459 [details]
kernel.config
Comment 9 Tony Vroon (RETIRED) gentoo-dev 2007-05-07 16:36:00 UTC
Dropped keywords until this can be worked out. We are aware of the Gnome 2.18 dependency and hope that a workable solution can be reached before 2.18 is due for unmaskingg.
Comment 10 Doug Goldstein (RETIRED) gentoo-dev 2007-05-07 17:14:39 UTC
All that patch does is uncomment a few debugging statements. There is no functional code difference. If your system requires that patch to have HAL run.. there's something very wrong happening there... a printf() statement should not result in a program running.
Comment 11 Doug Goldstein (RETIRED) gentoo-dev 2007-05-07 17:24:53 UTC
I actually do see a code change in there, and it's incorrect. Which is probably why you're having completely erratic results.
Comment 12 teidakankan 2007-05-07 19:45:45 UTC
(In reply to comment #4)
> corsair & chainsaw: Some application you have has installed fdi files that are
> completely incorrect. Check /usr/share/hal/fdi and /etc/hal/fdi for files that
> weren't installed by HAL and that's your culprit. File a bug against that
> application and CC gentopia. Most likely your issue is with gphoto. Their app
> to create HAL fdi files with their new 2.3.x series has generated a proper file
> on 1 out of about 10 computers that I've seen it tested on.
> 

Okay, libgphoto2's fdi file was my problem. Hald starts fine now that I have removed it.  Thanks for your help.

Comment 13 Doug Goldstein (RETIRED) gentoo-dev 2007-05-07 19:56:50 UTC
Tony: Please post a full lshal output.
Comment 14 Tony Vroon (RETIRED) gentoo-dev 2007-05-07 21:09:16 UTC
(In reply to comment #13)
> Tony: Please post a full lshal output.

From 0.5.7.1 or from 0.5.9-r1 with the "completely wrong" code that allows it to start?
Comment 15 Tony Vroon (RETIRED) gentoo-dev 2007-05-07 22:48:04 UTC
Created attachment 118506 [details]
lshal.txt

This is the lshal output on 0.5.9-r1 with the patch applied.
Comment 16 Florian Steinel 2007-05-12 16:09:34 UTC
(In reply to comment #12)
> Okay, libgphoto2's fdi file was my problem. Hald starts fine now that I have
> removed it.  Thanks for your help.
Removing /usr/share/hal/fdi/information/10freedesktop/10-camera-libgphoto2.fdi fixed it. Thanks.
Comment 17 Markus Rothe (RETIRED) gentoo-dev 2007-05-13 09:53:33 UTC
this is blocking gnome 2.18 on ppc64. should we open an upstream bug report to get this fixed?

raising severity to major.
Comment 18 Doug Goldstein (RETIRED) gentoo-dev 2007-05-13 15:00:26 UTC
This bug has become a hodgepodge of various issues now.. But the the issue I believe you're referring to will probably get ignored by David and he'll probably expect me to work something up to fix it. But you're welcome to open the bug upstream with him. He didn't seem too interested in the sparc issue, which is why I'm assuming this.
Comment 19 jszwast 2007-05-31 07:33:27 UTC
I've cleared my /usr/share/hal directory and re-installed hal and hal-info, and I've recompiled glibc, but my hal also still won't start.

# lshal
Could not initialise connection to hald.
Normally this means the HAL daemon (hald) is not running or not ready.

# hald --daemon=no --verbose=yes
00:33:12.176 [I] hald.c:533: hal 0.5.9
00:33:12.176 [I] hald.c:598: Will not daemonize
00:33:12.176 [I] hald_dbus.c:4807: local server is listening at unix:abstract=/var/run/hald/dbus-bB5aUL6fAr,guid=19a59f9de8182405ccdb1900465e7a38
Runner started - allowed paths are '/usr/libexec:/usr/lib/hal/scripts:/usr/bin'
00:33:12.180 [I] hald_runner.c:299: Runner has pid 16947
00:33:12.181 [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:33:12.181 [E] hald_dbus.c:4462: Cannot get caller info for org.freedesktop.DBus
00:33:12.181 [I] hald_runner.c:180: runner connection is 0x8095870
00:33:12.184 [I] mmap_cache.c:251: cache mtime is 1180592403
*** [DIE] osspec.c:watch_fdi_files():349 : Unable to initialize inotify: Function not implemented

# emerge --info
Portage 2.1.2.7 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.20-gentoo-r5 i686)
=================================================================
System uname: 2.6.20-gentoo-r5 i686 AMD Athlon(TM) XP 2500+
Gentoo Base System release 1.12.10
Timestamp of tree: Tue, 29 May 2007 08:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.33
dev-lang/python:     2.4.4-r4
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.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/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=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sfperms strict"
GENTOO_MIRRORS="ftp://mirror.datapipe.net/gentoo ftp://gentoo.llarian.net/pub/gentoo ftp://mirror.usu.edu/mirrors/gentoo/"
LC_ALL="en_US.UTF-8"
LINGUAS="en en_US"
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.namerica.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi aim alsa arts bash-completion berkdb bitmap-fonts cairo cdr cli compositor cracklib crypt css cups dbus directfb divx4linux dlloader dri dts dv dvd dvdr dvdread emboss encode evo fam fbcon ffmpeg firefox font-server fortran gdbm gif gnome gpm gstreamer gtk2 hal hbci iconv ieee1394 isdnlog jack java jikes joystick jpeg jpeg2k kde kdeenablefinal kerberos ldap libg++ lm_sensors mad mbrola midi mikmod mmx mmxext mozilla mp3 mpeg mudflap mysql ncurses neXt nfs nis nls nocd nptl nptlonly offensive ofx ogg opengl openmp pam pcre pdf perl png posix ppds pppd python qt3 qt3support qt4 quicktime rar readline real reflection rtc scanner sdl session slang speex spell spl sse sse2 ssl svg svga sysfs tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 videos vorbis win32codecs x86 xcomposite xine xml xorg xv xvid yahoo zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nv nvidia v4l vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

# equery uses hal
[ Searching for packages matching hal... ]
[ Colour Code : set unset ]
[ Legend : Left column  (U) - USE flags from make.conf              ]
[        : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for sys-apps/hal-0.5.9-r1 ]
 U I
 + + acpi           : Adds support for Advanced Configuration and Power Interface
 + + crypt          : Add support for encryption -- using mcrypt or gpg where applicable
 - - debug          : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml .
 - - dell           : Adds support for Dell laptop smbios via libsmbios
 - - disk-partition : Add support for partition editing via libparted
 - - doc            : Adds extra documentation (API, Javadoc, etc)
 - - kernel_FreeBSD : <unknown>
 + + kernel_linux   : <unknown>
 - - pcmcia         : Adds support for PCMCIA slots/devices found on laptop computers
 - - selinux        : !!internal use only!! Security Enhanced Linux support, this must be set by the selinux profile or breakage will occur
Comment 20 Markus Rothe (RETIRED) gentoo-dev 2007-05-31 07:39:43 UTC
(In reply to comment #19)
> *** [DIE] osspec.c:watch_fdi_files():349 : Unable to initialize inotify:
> Function not implemented

this doesn't seem to be related, but try to enable this in your kernel:

File systems  --->
  [*] Inotify file change notification support
  [*]   Inotify support for userspace
Comment 21 jszwast 2007-05-31 08:10:17 UTC
I fixed my inotify problem by enabling it in the kernel: both inotify and userspace inotify support in the Filesystems section of the kernel configuration.
Comment 22 Doug Goldstein (RETIRED) gentoo-dev 2007-05-31 13:42:52 UTC
Unable to initialize inotify: Function not implemented

Message only occurs in two situations:

1) when you have newer linux-headers which define the function and do not have a glibc compiled which matches those linux-headers to provide the function.
2) when the kernel does not have support for inotify compiled in we handle this through a compile time warning which pauses for 5 seconds and beeps the console. We can not make this a full stop because HAL is included on the LiveCD.

   ewarn "You must enable the Inotify system in your kernel."
    ewarn "For this you need to enable 'Inotify support for userspace'"
    ewarn "in 'File systems'. It is marked CONFIG_INOTIFY_USER in the config file."
    ewarn
    ebeep 5

It's up to you the user to read the output of these ebuilds and follow the instructions. We have implemeneted Portage elogging as such for this. Please read /etc/make.defaults to configure this properly for your system.
Comment 23 Doug Goldstein (RETIRED) gentoo-dev 2007-05-31 13:43:26 UTC
chainsaw: did you ever open that bug upstream? If you do can you CC me on it.
Comment 24 Brent Baude (RETIRED) gentoo-dev 2007-06-27 20:35:01 UTC
We now have a problem with the newer hal and recent unmasking of gnome-2.18.  Would it be appropriate to start a seperate bug entry to track that?
Comment 25 Mart Raudsepp gentoo-dev 2008-05-01 20:28:38 UTC
Has anyone tried 0.5.10 and especially hal-0.5.11_rc2 from gentopia:
http://git.overlays.gentoo.org/gitweb/?p=proj/gentopia.git;a=tree;f=sys-apps/hal;hb=HEAD
Comment 26 Markus Rothe (RETIRED) gentoo-dev 2008-05-02 08:56:47 UTC
same error
Comment 27 Leho Kraav (:macmaN @lkraav) 2008-07-03 16:27:48 UTC
i just stumbled on this on my i686 system and seemingly had everything correct, kernel had all INOTIFY-s, etc. Doug G.-s comment relating the problem to glibc was dead on for me. i had the chance to compare on two machines, my binhost was working fine with hald but the to-be-client wasnt. the client indeed had an older glibc (2.4 vs 2.5 on the binhost) and most likely i had upgraded the kernel after glibc. moving the glibcs to equal status resolved the problem on the client and both hald's are working well now.

we'll see what problem pops up next :P
Comment 28 Markus Rothe (RETIRED) gentoo-dev 2008-09-12 18:59:59 UTC
Created attachment 165302 [details]
backtrace just before hald exits

trying to debug this now. though I'm not getting far..
Comment 29 Markus Rothe (RETIRED) gentoo-dev 2008-09-12 19:01:30 UTC
Created attachment 165304 [details]
jump_positons

the problem is that jump_position is NULL. EVERY jump_position is NULL... Maybe a type error?
Comment 30 Markus Rothe (RETIRED) gentoo-dev 2008-09-26 16:22:07 UTC
some notes while debugging:

while running hal/hald/hald-generate-fdi-cache --verbose (while running make check)

18:12:20.655 [I] create_cache.c:630: Loading rules
18:12:20.656 [I] create_cache.c:223: Storing key 'info.udi' at rule=00000018
18:12:20.656 [I] create_cache.c:264: Storing value '/org/freedesktop/Hal/devices/computer', value_len=37, at rule=00000018, o
ffset=00000054
18:12:20.656 [I] create_cache.c:284: rule=00000018, rule_size=104, rtype=1
18:12:20.656 [I] create_cache.c:286:   jump_position=00000000
18:12:20.656 [I] create_cache.c:289:   key_len=9, key_offset=00000048
18:12:20.656 [I] create_cache.c:292:   value_len=38, value_offset=00000054
18:12:20.656 [I] create_cache.c:223: Storing key 'info.addons' at rule=00000080
18:12:20.657 [I] create_cache.c:264: Storing value 'hald-addon-cpufreq', value_len=18, at rule=00000080, offset=000000bc
18:12:20.657 [I] create_cache.c:284: rule=00000080, rule_size=80, rtype=3
18:12:20.657 [I] create_cache.c:286:   jump_position=00000000
18:12:20.657 [I] create_cache.c:289:   key_len=12, key_offset=000000b0
18:12:20.657 [I] create_cache.c:292:   value_len=19, value_offset=000000bc
18:12:20.657 [I] create_cache.c:320: modify rule=0x00000018, set jump to 0x000000d0


note that jump is not zero. this should mean that set_jump_position() is ok.

now while running hald-cache-test (also while running make check):

18:12:20.660 [I] create_cache.c:223: Storing key '/org/freedesktop/Hal/devices/computer:system.kernel.name' at rule=00000970
18:12:20.660 [I] create_cache.c:264: Storing value 'Linux', value_len=5, at rule=00000970, offset=000009dc
18:12:20.660 [I] create_cache.c:284: rule=00000970, rule_size=120, rtype=1
18:12:20.660 [I] create_cache.c:286:   jump_position=00000000
18:12:20.660 [I] create_cache.c:289:   key_len=57, key_offset=000009a0
18:12:20.660 [I] create_cache.c:292:   value_len=6, value_offset=000009dc

jump_position is zero... the error is in pad32_write()?
Comment 31 Markus Rothe (RETIRED) gentoo-dev 2008-09-27 10:55:16 UTC
another note:

in hal/hald/create_cache.c in function set_jump_position() the type off_t is used for an offset. only 32bit are stored as rule.jump_position is only 32bit wide. pad32_write gets sizeof(fdi_ctx->rule.jump_position) as argument for length of data to be written.

converting the offset to u_int32_t seems to get things better, but not functional.

more to come...
Comment 32 Markus Rothe (RETIRED) gentoo-dev 2008-09-27 11:10:23 UTC
Created attachment 166572 [details, diff]
proposed patch

this seems to fix the issue. hal starts now. although I cannot test any plug in devices and such, because the machine is 100km away...
Comment 33 Markus Rothe (RETIRED) gentoo-dev 2008-09-27 11:22:01 UTC
Created attachment 166573 [details, diff]
the patch

fix formating... upstream used tabs not spaces.
Comment 34 Markus Rothe (RETIRED) gentoo-dev 2008-10-03 11:05:29 UTC
the patch has been accepted upstream. please include it in the next patchset for 0.5.11.
Comment 35 Markus Rothe (RETIRED) gentoo-dev 2008-10-21 17:28:18 UTC
pleeeaaase apply the patch :-)
Comment 36 Markus Rothe (RETIRED) gentoo-dev 2008-10-25 08:23:21 UTC
ok.. I'm sick of waiting. this holds back quite a few bugs. I'll give you another 6 hours, then I'll add the patch myself. As I don't have access to the patch tarball this will get ugly. :-(
Comment 37 Markus Rothe (RETIRED) gentoo-dev 2008-10-26 08:32:57 UTC
Fixed in CVS.