Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 183516 - sys-apps/hald-0.5.9.1 segfaults on amd64
Summary: sys-apps/hald-0.5.9.1 segfaults on amd64
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-28 12:12 UTC by Natanael Copa
Modified: 2009-01-27 09:26 UTC (History)
1 user (show)

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


Attachments
files/0.5.9/23_check_serial_dev_str.patch (23_check_serial_dev_str.patch,603 bytes, patch)
2007-06-28 12:25 UTC, Natanael Copa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Natanael Copa 2007-06-28 12:12:23 UTC
No matter what useflag I try, hald just segfaults for me.

Here is output when running it in gdb:

13:02:29.255 [I] hald_runner.c:108: runner_server_message_handler: destination=(null) obj_path=/org/freedesktop/HalRunner interface=org.freedesktop.HalRunner method=StartedProcessExited
13:02:29.255 [I] hald_runner.c:123: Previously started process with pid 22035 exited
13:02:29.255 [I] hald.c:83: in addon_terminated for udi=/org/freedesktop/Hal/devices/usb_device_413c_2003_noserial_if0_logicaldev_input
13:02:29.255 [E] device.c:1622: In hal_device_inc_num_ready_addons for udi=/org/freedesktop/Hal/devices/usb_device_413c_2003_noserial_if0_logicaldev_input but all addons are already ready!
13:02:29.255 [I] hald_dbus.c:4711: ************************
13:02:29.255 [I] hald_dbus.c:4712: Client to local_server was disconnected for 6ffc50
13:02:29.255 [I] hald_dbus.c:4713: ************************
13:02:29.255 [I] hald_dbus.c:4752: ***************************
13:02:29.255 [I] hald_dbus.c:4753: ********* unregistered 6ffc50
13:02:29.255 [I] hald_dbus.c:4754: ***************************
!  full path is '/usr/libexec/hald-probe-serial', program_dir is '/usr/libexec'
13:02:29.255 [D] hald_dbus.c:3090: udi=/org/freedesktop/Hal/devices/computer
13:02:29.255 [I] hald_dbus.c:3116: AddonIsReady on udi '/org/freedesktop/Hal/devices/computer'
[22040]: 13:02:29.256 [D] probe-serial.c:70: Checking if /dev/ttyS3 is actually present
[22040]: 13:02:29.256 [E] probe-serial.c:85: serial port /dev/ttyS3 seems not to exist
/usr/libexec/hald-probe-serial exited
13:02:29.256 [I] device.c:3238: entering; exit_type=0, return_code=1
13:02:29.256 [I] coldplug.c:213: pool_num_freed = 176 (of 821)
13:02:29.256 [I] hotplug.c:134: /sys/devices/pnp0/00:07/ttyS0 is a device (subsystem)
13:02:29.256 [I] osspec.c:892: hal_util_find_known_parent: '/sys/devices/pnp0/00:07/ttyS0'->'/sys/devices/pnp0/00:07'
13:02:29.256 [I] device.c:3319: add_dev: subsys=tty sysfs_path=/sys/devices/pnp0/00:07/ttyS0 dev= parent_dev=0x0070afa0

Program received signal SIGSEGV, Segmentation fault.
0x0000000000425178 in serial_get_prober (d=0x6fe2a0) at device.c:1228
1228            if (!strncmp(hal_device_property_get_string (d, "linux.device_file"), "/dev/ttyS", 9))

I bet hal_device_property_get_string returns NULL for some reason. There should be a check for NULL in any case.

The backtrace:
(gdb) bt
#0  0x0000000000425178 in serial_get_prober (d=0x6fe2a0) at device.c:1228
#1  0x00000000004296b1 in dev_callouts_preprobing_done (d=0x6fe2a0, 
    userdata1=0x2b5c96d5e9b8, userdata2=0x54b0c0) at device.c:3295
#2  0x000000000040806c in hal_util_callout_device_preprobe (d=0x6fe2a0, 
    callback=0x4295c5 <dev_callouts_preprobing_done>, 
    userdata1=0x2b5c96d5e9b8, userdata2=0x54b0c0) at util.c:1065
