Bug 1032490 - NetworkManager: "nmcli c reload" triggers server crash
NetworkManager: "nmcli c reload" triggers server crash
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: NetworkManager (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Dan Williams
Desktop QE
Depends On:
  Show dependency treegraph
Reported: 2013-11-20 04:49 EST by Florian Weimer
Modified: 2014-06-13 07:02 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2014-06-13 07:02:33 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Florian Weimer 2013-11-20 04:49:57 EST
The backtrace looks like this:

#0  g_str_hash (v=0x0) at ghash.c:1732
#1  0x00007fd301250840 in g_hash_table_lookup_node (hash_return=<synthetic pointer>, key=0x0, 
    hash_table=0x7fd305c80de0) at ghash.c:365
#2  g_hash_table_insert_internal (hash_table=0x7fd305c80de0, key=0x0, value=0x7fd305c71820, keep_new_key=0)
    at ghash.c:1153
#3  0x00007fd3053a9973 in read_connections (config=<optimized out>) at settings/plugins/keyfile/plugin.c:349
#4  0x00007fd3053a5ed8 in impl_settings_reload_connections (self=0x7fd305c0c080, context=0x7fd305c7fe90)
    at settings/nm-settings.c:1279
#5  0x00007fd30385d669 in invoke_object_method (message=0x7fd305c078c0, connection=0x7fd305c9d320, 
    method=0x7fd3056709a0 <dbus_glib_nm_settings_methods+96>, object_info=<optimized out>, object=0x7fd305c0c080)
    at dbus-gobject.c:1899
#6  object_registration_message (connection=0x7fd305c9d320, message=message@entry=0x7fd305c078c0, 
    user_data=user_data@entry=0x7fd305c86600) at dbus-gobject.c:2161
#7  0x00007fd303626e26 in _dbus_object_tree_dispatch_and_unlock (tree=0x7fd305c89b90, 
    message=message@entry=0x7fd305c078c0, found_object=found_object@entry=0x7fffefde2d04) at dbus-object-tree.c:862
#8  0x00007fd303619a01 in dbus_connection_dispatch (connection=connection@entry=0x7fd305c9d320)
    at dbus-connection.c:4672
#9  0x00007fd30385ac85 in message_queue_dispatch (source=source@entry=0x7fd305c9fc00, callback=<optimized out>, 
    user_data=<optimized out>) at dbus-gmain.c:90
#10 0x00007fd301260e06 in g_main_dispatch (context=0x7fd305bf91e0) at gmain.c:3054
#11 g_main_context_dispatch (context=context@entry=0x7fd305bf91e0) at gmain.c:3630
#12 0x00007fd301261158 in g_main_context_iterate (context=0x7fd305bf91e0, block=block@entry=1, 
    dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3701
#13 0x00007fd30126155a in g_main_loop_run (loop=0x7fd305bf8d40) at gmain.c:3895
#14 0x00007fd305376c0d in main (argc=1, argv=0x7fffefde3348) at main.c:623

nm_keyfile_connection_get_path (data) returns NULL here:

347		g_hash_table_iter_init (&iter, priv->connections);
348		while (g_hash_table_iter_next (&iter, NULL, &data))
349			g_hash_table_insert (oldconns, g_strdup (nm_keyfile_connection_get_path (data)), data);

This is with NetworkManager-
Comment 2 Jirka Klimes 2013-11-20 10:08:23 EST
Already fixed in upstream master:

The fix will propagate to a RHEL7 build soon (with the next update).
Comment 4 Ludek Smid 2014-06-13 07:02:33 EDT
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.

Note You need to log in before you can comment on or make changes to this bug.