Crashes on nm_device_802_11_wireless_get_type

Bug #44009 reported by Philip Van Hoof
14
Affects Status Importance Assigned to Milestone
NetworkManager
Fix Released
Medium
network-manager (Ubuntu)
Fix Released
High
Unassigned

Bug Description

This is the situation when installing the NetworkManager package:
http://paste.ubuntu-nl.org/13751

root@lort:~# /etc/init.d/dbus restart
 * Stopping NetworkManager dispatcher [ ok ]
 * Stopping NetworkManager daemon [ ok ]
 * Stopping DHCP client manager... [ ok ]
 * Stopping Hardware abstraction layer hald [ ok ]
 * Stopping system message bus dbus [ ok ]
 * Starting system message bus dbus [ ok ]
 * Starting Hardware abstraction layer hald run-parts: /etc/dbus-1/event.d/20hal exited with return code 1
 * Starting DHCP client manager... [ ok ]
 * Starting NetworkManager daemon [ ok ]
 * Starting NetworkManager dispatcher [ ok ]
root@lort:~# tail -f /var/log/messages
May 10 14:40:09 localhost -- MARK --
May 10 14:42:08 localhost dhcdbd: dbus_svc_init: dbus_bus_request_name failed: org.freedesktop.DBus.Error.AccessDenied Connection ":1.13" is not allowed to own the service "com.redhat.dhcp" due to security policies in the configuration file
May 10 14:42:09 localhost dhcdbd: Failed to initialise D-Bus service.
May 10 14:42:09 localhost dhcdbd: Started up.
May 10 14:54:53 localhost kernel: [4311990.941000] ADDRCONF(NETDEV_UP): eth0: link is not ready
May 10 14:54:54 localhost kernel: [4311992.550000] tg3: eth0: Link is up at 100 Mbps, full duplex.
May 10 14:54:54 localhost kernel: [4311992.550000] tg3: eth0: Flow control is on for TX and on for RX.
May 10 14:54:54 localhost kernel: [4311992.557000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
May 10 14:55:06 localhost dhcdbd: Shut down.
May 10 14:55:10 localhost dhcdbd: Started up.

root@lort:~# cd /etc/dbus-1/
root@lort:/etc/dbus-1# ls
event.d session.conf system.conf system.d
root@lort:/etc/dbus-1# cd system.d/
root@lort:/etc/dbus-1/system.d# ls
bluez.conf dhcdbd.conf hal.conf NetworkManager.conf nm-applet.conf notification-daemon.conf skype.conf.dpkg-new
root@lort:/etc/dbus-1/system.d# cat dhcdbd.conf
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
    <servicedir>/usr/share/dbus-1/services</servicedir>
    <policy user="root">
            <allow own="com.redhat.dhcp"/>
            <allow send_interface="com.redhat.dhcp"/>
            <allow send_destination="com.redhat.dhcp"/>
    </policy>
    <policy context="default">
            <deny own="com.redhat.dhcp"/>
            <deny send_destination="com.redhat.dhcp"/>
            <deny send_interface="com.redhat.dhcp"/>
    </policy>
</busconfig>
root@lort:/etc/dbus-1/system.d#

After reboot you get an error like this:

May 10 15:13:41 localhost dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/eth0 for sub-path eth0.dbus.get.reason

Revision history for this message
Philip Van Hoof (pvanhoof) wrote :

(gdb) set args --enable-test-devices --no-daemon
(gdb) run
Starting program: /usr/sbin/NetworkManager --enable-test-devices --no-daemon
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1211443520 (LWP 15897)]
(no debugging symbols found)
NetworkManager: <information> starting...
NetworkManager: <WARNING> main (): nm_data_new: Setting up dbus filter
NetworkManager: <information> eth0: Device is fully-supported using driver 'tg3'.
[New Thread -1211446352 (LWP 15906)]
NetworkManager: <information> nm_device_init(): waiting for device's worker thread to start
NetworkManager: <information> nm_device_init(): device's worker thread started, continuing.
NetworkManager: <information> Now managing wired Ethernet (802.3) device 'eth0'.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211443520 (LWP 15897)]
0xb7f82e47 in pthread_mutex_destroy () from /lib/tls/i686/cmov/libpthread.so.0
(gdb) bt
#0 0xb7f82e47 in pthread_mutex_destroy () from /lib/tls/i686/cmov/libpthread.so.0
#1 0x08059a3b in nm_device_802_11_wireless_get_type ()
#2 0xb7cdceac in g_object_unref () from /usr/lib/libgobject-2.0.so.0
#3 0x08055e50 in nm_device_new ()
#4 0x0806589a in nm_create_device_and_add_to_list ()
#5 0x08065ecf in nm_add_initial_devices ()
#6 0x0806654e in nm_hal_init ()
#7 0x080672da in main ()
(gdb)

