Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 476874 - =net-misc/networkmanager-0.9.8.2-r1 - Segmentation fault at startup.
Summary: =net-misc/networkmanager-0.9.8.2-r1 - Segmentation fault at startup.
Status: RESOLVED DUPLICATE of bug 476170
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-15 07:07 UTC by Tassilo Horn
Modified: 2013-07-16 06:55 UTC (History)
3 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 Tassilo Horn 2013-07-15 07:07:10 UTC
When network manager starts up (through systemd), it immediately crashes.  When I try to start it at a console, I get this output.

# /usr/sbin/NetworkManager --no-daemon
NetworkManager[7032]: <info> NetworkManager (version 0.9.8.2) is starting...
NetworkManager[7032]: <info> Read config file /etc/NetworkManager/NetworkManager.conf
NetworkManager[7032]: <info> WEXT support is enabled
NetworkManager[7032]:    SCPlugin-Ifnet: Initializing!
NetworkManager[7032]:    SCPlugin-Ifnet: management mode: managed
NetworkManager[7032]: <warn> failed to allocate link cache: (-10) Operation not supported
NetworkManager[7032]:    SCPlugin-Ifnet: Loading connections
NetworkManager[7032]:    SCPlugin-Ifnet: guessed connection type (eth0) = 802-3-ethernet
NetworkManager[7032]: Libgcrypt warning: missing initialization - please fix the application
NetworkManager[7032]:    SCPlugin-Ifnet: update_connection_setting_from_config_block: name:eth0, id:eth0, uuid: a1a5b3d2-2e82-bbd6-f878-d26feacc2c7d
NetworkManager[7032]:    SCPlugin-Ifnet: Using dhcp method for eth0
NetworkManager[7032]:    SCPlugin-Ifnet: dhcpcd hostname not defined, ignoring
NetworkManager[7032]:    SCPlugin-Ifnet: Connection verified eth0:1
NetworkManager[7032]:    SCPlugin-Ifnet: guessed connection type (lo) = 802-3-ethernet
NetworkManager[7032]:    SCPlugin-Ifnet: update_connection_setting_from_config_block: name:lo, id:lo, uuid: 7ce8636c-076f-5f42-3166-76f7ca5ccfbe
NetworkManager[7032]:    SCPlugin-Ifnet: Found error: Unknown config for lo
NetworkManager[7032]:    SCPlugin-Ifnet: guessed connection type (ap1) = 802-11-wireless
NetworkManager[7032]:    SCPlugin-Ifnet: update_connection_setting_from_config_block: name:ap1, id:ap1, uuid: d87afda2-85dd-dc3f-ef93-f3f9b9121368
NetworkManager[7032]:    SCPlugin-Ifnet: Using mode: infrastructure
NetworkManager[7032]:    SCPlugin-Ifnet: wireless_setting added for ap1
NetworkManager[7032]:    SCPlugin-Ifnet: updating wireless security settings (ap1).
NetworkManager[7032]:    SCPlugin-Ifnet: Default key index: 0
NetworkManager[7032]:    SCPlugin-Ifnet: Using dhcp dhcp6 method for ap1
NetworkManager[7032]:    SCPlugin-Ifnet: dhcpcd hostname not defined, ignoring
NetworkManager[7032]:    SCPlugin-Ifnet: IPv6 for ap1 enabled, using auto
NetworkManager[7032]:    SCPlugin-Ifnet: Connection verified ap1:1
NetworkManager[7032]:    SCPlugin-Ifnet: guessed connection type (tsdhNET) = 802-11-wireless
NetworkManager[7032]:    SCPlugin-Ifnet: update_connection_setting_from_config_block: name:tsdhNET, id:tsdhNET, uuid: 615d325f-1a11-5a50-907d-ce49254bd5b2
NetworkManager[7032]:    SCPlugin-Ifnet: Using mode: infrastructure
NetworkManager[7032]:    SCPlugin-Ifnet: wireless_setting added for tsdhNET
NetworkManager[7032]:    SCPlugin-Ifnet: updating wireless security settings (tsdhNET).
NetworkManager[7032]:    SCPlugin-Ifnet: Using dhcp dhcp6 method for tsdhNET
NetworkManager[7032]:    SCPlugin-Ifnet: dhcpcd hostname not defined, ignoring
NetworkManager[7032]:    SCPlugin-Ifnet: IPv6 for tsdhNET enabled, using auto
NetworkManager[7032]:    SCPlugin-Ifnet: Connection verified tsdhNET:1
NetworkManager[7032]:    SCPlugin-Ifnet: guessed connection type (HornNET) = 802-11-wireless
NetworkManager[7032]:    SCPlugin-Ifnet: update_connection_setting_from_config_block: name:HornNET, id:HornNET, uuid: 13e174d7-4155-b2cf-0cda-844b5739397a
NetworkManager[7032]:    SCPlugin-Ifnet: Using mode: infrastructure
NetworkManager[7032]:    SCPlugin-Ifnet: wireless_setting added for HornNET
NetworkManager[7032]:    SCPlugin-Ifnet: updating wireless security settings (HornNET).
NetworkManager[7032]:    SCPlugin-Ifnet: Using dhcp dhcp6 method for HornNET
NetworkManager[7032]:    SCPlugin-Ifnet: dhcpcd hostname not defined, ignoring
NetworkManager[7032]:    SCPlugin-Ifnet: IPv6 for HornNET enabled, using auto
NetworkManager[7032]:    SCPlugin-Ifnet: Connection verified HornNET:1
NetworkManager[7032]:    SCPlugin-Ifnet: guessed connection type (0x4AC3BC7267656E204562657274E280997320436F6D7075746572) = 802-11-wireless
NetworkManager[7032]:    SCPlugin-Ifnet: update_connection_setting_from_config_block: name:0x4AC3BC7267656E204562657274E280997320436F6D7075746572, id:Jürgen Ebert’s Computer, uuid: f494f1f6-21e4-3ce1-e9b8-3dedb8785092
NetworkManager[7032]:    SCPlugin-Ifnet: wireless_setting added for 0x4AC3BC7267656E204562657274E280997320436F6D7075746572
NetworkManager[7032]:    SCPlugin-Ifnet: Using dhcp dhcp6 method for 0x4AC3BC7267656E204562657274E280997320436F6D7075746572
NetworkManager[7032]:    SCPlugin-Ifnet: dhcpcd hostname not defined, ignoring
NetworkManager[7032]:    SCPlugin-Ifnet: IPv6 for 0x4AC3BC7267656E204562657274E280997320436F6D7075746572 enabled, using auto
NetworkManager[7032]:    SCPlugin-Ifnet: Connection verified 0x4AC3BC7267656E204562657274E280997320436F6D7075746572:1
NetworkManager[7032]:    SCPlugin-Ifnet: guessed connection type (hera) = 802-11-wireless
NetworkManager[7032]:    SCPlugin-Ifnet: update_connection_setting_from_config_block: name:hera, id:hera, uuid: 82639153-87db-875f-afa7-d6bd2b3d462c
NetworkManager[7032]:    SCPlugin-Ifnet: wireless_setting added for hera
NetworkManager[7032]:    SCPlugin-Ifnet: Using dhcp dhcp6 method for hera
NetworkManager[7032]:    SCPlugin-Ifnet: dhcpcd hostname not defined, ignoring
NetworkManager[7032]:    SCPlugin-Ifnet: IPv6 for hera enabled, using auto
NetworkManager[7032]:    SCPlugin-Ifnet: Connection verified hera:1
NetworkManager[7032]:    SCPlugin-Ifnet: Hostname updated to: thinkpad
NetworkManager[7032]:    SCPlugin-Ifnet: Initialzation complete!
NetworkManager[7032]: <info> Loaded plugin ifnet: (C) 1999-2010 Gentoo Foundation, Inc. To report bugs please use bugs.gentoo.org with [networkmanager] or [qiaomuf] prefix.
NetworkManager[7032]: <info> Loaded plugin keyfile: (c) 2007 - 2010 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list.
NetworkManager[7032]:    SCPlugin-Ifnet: getting unmanaged specs...
NetworkManager[7032]:    SCPlugin-Ifnet: (-872398464) ... get_connections.
NetworkManager[7032]:    SCPlugin-Ifnet: (-872398464) connections count: 6
NetworkManager[7032]: claim_connection: assertion `nm_connection_get_path (NM_CONNECTION (connection)) == NULL' failed
NetworkManager[7032]: claim_connection: assertion `nm_connection_get_path (NM_CONNECTION (connection)) == NULL' failed
NetworkManager[7032]: claim_connection: assertion `nm_connection_get_path (NM_CONNECTION (connection)) == NULL' failed
NetworkManager[7032]: claim_connection: assertion `nm_connection_get_path (NM_CONNECTION (connection)) == NULL' failed
NetworkManager[7032]: claim_connection: assertion `nm_connection_get_path (NM_CONNECTION (connection)) == NULL' failed
NetworkManager[7032]: claim_connection: assertion `nm_connection_get_path (NM_CONNECTION (connection)) == NULL' failed
NetworkManager[7032]:    keyfile: parsing Auto Sternchen ... 
NetworkManager[7032]:    keyfile:     read connection 'Auto Sternchen'
NetworkManager[7032]:    keyfile: parsing Auto tsdhNET ... 
NetworkManager[7032]:    keyfile:     read connection 'Auto tsdhNET'
NetworkManager[7032]:    keyfile: parsing Auto muellerNET ... 
NetworkManager[7032]:    keyfile:     read connection 'Auto muellerNET'
NetworkManager[7032]:    keyfile: parsing Auto christelNET ... 
NetworkManager[7032]:    keyfile:     read connection 'Auto christelNET'
NetworkManager[7032]:    keyfile: parsing Auto mt ... 
NetworkManager[7032]:    keyfile:     read connection 'Auto mt'
NetworkManager[7032]:    keyfile: parsing Auto JGH Idar-Oberstein ... 
NetworkManager[7032]:    keyfile:     read connection 'Auto JGH Idar-Oberstein'
NetworkManager[7032]:    keyfile: parsing .keep_net-misc_networkmanager-0 ... 
NetworkManager[7032]: Connection failed to verify: (unknown)
NetworkManager[7032]:    keyfile:     error: invalid or missing connection property '(null)/connection setting not found'
NetworkManager[7032]:    keyfile: parsing uni-koblenz ... 
NetworkManager[7032]:    keyfile:     read connection 'uni-koblenz'
NetworkManager[7032]:    keyfile: parsing Auto CampusLounge ... 
NetworkManager[7032]:    keyfile:     read connection 'Auto CampusLounge'
NetworkManager[7032]:    keyfile: parsing eduroam ... 
NetworkManager[7032]:    keyfile:     read connection 'eduroam'
NetworkManager[7032]:    SCPlugin-Ifnet: getting unmanaged specs...
NetworkManager[7032]: <info> monitoring kernel firmware directory '/lib/firmware'.
NetworkManager[7032]: <info> rfkill1: found WiFi radio killswitch (at /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0/rfkill1) (driver iwl4965)
NetworkManager[7032]: <info> WiFi hardware radio set enabled
NetworkManager[7032]: <warn> No usable DHCP client found! DHCP configurations will fail.
NetworkManager[7032]: <info> WiFi enabled by radio killswitch; enabled by state file
NetworkManager[7032]: <info> WWAN enabled by radio killswitch; enabled by state file
NetworkManager[7032]: <info> WiMAX enabled by radio killswitch; enabled by state file
NetworkManager[7032]: <info> Networking is enabled by state file
NetworkManager[7032]: <warn> failed to allocate link cache: (-10) Operation not supported
NetworkManager[7032]: <info> (eth0): carrier is ON
NetworkManager[7032]: <info> (eth0): new Ethernet device (driver: 'e1000e' ifindex: 2)
NetworkManager[7032]: <info> (eth0): exported as /org/freedesktop/NetworkManager/Devices/0
zsh: segmentation fault  /usr/sbin/NetworkManager --no-daemon

