Network Manager crashes after a configuration is added and a connection is attempted.



Hi all,

I'm using QT to speak to Network Manager over DBus and set up configurations on a fully updated Fedora 20 machine. When I attempt to set up a TLS configuration, everything works fine when I call AddConnection. However, when I call ActivateConnection to attempt to connect using the profile I created, Network Manager will crash.

When I attached to the Network Manager process with gdb, I was able to get the following backtrace :

#0 0x00007fa506041cfd in dbus_g_proxy_begin_call (proxy=<optimized out>, method=<optimized out>, notify=<optimized out>, user_data=<optimized out>, destroy=<optimized out>, first_arg_type=<optimized out>) at dbus-gproxy.c:2585
#1  0x00007fa507be679a in add_network_cb ()
#2 0x00007fa505df5782 in complete_pending_call_and_unlock (connection=connection entry=0x7fa509d1ccd0, pending=0x7fa509dbf110,
    message=message entry=0x7fa509da9a10) at dbus-connection.c:2314
#3 0x00007fa505df89b1 in dbus_connection_dispatch (connection=connection entry=0x7fa509d1ccd0) at dbus-connection.c:4580 #4 0x00007fa506039d65 in message_queue_dispatch (source=source entry=0x7fa509d0eb70, callback=<optimized out>,
    user_data=<optimized out>) at dbus-gmain.c:90
#5 0x00007fa503c2a2a6 in g_main_dispatch (context=0x7fa509d061a0) at gmain.c:3066 #6 g_main_context_dispatch (context=context entry=0x7fa509d061a0) at gmain.c:3642 #7 0x00007fa503c2a628 in g_main_context_iterate (context=0x7fa509d061a0, block=block entry=1, dispatch=dispatch entry=1,
    self=<optimized out>) at gmain.c:3713
#8 0x00007fa503c2aa3a in g_main_loop_run (loop=0x7fa509d06060) at gmain.c:3907
#9  0x00007fa507b5bdc5 in main ()




Enabling logging in Network Manager results in the following logging information being recorded (slightly edited to remove some identifying information) :

Jul 01 15:21:30 localhost.localdomain NetworkManager[3938]: <info> Config: added 'ssid' value 'Test71' Jul 01 15:21:30 localhost.localdomain NetworkManager[3938]: <info> Config: added 'scan_ssid' value '1' Jul 01 15:21:30 localhost.localdomain NetworkManager[3938]: <info> Config: added 'key_mgmt' value 'WPA-EAP' Jul 01 15:21:30 localhost.localdomain NetworkManager[3938]: <info> Config: added 'auth_alg' value 'OPEN' Jul 01 15:21:30 localhost.localdomain NetworkManager[3938]: <info> Config: added 'proto' value 'WPA RSN' Jul 01 15:21:30 localhost.localdomain NetworkManager[3938]: <info> Config: added 'eap' value 'TLS' Jul 01 15:21:30 localhost.localdomain NetworkManager[3938]: <info> Config: added 'fragment_size' value '1300' Jul 01 15:21:30 localhost.localdomain NetworkManager[3938]: <info> Config: added 'ca_cert' value 'blob://1c2062d6-5aaf-40d0-87ea-aa7f9bf696bd-ca_cert' Jul 01 15:21:30 localhost.localdomain NetworkManager[3938]: <info> Config: added 'private_key' value 'blob://1c2062d6-5aaf-40d0-87ea-aa7f9bf696bd-private_key' Jul 01 15:21:30 localhost.localdomain NetworkManager[3938]: <info> Config: added 'client_cert' value 'blob://1c2062d6-5aaf-40d0-87ea-aa7f9bf696bd-client_cert' Jul 01 15:21:30 localhost.localdomain NetworkManager[3938]: <info> Config: added 'identity' value '<removed>' Jul 01 15:21:30 localhost.localdomain NetworkManager[3938]: <info> Config: added 'bgscan' value 'simple:30:-65:300' Jul 01 15:21:30 localhost.localdomain NetworkManager[3938]: <info> Config: added 'proactive_key_caching' value '1' Jul 01 15:21:30 localhost.localdomain NetworkManager[3938]: <info> Activation (wls35u1) Stage 2 of 5 (Device Configure) complete. Jul 01 15:21:30 localhost.localdomain NetworkManager[3938]: <info> Config: set interface ap_scan to 1 Jul 01 15:21:30 localhost.localdomain NetworkManager[3938]: (NetworkManager:3938): GLib-GObject-WARNING **: gtype.c:4215: type id '115' is invalid Jul 01 15:21:30 localhost.localdomain NetworkManager[3938]: (NetworkManager:3938): GLib-GObject-WARNING **: can't peek value table for type '<unknown>' which is not currently referenced Jul 01 15:21:30 localhost.localdomain NetworkManager[3938]: (NetworkManager:3938): GLib-GObject-WARNING **: gvalue.c:190: cannot initialize GValue with type '(null)', this type has no GTypeValueTable implementation Jul 01 15:21:30 localhost.localdomain NetworkManager[3938]: (NetworkManager:3938): GLib-GObject-WARNING **: gtype.c:4215: type id '0' is invalid Jul 01 15:21:30 localhost.localdomain NetworkManager[3938]: (NetworkManager:3938): GLib-GObject-WARNING **: can't peek value table for type '<invalid>' which is not currently referenced Jul 01 15:21:30 localhost.localdomain kernel: NetworkManager[3938]: segfault at 8 ip 00007fa4b0e72cfd sp 00007fff710580d0 error 4 in libdbus-glib-1.so.2.2.2[7fa4b0e60000+26000]





I thought it might be an issue with the variant type I was sending in to some configuration setting that was later being parsed when I requested the connection become active. However, after going through my code to generate the settings, they all match what is documented here : https://developer.gnome.org/NetworkManager/0.9/ref-settings.html

One interesting tidbit is that after Network Manager crashes, and is restarted by the system, the connection comes up fine and seems to work from then on.

At this point, short of cracking open the Network Manager code, I am running out of ideas as to what it could be. Perhaps someone that understands the Network Manager code can shed some light on what might be going on?

Thanks!


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