sys-apps/hal-0.5.12_rc1-r4 and stable versions causes segfaults on amd64. When starting the hald daemon dies unexpectedly and cause a segfault in dmesg. HAL is compiled with debug and nostrip features are present in make.conf but gdb does not show much. |# gdb /usr/sbin/hald (gdb) run Starting program: /usr/sbin/hald Program exited with code 01. (gdb) Reproducible: Always Steps to Reproduce: 1.# emerge sys-apps/hal 2.# /etc/init.d/hald start 3. Actual Results: [41252.506834] hald[18280]: segfault at 0 ip 00000000004237e5 sp 00007fff2344fa50 error 4 in hald[400000+55000] # emerge --info Portage 2.1.6.11 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.29.1 x86_64) ================================================================= System uname: Linux-2.6.29.1-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-glibc2.2.5 Timestamp of tree: Thu, 14 May 2009 17:15:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 2.1.7 dev-lang/python: 2.5.4-r2 dev-util/ccache: 2.4-r8 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.28-r1 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" 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="-march=native -O2 -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages metadata-transfer nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://mirror.ovh.net/gentoo-distfiles/" LANG="es_ES@euro" LC_ALL="es_ES@euro" LDFLAGS="-Wl,-O1" LINGUAS="es es_ES" 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.europe.gentoo.org/gentoo-portage" USE="acl amd64 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog midi mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" DVB_CARDS="usb-wt220u" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES" LIRC_DEVICES="serial" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS #
please attach the output of hald --verbose=yes --daemon=no, I will probably be more helpful.
(In reply to comment #1) > please attach the output of hald --verbose=yes --daemon=no, I will probably be > more helpful. > Hi Gilles It is true # hald --verbose=yes --daemon=no 20:50:26.529 [I] hald.c:671: hal 0.5.12rc1 20:50:26.529 [I] hald.c:736: Will not daemonize 20:50:26.530 [I] hald_dbus.c:5417: local server is listening at unix:abstract=/var/run/hald/dbus-YcicNF0dSE,guid=903aa1816759e5d9dd9c27a04a0f1902 20:50:26.530 [E] hald_dbus.c:5783: dbus_bus_get(): Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory #
Start D-Bus first and the run command to GDB has to be run as: run --verbose=yes --daemon=no
Created attachment 191783 [details] hal backtrace
(In reply to comment #3) > Start D-Bus first and the run command to GDB has to be run as: > > run --verbose=yes --daemon=no > Well, this is the file hal-segfault-bt.log.
Permissions on the file /usr/share/misc/pci.ids are not correct Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root) I changed this to Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) And now everything works fine.
not actually a hal problem as you guessed
closing invalid because it looks like a local problem.