Revision history for this message
Philip Van Hoof (pvanhoof) wrote :

This is another stack trace

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211554112 (LWP 16682)]
0xb7f67e47 in pthread_mutex_destroy () from /lib/tls/i686/cmov/libpthread.so.0
(gdb)
(gdb)
(gdb) thread apply all bt

Thread 2 (Thread -1211556944 (LWP 16686)):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7dad8c4 in poll () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7ea8788 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#3 0xb7ea8c58 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#4 0x080559c2 in nm_get_device_by_udi ()
#5 0xb7ec1582 in g_static_private_free () from /usr/lib/libglib-2.0.so.0
#6 0xb7f66341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7 0xb7db74ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread -1211554112 (LWP 16682)):
#0 0xb7f67e47 in pthread_mutex_destroy () from /lib/tls/i686/cmov/libpthread.so.0
#1 0x08059a3b in nm_device_802_11_wireless_get_type ()
#2 0xb7cc1eac in g_object_unref () from /usr/lib/libgobject-2.0.so.0
#3 0x08055e50 in nm_device_new ()
#4 0x0806589a in nm_create_device_and_add_to_list ()
#5 0x08065ecf in nm_add_initial_devices ()
#6 0x0806654e in nm_hal_init ()
#7 0x080672da in main ()
(gdb)

Revision history for this message
Philip Van Hoof (pvanhoof) wrote :
Download full text (5.0 KiB)

When disabling my wireless network device it does work:

(gdb) set args --no-daemon --enable-test-devices
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/sbin/NetworkManager --no-daemon --enable-test-devices
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1212074304 (LWP 17293)]
(no debugging symbols found)
NetworkManager: <information> starting...
NetworkManager: <WARNING> main (): nm_data_new: Setting up dbus filter
NetworkManager: <information> eth0: Device is fully-supported using driver 'tg3'.
[New Thread -1212077136 (LWP 17295)]
NetworkManager: <information> nm_device_init(): waiting for device's worker thread to start
NetworkManager: <information> nm_device_init(): device's worker thread started, continuing.
NetworkManager: <information> Now managing wired Ethernet (802.3) device 'eth0'.
NetworkManager: <information> eth1: Device is fully-supported using driver 'ipw2200'.
[New Thread -1220469840 (LWP 17296)]
NetworkManager: <information> nm_device_init(): waiting for device's worker thread to start
NetworkManager: <information> nm_device_init(): device's worker thread started, continuing.
NetworkManager: <information> Now managing wireless (802.11) device 'eth1'.
NetworkManager: <information> Will activate wired connection 'eth0' because it now has a link.
NetworkManager: <information> Updating allowed wireless network lists.
NetworkManager: <WARNING> nm_dbus_get_networks_cb (): nm-dbus-nmi.c:522 (nm_dbus_get_networks_cb): error received: org.freedesktop.NetworkManagerInfo.NoNetworks - There are no wireless networks stored..
NetworkManager: <information> SWITCH: no current connection, found better connection 'eth0'.
NetworkManager: <information> Will activate connection 'eth0'.
NetworkManager: <information> Device eth0 activation scheduled...
NetworkManager: <information> Activation (eth0) started...
NetworkManager: <information> Activation (eth0) Stage 1 of 5 (Device Prepare) scheduled...
NetworkManager: <information> Old device 'eth0' activating, won't change.
NetworkManager: <information> Activation (eth0) Stage 1 of 5 (Device Prepare) started...
NetworkManager: <information> Activation (eth0) Stage 2 of 5 (Device Configure) scheduled...
NetworkManager: <information> Activation (eth0) Stage 1 of 5 (Device Prepare) complete.
NetworkManager: <information> Activation (eth0) Stage 2 of 5 (Device Configure) starting...
NetworkManager: <information> Activation (eth0) Stage 2 of 5 (Device Configure) successful.
NetworkManager: <information> Activation (eth0) Stage 3 of 5 (IP Configure Start) scheduled.
NetworkManager: <information> Activation (eth0) Stage 2 of 5 (Device Configure) complete.
NetworkManager: <information> Activation (eth0) Stage 3 of 5 (IP Configure Start) started...
NetworkManager: <information> DHCP daemon state is now 14 (normal exit) for interface eth0
...

