Summary: | =net-misc/networkmanager-0.9.8.2-r1 - Segmentation fault at startup. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Tassilo Horn <tsdh> |
Component: | [OLD] GNOME | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | fabio.coatti, giovanni.bobbio, zokl |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Tassilo Horn
2013-07-15 07:07:10 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. 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. 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] (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. (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'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? (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 .... > > 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
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. (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.... I switched from using dhcpcd to dhclient which solved everything for me. 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? (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. (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. (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. > 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!
*** This bug has been marked as a duplicate of bug 476170 *** 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. (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. |