I've tried reverting to 0.9.8.2 which I've successfully used before, but now that version crashes in the same way.  So it might be a side-effect of some other package that was updated yesterday.  Those are:

     Sun Jul 14 21:12:46 2013 >>> dev-lang/python-2.7.5-r1
     Sun Jul 14 21:16:01 2013 >>> dev-libs/libxml2-2.9.1-r1
     Sun Jul 14 21:16:33 2013 >>> dev-ruby/rdoc-4.0.1-r1
     Sun Jul 14 21:19:37 2013 >>> sys-kernel/gentoo-sources-3.10.1
     Sun Jul 14 21:20:17 2013 >>> x11-drivers/xf86-input-evdev-2.8.1
     Sun Jul 14 21:22:17 2013 >>> x11-drivers/xf86-video-intel-2.21.12
     Sun Jul 14 21:27:17 2013 >>> net-print/cups-1.6.3-r1
     Sun Jul 14 21:28:02 2013 >>> media-gfx/gnome-screenshot-3.8.3
     Sun Jul 14 21:32:05 2013 >>> app-text/evince-3.8.3
     Sun Jul 14 21:37:06 2013 >>> net-misc/networkmanager-0.9.8.2-r1
     Sun Jul 14 21:40:12 2013 >>> app-editors/emacs-vcs-24.3.9999
     Sun Jul 14 21:40:31 2013 >>> gnome-base/gdm-3.8.3.1

