Suspected race condition in NM client setup



Hello,


I am using NetworkManager 1.12.4 and Glib 2.50.3 in ARM target and sometimes, libnm returns a NM client object which will never be running.


I am creating a NM client object (asynchronously or not) before NetworkManager service start. When NetworkManager is started, sometimes (rare), I can see the following log:

[GLIB-GLib-GIO WARN] Error calling GetManagedObjects() when name owner :1.5 for name org.freedesktop.NetworkManager came back: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface 'org.freedesktop.DBus.ObjectManager' on object at path /org/freedesktop”.


And g_dbus_object_manager_client_new_for_bus (in nm-client.c) fails with the following error: “ GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface 'org.freedesktop.DBus.ObjectManager' on object at path /org/freedesktop”. In that case, the NM client object will be never running.


Is it a known problem? Should not register "org.freedesktop.DBus.ObjectManager" before “RequestName” call and not after in nm-dbus-manager.c (nm_dbus_manager_acquire_bus)? To be sure that ‘ org.freedesktop.Dbus.ObjectManager’ interface is present when name owner change is received.


Thanks,


Sebastien Fabre
Embedded Software Engineer
Bâtiment E-volution - 425, rue Jean Rostand
31670 Labège, France
sebastien fabre sigfox com
sigfox.com



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