#3  0x00000000004298d2 in hotplug_event_begin_add_dev (
    subsystem=0x2b5c96d5e9d0 "tty", 
    sysfs_path=0x2b5c96d5ead0 "/sys/devices/pnp0/00:07/ttyS0", 
    device_file=0x2b5c96d5ecd0 "", parent_dev=0x70afa0, 
    parent_path=0x701ed0 "/sys/devices/pnp0/00:07", end_token=0x2b5c96d5e9b8)
    at device.c:3364
#4  0x0000000000420174 in hotplug_event_begin_sysfs (
    hotplug_event=0x2b5c96d5e9b8) at hotplug.c:160
#5  0x0000000000420410 in hotplug_event_begin (hotplug_event=0x2b5c96d5e9b8)
    at hotplug.c:262
#6  0x0000000000420536 in hotplug_event_process_queue () at hotplug.c:324
#7  0x000000000040a255 in process_reply (m=0x5576a0, hb=0x701ed0)
    at hald_runner.c:678
#8  0x000000000040a289 in call_notify (pending=0x702140, user_data=0x701ed0)
    at hald_runner.c:689
#9  0x00002b5c963010fa in ?? () from /usr/lib/libdbus-1.so.3
#10 0x00002b5c963027e1 in dbus_connection_dispatch ()
   from /usr/lib/libdbus-1.so.3
#11 0x00002b5c95effc95 in ?? () from /usr/lib/libdbus-glib-1.so.2
#12 0x00002b5c96183633 in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#13 0x00002b5c9618647d in ?? () from /usr/lib/libglib-2.0.so.0
#14 0x00002b5c96186766 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#15 0x0000000000412147 in main (argc=3, argv=0x7fff14ccef48) at hald.c:660
Comment 1 Natanael Copa 2007-06-28 12:15:40 UTC
emerge --info:

Portage 2.1.3_rc5 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r3, 2.6.21-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.21-gentoo-r3 x86_64 Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Wed, 27 Jun 2007 04:30:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
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.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.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distcc distlocks metadata-transfer sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://nc.nor.wtbts.org/~ncopa http://mirror.getoo.no"
MAKEOPTS="-j6"
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.gentoo.org/gentoo-portage"
USE="64bit X X509 Xaw3d a52 aac acl acpi aiglx aim alsa amd64 ao aotuv apache2 artworkextra asf async athena audiofile avahi bash-completion berkdb bitmap-fonts bittorrent bluetooth bogofilter bonjour bonobo bzip2 bzlib cairo cddb cdio cdparanoia cdr cgi chm cle266 cli codecs corba cracklib crypt cscope css ctype cups curl daap dbus dbx dell dga dio divx4linux djbfft djvu dnd dri droproot dts dv dvb dvd dvdr dvdread dvi dynagraph edl eds effects emerald emul-linux-x86 encode epiphany esd evo evolution exif expat fam fame festival ffmpeg fftw firefox flac flash fluidsynth fmod font-server fortran fpx freetds freetts gcj gdb gdbm ggi gif gimp gimpprint glibc-omitfp glitz glsa glx gmail gnome gnome-print gnutls gpgme gphoto2 gpm graphviz gs gstreamer gstreamer010 gtk gtk2 gtkhtml gzip h323 hal hfs howl howl-compat hpn httpd ical iconv icq id3 idn ieee1394 imagemagick imap imlib imlib2 inkjar intl ipod iproute2 ipv6 irmc isdnlog jabber jack java javascript jbig jfs jp2 jpeg jpeg2k keyring kqemu ladcca ladspa lame lcms leim libcaca libg++ libnotify libsamplerate libsexy libvisual libwww lighttpd live lzo mad maildir mdb memlimit midi mime mimencode mjpeg mmap mmkeys mmx mng mod modplug monkey mono mozcalendar mozdevelop mozilla moznocompose moznoirc moznomail mozsvg mozxmlterm mp2 mp3 mp4 mp4live mpd-mad mpeg mpeg2 mpeg4 mplayer msn msnextras mssql mudflap musepack musicbrainz mysql mysqli mythtv nas nautilus ncurses net network networkmanager neural new-login nfs nls nptl nptlonly nsplugin ntfs ntlm objc objc++ objc-gc odbc ogg oggvorbis ogre on-the-fly-crypt openal opengl openmp openssl operanom2 osc oscar pam pccts pcre pdf pdfkit perl pic player png portaudio ppds pppd private python qa qemu rar rdesktop readline reflection reiser4 reiserfs rhythmbox rrdcgi rrdtool rss rtc ruby samba sametime sasl sblive screen sdl server session shared shorten shout silc skins slp smime smp sms sndfile socks5 soundtouch sox speech speex spell spl sql sqlite3 sse sse2 ssl stlport stream subp subtitles subversion svg svgz swig sysfs szip tabs tagwriting tcltk tcpd tetex tga theora thesaurus threads thumbnail thunderbird tidy tiff timidity tos transcode trayicon truetype truetype-fonts type1 type1-fonts udev unicode urandom usb uudeview v4l v4l2 valgrind vcd vcdimager vdr vfat vim vim-pager vim-syntax vim-with-x visualization vlm vnc vorbis webdav widescreen winbind wma wma123 wmf wmp wordperfect wv wxwindows x264 xanim xcb xcf xcomposite xface xfs xft xine xinerama xml xml2 xorg xosd xprint xrandr xv xvid xvmc yaepg yahoo yaz yv12 zip zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="i810 i915 i128"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 Natanael Copa 2007-06-28 12:25:43 UTC
Created attachment 123302 [details, diff]
files/0.5.9/23_check_serial_dev_str.patch