Hm, none of these seem overly related to networkmanager...

Reproducible: Always




# emerge --info
Portage 2.2.0_alpha188 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.10.1-gentoo x86_64)
=================================================================
System uname: Linux-3.10.1-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-gentoo-2.2
KiB Mem:     3971976 total,     48340 free
KiB Swap:    8393956 total,   8389212 free
Timestamp of tree: Mon, 15 Jul 2013 05:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r1, 3.2.5-r1, 3.3.2-r1
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo emacs x11 my_local_overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.mneisen.org/ http://mirror.netcologne.de/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/emacs /var/lib/layman/x11 /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 apng archive avahi avx berkdb bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups curl cxx dbus dri dts dvd dvdr emacs emboss encode exif fam ffmpeg firefox flac fuse gdbm gif gnome gnome-keyring gnome-online-accounts gnutls gpg gpm gstreamer gtk gtk3 iconv icq icu idn introspection ipv6 jabber jpeg kpathsea lcms libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses networkmanager nls nptl ntp offensive ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline schroedinger sdl session smp socialweb spell sqlite sqlite3 sse sse2 sse3 sse4_1 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upower usb vaapi vorbis vpx webgl wxwidgets x264 xcb xft xinerama xml xv xvid zlib zsh-completion" ABI_X86="64 32" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Fabio Coatti 2013-07-15 09:27:48 UTC
It seems that the same issue is happening to me.

