Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301217 - app-emulation/libvirt-0.7.5 segfaults with sys-libs/glibc-2.10.1-r1
Summary: app-emulation/libvirt-0.7.5 segfaults with sys-libs/glibc-2.10.1-r1
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-16 19:19 UTC by Daniel Westermann-Clark
Modified: 2010-01-17 15:07 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Westermann-Clark 2010-01-16 19:19:52 UTC
Since upgrading to sys-libs/glibc-2.10.1-r1, I have been unable to start libvirtd. It segfaults in virStateInitialize.

Disabling udev support in libvirt fixes this, so I suspect it is a problem with how libvirtd calls udev.

Reproducible: Always

Steps to Reproduce:
1. /etc/init.d/libvirtd start

Actual Results:  
# rm /var/run/libvirtd.pid ; gdb libvirtd

warning: Can not parse XML syscalls information; XML support was disabled at compile time.
GNU gdb (Gentoo 7.0 p2) 7.0
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/sbin/libvirtd...done.
(gdb) run
Starting program: /usr/sbin/libvirtd
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffff4716910 (LWP 3370)]
[New Thread 0x7ffff3f15910 (LWP 3371)]
[New Thread 0x7ffff3714910 (LWP 3372)]
[New Thread 0x7ffff2f13910 (LWP 3373)]
[New Thread 0x7ffff2712910 (LWP 3374)]
[New Thread 0x7ffff1f11910 (LWP 3375)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4fca061 in strlen () from /lib/libc.so.6
(gdb) bt
#0  0x00007ffff4fca061 in strlen () from /lib/libc.so.6
#1  0x00007ffff4fc9db6 in strdup () from /lib/libc.so.6
#2  0x00007ffff7bd519f in udev_list_entry_add () from /lib/libudev.so.0
#3  0x00007ffff7bd9c1d in udev_enumerate_get_list_entry () from /lib/libudev.so.0
#4  0x0000000000480a51 in udevEnumerateDevices ()
#5  0x00000000004811b4 in udevDeviceMonitorStartup ()
#6  0x00007ffff7722e70 in virStateInitialize () from /usr/lib/libvirt.so.0
#7  0x000000000041bae4 in main ()

Expected Results:  
libvirtd should start.

Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31.6 x86_64)
=================================================================
System uname: Linux-2.6.31.6-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-1.12.13
Timestamp of tree: Sat, 16 Jan 2010 13:15:03 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.6.4
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.8.5-r3, 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.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
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=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages nostrip notitles parallel-fetch protect-owned sandbox sfperms sign strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j3"
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/layman/dwc-perl-experimental /usr/local/portage/layman/dwc"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 berkdb bzip2 cairo cdr cli consolekit cracklib crypt css cups cxx dbus debug dlloader dri dts dvd dvdr eds emacs emboss encode evo fam fbcon firefox flac fortran gdbm gif gnome gnutls gpg gpm gstreamer gtk gtk2 gtkhtml hal iconv imlib ipod jpeg kde ldap libnotify lirc live mad maildir mikmod mmx mng modules mozilla mp3 mp4 mpeg mudflap multilib musicbrainz ncurses network nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection samba sdl session smime speex spell spl sse sse2 ssl startup-notification svg sysfs tcpd theora thunar tiff truetype unicode usb v4l v4l2 vorbis x264 xml xorg xscreensaver xulrunner xv xvid 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" LIRC_DEVICES="livedrive_midi" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia v4l vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2010-01-17 12:21:49 UTC
have you tried to recompile udev and libvirtd?
Comment 2 Daniel Westermann-Clark 2010-01-17 15:07:51 UTC
I was pretty sure I had, but maybe I didn't do it in the right order. Things are working with USE=udev now.