Fixes the problem.
Comment 3 Robert Clark 2007-07-24 21:34:08 UTC
I started seeing this problem on my x86 system with 0.5.9.1 as well. The patch from Natanael seem to have corrected the problem for me (thanks BTW).

In case it's relevant, here's the emerge --info:

Portage 2.1.3_rc9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.21-gentoo-r4 i686)
=================================================================
System uname: 2.6.21-gentoo-r4 i686 Intel(R) Xeon(TM) CPU 2.40GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 23 Jul 2007 01:47:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.3.5-r3, 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="-O2 -pipe -march=pentium4 -mno-sse2"
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 -pipe -march=pentium4 -mno-sse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://gentoo.mirrors.tds.net/gentoo ftp://gentoo.chem.wisc.edu/gentoo/ http://mirror.datapipe.net/gentoo"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="X X509 acl acpi bash-completion berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cdrom cli cracklib crypt cups cvs dbus dri dvd dvdr dvdread ecc eds emboss evo fam firefox gd gdbm gif gimpprint gnome gpm gs gstreamer gtk hal hardened iconv ipv6 isdnlog jabber java jpeg jpeg2k kde kdepim kerberos largeterminal lcms ldap libg++ lm_sensors logrotate mad mbox md5sum midi mikmod mime mmap mmx mng mozbranding mozdevelop moznocompose moznoirc mozsvg mp3 mpeg mudflap ncurses net nls nptl nptlonly ntfs ogg opengl openmp oss pam pcre pdf perl php png pppd python qt3 qt3support qt4 quicktime rdesktop readline reflection samba sasl sdl seamonkey session slp smime spell spf spl sqlite sqlite3 sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode vim vorbis webdav win32codecs x86 xface xinerama xml xorg xosd xscreensaver xv yp zip 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="mga vesa fbdev vmware"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2007-08-28 23:22:27 UTC
will be in hal-0.5.9.1-r3, sorry it's slipped through the cracks
Comment 5 Martin Pohlack 2008-01-09 16:24:27 UTC
The problem is still there on x86 with hal-0.5.9.1-r3.
Comment 6 Pacho Ramos gentoo-dev 2009-01-27 07:47:40 UTC
Do you still suffer the problem with 0.5.11* ?
Comment 7 Natanael Copa 2009-01-27 09:26:42 UTC
According an email in my archive dated 10 Aug 2007 from upstream an adopted version of the patch was applied.

so this particular bug should be fixed upstream and i have never had any problems with it since 2007.