Read more...

Revision history for this message
Philip Van Hoof (pvanhoof) wrote :
Changed in network-manager:
status: Unconfirmed → Confirmed
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Please provide output of "lspci" and "ifconfig -a"

Thanks

description: updated
Revision history for this message
Philip Van Hoof (pvanhoof) wrote :
Download full text (4.1 KiB)

pvanhoof@lort:~$ lspci
0000:00:00.0 Host bridge: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
0000:00:00.1 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Proc essor to I/O Controller (rev 02)
0000:00:00.3 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Proc essor to I/O Controller (rev 02)
0000:00:01.0 PCI bridge: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor t o AGP Controller (rev 02)
0000:00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4 -M) USB UHCI Controller #1 (rev 03)
0000:00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4 -M) USB UHCI Controller #2 (rev 03)
0000:00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4 -M) USB UHCI Controller #3 (rev 03)
0000:00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EH CI Controller (rev 03)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 83)
0000:00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridg e (rev 03)
0000:00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller ( rev 03)
0000:00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 03)
0000:00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH 4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03)
0000:00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 03)
0000:01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Rad eon 9600 M10]
0000:02:02.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5705 Gigabit Ethernet (rev 03)
0000:02:04.0 Network controller: Intel Corporation PRO/Wireless 2200BG (rev 05)
0000:02:06.0 CardBus bridge: O2 Micro, Inc. OZ711M3/MC3 4-in-1 MemoryCardBus Con troller
0000:02:06.1 CardBus bridge: O2 Micro, Inc. OZ711M3/MC3 4-in-1 MemoryCardBus Con troller
0000:02:06.2 System peripheral: O2 Micro, Inc. OZ711Mx 4-in-1 MemoryCardBus Acce lerator
0000:02:06.3 CardBus bridge: O2 Micro, Inc. OZ711M3/MC3 4-in-1 MemoryCardBus Con troller
0000:02:07.0 FireWire (IEEE 1394): Texas Instruments TSB43AB21 IEEE-1394a-2000 C ontroller (PHY/Link)
pvanhoof@lort:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:C0:9F:3F:CC:CB
          inet addr:192.168.1.110 Bcast:192.168.1.255 Mask:255.255.255.0
          inet6 addr: fe80::2c0:9fff:fe3f:cccb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:7603 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3313 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:10666460 (10.1 MiB) TX bytes:259592 (253.5 KiB)
          Interrupt:6

eth1 Link encap:Ethernet HWaddr 00:0E:35:1F:AF:33
          UP BROADCAST MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
          Interrupt:10 Base address:0xa000 Memo...

Read more...

Revision history for this message
Scott Robinson (scott-ubuntu) wrote :

This was fixed upstream, merged into Debian in 0.6.3 in June, and merged into edgy in July.

Changed in network-manager:
status: Confirmed → Fix Released
Changed in network-manager:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.