I got some success (nm no longer crashing) by removing some config from/etc/Networkmanager and rebuilding the missing parts, but now I have a problem with dhcpcd: NM is no longer able to start it properly.

If I run it from command line, it gets the IP but after some time the IP address is removed.

Still digging, but something weird has happened also on my system.
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-07-15 09:30:18 UTC
I don't have the same issue; but I can tell that there is a regression for me as well, in my case it fails to do dhcpcd so I ended up setting a static IP for now.
Comment 3 Fabio Coatti 2013-07-15 09:31:24 UTC
I'm getting this error, if this can be useful:

NetworkManager[8709]: <info> (enp0s25): device state change: config -> ip-config (reason 'none') [50 70 0]
NetworkManager[8709]: client_start: assertion `priv->client_type != 0' failed
NetworkManager[8709]: <info> (enp0s25): device state change: ip-config -> failed (reason 'dhcp-start-failed') [70 120 15]
Comment 4 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-07-15 09:37:04 UTC
(In reply to Fabio Coatti from comment #3)
> NetworkManager[8709]: client_start: assertion `priv->client_type != 0' failed

Same here; made a separate bug for that, please post any details to bug #476886 as to not distract from this bug. Thank you in advance.
Comment 5 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-07-15 09:38:41 UTC
(In reply to Fabio Coatti from comment #1)
> I got some success (nm no longer crashing) by removing some config
> from/etc/Networkmanager and rebuilding the missing parts, ...

Tassilo: Could you backup your config and try removing / rebuilding it as well? If you get it to no longer crash this way, could you upload your config then?
Comment 6 Fabio Coatti 2013-07-15 09:43:35 UTC
I've posted details as you suggested in other bug, but the interesting part is that even in my case I've tried to downgrade to previous (non -r1) Networkmanager without success.

Maybe something fiddled with /run permissions or something like that?
Comment 7 Zbyněk Kocur 2013-07-15 09:57:00 UTC
(In reply to Fabio Coatti from comment #1)
> It seems that the same issue is happening to me.
> 
> I got some success (nm no longer crashing) by removing some config
> from/etc/Networkmanager and rebuilding the missing parts, but now I have a
> problem with dhcpcd: NM is no longer able to start it properly.
> 
> If I run it from command line, it gets the IP but after some time the IP
> address is removed.
> 
> Still digging, but something weird has happened also on my system.

I have the same problem. With the oldest configuration the networkmanager crash. If I remove all files in /etc/NetowrkManage, nm works. After rebuilding nm it crash with default config files ....
Comment 8 Tassilo Horn 2013-07-15 09:59:54 UTC
> > I got some success (nm no longer crashing) by removing some config
> > from/etc/Networkmanager and rebuilding the missing parts, ...
> 
> Tassilo: Could you backup your config and try removing / rebuilding it as
> well? If you get it to no longer crash this way, could you upload your
> config then?

I've moved /etc/Networkmanager/ to /etc/Networkmanager.old/ and emerged it again.  But still I get the segmentation fault, although the output is a little different this time using the default configs.

# /usr/sbin/NetworkManager --no-daemon
NetworkManager[26476]: <info> NetworkManager (version 0.9.8.2) is starting...
NetworkManager[26476]: <info> Read config file /etc/NetworkManager/NetworkManager.conf
NetworkManager[26476]: <info> WEXT support is enabled
NetworkManager[26476]:    SCPlugin-Ifnet: Initializing!
NetworkManager[26476]:    SCPlugin-Ifnet: management mode: managed
NetworkManager[26476]: <warn> failed to allocate link cache: (-10) Operation not supported
NetworkManager[26476]:    SCPlugin-Ifnet: Loading connections
NetworkManager[26476]:    SCPlugin-Ifnet: guessed connection type (eth0) = 802-3-ethernet
NetworkManager[26476]: Libgcrypt warning: missing initialization - please fix the application
NetworkManager[26476]:    SCPlugin-Ifnet: update_connection_setting_from_config_block: name:eth0, id:eth0, uuid: a1a5b3d2-2e82-bbd6-f878-d26feacc2c7d
NetworkManager[26476]:    SCPlugin-Ifnet: Using dhcp method for eth0
NetworkManager[26476]:    SCPlugin-Ifnet: dhcpcd hostname not defined, ignoring
NetworkManager[26476]:    SCPlugin-Ifnet: Connection verified eth0:1
NetworkManager[26476]:    SCPlugin-Ifnet: guessed connection type (lo) = 802-3-ethernet
NetworkManager[26476]:    SCPlugin-Ifnet: update_connection_setting_from_config_block: name:lo, id:lo, uuid: 7ce8636c-076f-5f42-3166-76f7ca5ccfbe
NetworkManager[26476]:    SCPlugin-Ifnet: Found error: Unknown config for lo
NetworkManager[26476]:    SCPlugin-Ifnet: guessed connection type (ap1) = 802-11-wireless
NetworkManager[26476]:    SCPlugin-Ifnet: update_connection_setting_from_config_block: name:ap1, id:ap1, uuid: d87afda2-85dd-dc3f-ef93-f3f9b9121368
NetworkManager[26476]:    SCPlugin-Ifnet: Using mode: infrastructure
NetworkManager[26476]:    SCPlugin-Ifnet: wireless_setting added for ap1
NetworkManager[26476]:    SCPlugin-Ifnet: updating wireless security settings (ap1).
NetworkManager[26476]:    SCPlugin-Ifnet: Default key index: 0
NetworkManager[26476]:    SCPlugin-Ifnet: Using dhcp dhcp6 method for ap1
NetworkManager[26476]:    SCPlugin-Ifnet: dhcpcd hostname not defined, ignoring
NetworkManager[26476]:    SCPlugin-Ifnet: IPv6 for ap1 enabled, using auto
NetworkManager[26476]:    SCPlugin-Ifnet: Connection verified ap1:1
NetworkManager[26476]:    SCPlugin-Ifnet: guessed connection type (tsdhNET) = 802-11-wireless
NetworkManager[26476]:    SCPlugin-Ifnet: update_connection_setting_from_config_block: name:tsdhNET, id:tsdhNET, uuid: 615d325f-1a11-5a50-907d-ce49254bd5b2
NetworkManager[26476]:    SCPlugin-Ifnet: Using mode: infrastructure
NetworkManager[26476]:    SCPlugin-Ifnet: wireless_setting added for tsdhNET
NetworkManager[26476]:    SCPlugin-Ifnet: updating wireless security settings (tsdhNET).
NetworkManager[26476]:    SCPlugin-Ifnet: Using dhcp dhcp6 method for tsdhNET
NetworkManager[26476]:    SCPlugin-Ifnet: dhcpcd hostname not defined, ignoring
NetworkManager[26476]:    SCPlugin-Ifnet: IPv6 for tsdhNET enabled, using auto
NetworkManager[26476]:    SCPlugin-Ifnet: Connection verified tsdhNET:1
NetworkManager[26476]:    SCPlugin-Ifnet: guessed connection type (HornNET) = 802-11-wireless
NetworkManager[26476]:    SCPlugin-Ifnet: update_connection_setting_from_config_block: name:HornNET, id:HornNET, uuid: 13e174d7-4155-b2cf-0cda-844b5739397a
NetworkManager[26476]:    SCPlugin-Ifnet: Using mode: infrastructure
NetworkManager[26476]:    SCPlugin-Ifnet: wireless_setting added for HornNET
NetworkManager[26476]:    SCPlugin-Ifnet: updating wireless security settings (HornNET).
NetworkManager[26476]:    SCPlugin-Ifnet: Using dhcp dhcp6 method for HornNET
NetworkManager[26476]:    SCPlugin-Ifnet: dhcpcd hostname not defined, ignoring
NetworkManager[26476]:    SCPlugin-Ifnet: IPv6 for HornNET enabled, using auto
NetworkManager[26476]:    SCPlugin-Ifnet: Connection verified HornNET:1
NetworkManager[26476]:    SCPlugin-Ifnet: guessed connection type (0x4AC3BC7267656E204562657274E280997320436F6D7075746572) = 802-11-wireless
NetworkManager[26476]:    SCPlugin-Ifnet: update_connection_setting_from_config_block: name:0x4AC3BC7267656E204562657274E280997320436F6D7075746572, id:Jürgen Ebert’s Computer, uuid: f494f1f6-21e4-3ce1-e9b8-3dedb8785092
NetworkManager[26476]:    SCPlugin-Ifnet: wireless_setting added for 0x4AC3BC7267656E204562657274E280997320436F6D7075746572
NetworkManager[26476]:    SCPlugin-Ifnet: Using dhcp dhcp6 method for 0x4AC3BC7267656E204562657274E280997320436F6D7075746572
NetworkManager[26476]:    SCPlugin-Ifnet: dhcpcd hostname not defined, ignoring
NetworkManager[26476]:    SCPlugin-Ifnet: IPv6 for 0x4AC3BC7267656E204562657274E280997320436F6D7075746572 enabled, using auto
NetworkManager[26476]:    SCPlugin-Ifnet: Connection verified 0x4AC3BC7267656E204562657274E280997320436F6D7075746572:1
NetworkManager[26476]:    SCPlugin-Ifnet: guessed connection type (hera) = 802-11-wireless
NetworkManager[26476]:    SCPlugin-Ifnet: update_connection_setting_from_config_block: name:hera, id:hera, uuid: 82639153-87db-875f-afa7-d6bd2b3d462c
NetworkManager[26476]:    SCPlugin-Ifnet: wireless_setting added for hera
NetworkManager[26476]:    SCPlugin-Ifnet: Using dhcp dhcp6 method for hera
NetworkManager[26476]:    SCPlugin-Ifnet: dhcpcd hostname not defined, ignoring
NetworkManager[26476]:    SCPlugin-Ifnet: IPv6 for hera enabled, using auto
NetworkManager[26476]:    SCPlugin-Ifnet: Connection verified hera:1
NetworkManager[26476]:    SCPlugin-Ifnet: Hostname updated to: thinkpad
NetworkManager[26476]:    SCPlugin-Ifnet: Initialzation complete!
NetworkManager[26476]: <info> Loaded plugin ifnet: (C) 1999-2010 Gentoo Foundation, Inc. To report bugs please use bugs.gentoo.org with [networkmanager] or [qiaomuf] prefix.
NetworkManager[26476]: <info> Loaded plugin keyfile: (c) 2007 - 2010 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list.
NetworkManager[26476]:    SCPlugin-Ifnet: getting unmanaged specs...
NetworkManager[26476]:    SCPlugin-Ifnet: (2013282688) ... get_connections.
NetworkManager[26476]:    SCPlugin-Ifnet: (2013282688) connections count: 6
NetworkManager[26476]: claim_connection: assertion `nm_connection_get_path (NM_CONNECTION (connection)) == NULL' failed
NetworkManager[26476]: claim_connection: assertion `nm_connection_get_path (NM_CONNECTION (connection)) == NULL' failed
NetworkManager[26476]: claim_connection: assertion `nm_connection_get_path (NM_CONNECTION (connection)) == NULL' failed
NetworkManager[26476]: claim_connection: assertion `nm_connection_get_path (NM_CONNECTION (connection)) == NULL' failed
NetworkManager[26476]: claim_connection: assertion `nm_connection_get_path (NM_CONNECTION (connection)) == NULL' failed
NetworkManager[26476]: claim_connection: assertion `nm_connection_get_path (NM_CONNECTION (connection)) == NULL' failed
NetworkManager[26476]:    keyfile: parsing .keep_net-misc_networkmanager-0 ... 
NetworkManager[26476]: Connection failed to verify: (unknown)
NetworkManager[26476]:    keyfile:     error: invalid or missing connection property '(null)/connection setting not found'
NetworkManager[26476]:    SCPlugin-Ifnet: getting unmanaged specs...
NetworkManager[26476]: <info> monitoring kernel firmware directory '/lib/firmware'.
NetworkManager[26476]: <info> rfkill1: found WiFi radio killswitch (at /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0/rfkill1) (driver iwl4965)
NetworkManager[26476]: <info> WiFi hardware radio set enabled
NetworkManager[26476]: <warn> No usable DHCP client found! DHCP configurations will fail.
NetworkManager[26476]: <info> WiFi enabled by radio killswitch; enabled by state file
NetworkManager[26476]: <info> WWAN enabled by radio killswitch; enabled by state file
NetworkManager[26476]: <info> WiMAX enabled by radio killswitch; enabled by state file
NetworkManager[26476]: <info> Networking is enabled by state file
NetworkManager[26476]: <warn> failed to allocate link cache: (-10) Operation not supported
NetworkManager[26476]: <info> (eth0): carrier is ON
NetworkManager[26476]: <info> (eth0): new Ethernet device (driver: 'e1000e' ifindex: 2)
NetworkManager[26476]: <info> (eth0): exported as /org/freedesktop/NetworkManager/Devices/0
zsh: segmentation fault  /usr/sbin/NetworkManager --no-daemon
Comment 9 Tassilo Horn 2013-07-15 10:03:36 UTC
Ah, and as Zbyněk says: when I delete /etc/NetworkManager and then start it without re-emerging, it won't crash.  But then it also doesn't assign an IP to my ethernet card which is probably the dhcpcd issue others mentioned above.
Comment 10 Zbyněk Kocur 2013-07-15 11:11:47 UTC
(In reply to Tom Wijsman (TomWij) from comment #5)
> (In reply to Fabio Coatti from comment #1)
> > I got some success (nm no longer crashing) by removing some config
> > from/etc/Networkmanager and rebuilding the missing parts, ...
> 
> Tassilo: Could you backup your config and try removing / rebuilding it as
> well? If you get it to no longer crash this way, could you upload your
> config then?

I try it but without the old config files, no files in system-connections, and no NetworkManager.conf. If you have one of them in folter then is a problem with segfault....
Comment 11 Wendy 2013-07-15 12:03:29 UTC
I switched from using dhcpcd to dhclient which solved everything for me.
Comment 12 tka 2013-07-15 12:23:04 UTC
I also had NetworkManager crash at startup until I patched its configure script to accept dhcpcd-6 (see #476170). Since then, everything is back to normal.

Do you have USE=dhcpcd and dhcpcd-6 installed?
Comment 13 Zbyněk Kocur 2013-07-15 12:33:08 UTC
(In reply to Timo Kamph from comment #12)
> I also had NetworkManager crash at startup until I patched its configure
> script to accept dhcpcd-6 (see #476170). Since then, everything is back to
> normal.
> 
> Do you have USE=dhcpcd and dhcpcd-6 installed?

I downgrade bellow version 6 of dhcpcd and now everything works. Network manager starts without problems with old configuration. The problem is in compatibility with new version of dhcpcd.
Comment 14 Fabio Coatti 2013-07-15 12:38:04 UTC
(In reply to Timo Kamph from comment #12)
> I also had NetworkManager crash at startup until I patched its configure
> script to accept dhcpcd-6 (see #476170). Since then, everything is back to
> normal.
> 
> Do you have USE=dhcpcd and dhcpcd-6 installed?

Switching to dhclient solves for me; I had USE=dhcpcd but I didn't found any dhcpcd-6.
Comment 15 Tassilo Horn 2013-07-15 12:58:01 UTC
(In reply to Timo Kamph from comment #12)
> I also had NetworkManager crash at startup until I patched its configure
> script to accept dhcpcd-6 (see #476170). Since then, everything is back to
> normal.
> 
> Do you have USE=dhcpcd and dhcpcd-6 installed?

Indeed, I do have that use-flag set and dhcpcd 6.0.2 installed.  It would be great if the patch to make it work with that version could be added to the ebuilds.
Comment 16 tka 2013-07-15 14:27:53 UTC
> Indeed, I do have that use-flag set and dhcpcd 6.0.2 installed.  It would be
> great if the patch to make it work with that version could be added to the
> ebuilds.

Getting NetworkManager to work with dhcpcd is simple:

diff -Nur NetworkManager-0.9.8.2.orig/configure.ac NetworkManager-0.9.8.2/configure.ac
--- NetworkManager-0.9.8.2.orig/configure.ac	2013-06-07 22:16:35.000000000 +0200
+++ NetworkManager-0.9.8.2/configure.ac	2013-07-15 00:18:04.974866245 +0200
@@ -507,7 +507,7 @@
 if test "$with_dhcpcd" = "yes"; then
 	AC_PATH_PROGS(with_dhcpcd, dhcpcd, no, /sbin:/usr/sbin:/usr/local/sbin)
 	if test "$with_dhcpcd" != "no"; then
-		if ! $with_dhcpcd --version 2>&1 | grep -q "^dhcpcd [[45]]\."; then
+		if ! $with_dhcpcd --version 2>&1 | grep -q "^dhcpcd [[456]]\."; then
 			AC_MSG_WARN([Cannot use dhcpcd, version 4.x or 5.x is required])
 			with_dhcpcd=no
 		fi


However, someone should fix the real problem: If no suitable version of dhcpcd is found, NetworkManager's configure falls back to nonexistent(!) dhclient even if dhcpcd was requested explicitly. In that case it might be better to error out instead of compiling and installing a broken version. And even worse: After that it seems that NetworkManager can not handle the missing dhclient and crashes with a segmentation fault. Very bad!
Comment 17 Pacho Ramos gentoo-dev 2013-07-15 18:14:19 UTC

*** This bug has been marked as a duplicate of bug 476170 ***
Comment 18 Tassilo Horn 2013-07-16 06:30:21 UTC
FWIW, adding the 6 to the check makes NetworkManager work again.  It also successfully obtains IPs for my network devices, so it seems to work just fine also with dhcpcd version 6.
Comment 19 Zbyněk Kocur 2013-07-16 06:55:34 UTC
(In reply to Tassilo Horn from comment #18)
> FWIW, adding the 6 to the check makes NetworkManager work again.  It also
> successfully obtains IPs for my network devices, so it seems to work just
> fine also with dhcpcd version 6.

Yes, now everything works :-). Thank you very much.