libnl bug.



Hey,

Easy to replicate bug:  Remove a network module and libnl barfs in
rtnl_link_build_change_request().  Looking closer, it is tripping up on
the netlink recvmsg() call.

gdb output:

        Thread 1081232304 (LWP 30646) exited]
        
        Program received signal SIGSEGV, Segmentation fault.
        [Switching to Thread 1077037344 (LWP 30554)]
        0x4004a43d in rtnl_link_build_change_request (old=0x0, tmpl=0x80887f0, flags=0)
            at link.c:752
        752     link.c: No such file or directory.
                in link.c
        
        (gdb) bt
        #0  0x4004a43d in rtnl_link_build_change_request (old=0x0, tmpl=0x80887f0,
            flags=0) at link.c:752
        #1  0x4004a706 in rtnl_link_change (handle=0x8087030, old=0x0, tmpl=0x80887f0,
            flags=0) at link.c:812
        #2  0x08060111 in nm_system_device_set_up_down_with_iface (dev=0x8087458,
            iface=0x8086588 "wifi0", up=0) at NetworkManagerSystem.c:396
        #3  0x080601a3 in nm_system_device_set_up_down (dev=0x8087458, up=0)
            at NetworkManagerSystem.c:376
        #4  0x08056619 in nm_device_set_up_down (dev=0x8087458,
            up=<value optimized out>) at NetworkManagerDevice.c:1780
        #5  0x08056a62 in nm_device_unref (dev=0x8087458) at NetworkManagerDevice.c:531
        #6  0x08051581 in nm_dbus_signal_device_status_change (user_data=0x8086ef0)
            at NetworkManagerDbus.c:253
        #7  0x4011d071 in g_list_insert_sorted () from /opt/gnome/lib/libglib-2.0.so.0
        #8  0x4011eaac in g_main_context_dispatch ()
           from /opt/gnome/lib/libglib-2.0.so.0
        #9  0x40121d86 in g_main_context_check () from /opt/gnome/lib/libglib-2.0.so.0
        #10 0x40122147 in g_main_loop_run () from /opt/gnome/lib/libglib-2.0.so.0
        #11 0x0805d753 in main (argc=2, argv=0xbf951544) at NetworkManager.c:951

Best,

	Robert Love





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]