NetworkManager/src/devices
Lubomir Rintel b339d4e5d6 device-factory: allow using nm_device_factory_manager_for_each_factory() before load
We can dispose the manager before loading the factories:

  NetworkManager[20214]: <error> [1439391976.738579] [nm-bus-manager.c:764] nm_bus_manager_start_service(): Could not acquire the NetworkManager service as it is already taken.
  NetworkManager[20214]: <error> [1439391976.738617] [main.c:424] main(): failed to start the dbus service.
  NetworkManager[20214]: nm_device_factory_manager_for_each_factory: assertion 'factories_by_link' failed

  Program received signal SIGTRAP, Trace/breakpoint trap.
  g_logv (log_domain=0x5a5028 "NetworkManager", log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, args=args@entry=0x7fffffffd750) at gmessages.c:1046
  1046              g_private_set (&g_log_depth, GUINT_TO_POINTER (depth));
  (gdb) bt
  #0  0x00007ffff4a738c3 in g_logv (log_domain=0x5a5028 "NetworkManager", log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, args=args@entry=0x7fffffffd750) at gmessages.c:1046
  #1  0x00007ffff4a73a3f in g_log (log_domain=log_domain@entry=0x5a5028 "NetworkManager", log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=format@entry=0x7ffff4ae173d "%s: assertion '%s' failed")
      at gmessages.c:1079
  #2  0x00007ffff4a73a79 in g_return_if_fail_warning (log_domain=log_domain@entry=0x5a5028 "NetworkManager", pretty_function=pretty_function@entry=0x5a5420 <__FUNCTION__.26921> "nm_device_factory_manager_for_each_factory", expression=expression@entry=0x5a4f25 "factories_by_link") at gmessages.c:1088
  #3  0x00000000004704e4 in nm_device_factory_manager_for_each_factory (callback=callback@entry=0x4d29a0 <_deinit_device_factory>, user_data=user_data@entry=0x8802b0) at devices/nm-device-factory.c:306
  #4  0x00000000004d2927 in dispose (object=0x8802b0 [NMManager]) at nm-manager.c:5086
  #5  0x00007ffff4d6ea82 in g_object_unref (_object=0x8802b0) at gobject.c:3133
  #6  0x00000000004459f6 in main (argc=1, argv=0x7fffffffda88) at main.c:468
  (gdb)
2015-08-12 18:18:56 +02:00
..
adsl devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00
bluetooth devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00
team devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00
wifi devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00
wwan devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00
nm-device-bond.c devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00
nm-device-bond.h all: rename nm-glib-compat.h to nm-glib.h, use everywhere 2015-07-24 13:25:47 -04:00
nm-device-bridge.c devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00
nm-device-bridge.h all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-device-ethernet-utils.c all: drop includes to <glib/gi18n.h> for "nm-default.h" 2015-08-05 15:35:51 +02:00
nm-device-ethernet-utils.h all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-device-ethernet.c devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00
nm-device-ethernet.h all: rename nm-glib-compat.h to nm-glib.h, use everywhere 2015-07-24 13:25:47 -04:00
nm-device-factory.c device-factory: allow using nm_device_factory_manager_for_each_factory() before load 2015-08-12 18:18:56 +02:00
nm-device-factory.h core: split device creation and device setup (bgo #737458) 2015-07-31 14:06:09 -05:00
nm-device-generic.c devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00
nm-device-generic.h core: split device creation and device setup (bgo #737458) 2015-07-31 14:06:09 -05:00
nm-device-gre.c devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00
nm-device-gre.h all: rename nm-glib-compat.h to nm-glib.h, use everywhere 2015-07-24 13:25:47 -04:00
nm-device-infiniband.c devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00
nm-device-infiniband.h all: rename nm-glib-compat.h to nm-glib.h, use everywhere 2015-07-24 13:25:47 -04:00
nm-device-logging.h all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-device-macvlan.c devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00
nm-device-macvlan.h all: rename nm-glib-compat.h to nm-glib.h, use everywhere 2015-07-24 13:25:47 -04:00
nm-device-private.h all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-device-tun.c devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00
nm-device-tun.h all: rename nm-glib-compat.h to nm-glib.h, use everywhere 2015-07-24 13:25:47 -04:00
nm-device-veth.c devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00
nm-device-veth.h all: rename nm-glib-compat.h to nm-glib.h, use everywhere 2015-07-24 13:25:47 -04:00
nm-device-vlan.c devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00
nm-device-vlan.h core: split device creation and device setup (bgo #737458) 2015-07-31 14:06:09 -05:00
nm-device-vxlan.c devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00
nm-device-vxlan.h all: rename nm-glib-compat.h to nm-glib.h, use everywhere 2015-07-24 13:25:47 -04:00
nm-device.c device: avoid a crash during destruction 2015-08-12 18:18:56 +02:00
nm-device.h devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00