After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 671276 - NetworkManager fails to start
NetworkManager fails to start
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: general
0.9.x
Other Linux
: Normal critical
: ---
Assigned To: Dan Williams
Dan Williams
Depends on:
Blocks:
 
 
Reported: 2012-03-03 21:36 UTC by Dimitri
Modified: 2012-03-09 16:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dimitri 2012-03-03 21:36:20 UTC
After upgrade to 0.9.3.955, NetworkManager fails to start. No D-Bus objects are created. Stack trace shows that it blocks in recvmsg() while probing ethernet device for WiFi capabilities. Software versions are as follows:

Mageia Linux, kernel 3.2.9
NetworkManager 0.9.3.955
glibc 2.14.1
libnl 1.1
ethernet driver: forcedeth

GDB session transcript follows:

[root@localhost ~]# gdb NetworkManager 
GNU gdb (GDB) 7.3.50.20110722-4.mga2 (Mageia release 2)
Copyright (C) 2011 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 "i586-mageia-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/NetworkManager...Reading symbols from /usr/lib/debug/usr/sbin/NetworkManager.debug...done.
done.
(gdb) 
(gdb) set args --no-daemon
(gdb) r
Starting program: /usr/sbin/NetworkManager --no-daemon
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i686/libthread_db.so.1".
NetworkManager[4794]: <info> NetworkManager (version 0.9.3.995) is starting...
NetworkManager[4794]: <info> Read config file /etc/NetworkManager/NetworkManager.conf
NetworkManager[4794]: <info> VPN: loaded org.freedesktop.NetworkManager.openvpn
[New Thread 0xb7450b70 (LWP 4797)]
NetworkManager[4794]:    ifcfg-rh: Acquired D-Bus service com.redhat.ifcfgrh1
NetworkManager[4794]: <info> Loaded plugin ifcfg-rh: (c) 2007 - 2010 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list.
NetworkManager[4794]: <info> Loaded plugin keyfile: (c) 2007 - 2010 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list.
NetworkManager[4794]:    ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-eth0 ... 
NetworkManager[4794]: <warn> failed to allocate link cache
^C
Program received signal SIGINT, Interrupt.
0xffffe424 in __kernel_vsyscall ()
(gdb) bt
  • #0 __kernel_vsyscall
  • #1 recvmsg
    from /lib/i686/libpthread.so.0
  • #2 nl_recv
    at nl.c line 493
  • #3 recvmsgs
    at nl.c line 581
  • #4 nl_recvmsgs
    at nl.c line 772
  • #5 _nl80211_send_and_recv
    at wifi-utils-nl80211.c line 130
  • #6 wifi_nl80211_is_wifi
    at wifi-utils-nl80211.c line 795
  • #7 wifi_utils_is_wifi
    at wifi-utils.c line 174
  • #8 connection_from_file
    at reader.c line 4054
  • #9 nm_ifcfg_connection_new
    at nm-ifcfg-connection.c line 119
  • #10 _internal_new_connection
    at plugin.c line 128
  • #11 read_connections
    at plugin.c line 182
  • #12 get_unmanaged_specs
    at plugin.c line 442
  • #13 nm_system_config_interface_get_unmanaged_specs
    at nm-system-config-interface.c line 146
  • #14 unmanaged_specs_changed
    at nm-settings.c line 484
  • #15 nm_settings_new
    at nm-settings.c line 1611
  • #16 main
    at main.c line 561

Comment 1 Dimitri 2012-03-03 22:34:18 UTC
Typo at wifi-utils-nl80211.c:782, should be "if (ifindex < 0)" instead of "if (index < 0)"
Comment 2 Dimitri 2012-03-04 23:31:35 UTC
Works OK with the typo above fixed, though that "<warn> failed to allocate link cache" persists. I think that might affect WiFi detection.
Comment 3 Dan Williams 2012-03-09 16:03:45 UTC
Thanks!  Good catch.  I'll poke at the failed to allocate link cache issue.  Type fix pushed to git master.