NetworkManager/src/devices
Lubomir Rintel 8810036895 device: don't assert the platform device's not there upon creation attempt
It might just be that we didn't see it yet; either on daemon startup on in a
race. The nm_platform_*_add() deals with the device already being there in
_link_add_check_existing().

  NetworkManager:ERROR:devices/nm-device-bridge.c:402:create_and_realize: assertion failed: (nm_device_get_ifindex (device) <= 0)

  Program received signal SIGABRT, Aborted.
  0x00007ffff46965d7 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
  56        return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
  Missing separate debuginfos, use: debuginfo-install bluez-libs-5.23-4.el7.x86_64
  (gdb) bt
  #0  0x00007ffff46965d7 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
  #1  0x00007ffff4697cc8 in __GI_abort () at abort.c:90
  #2  0x00007ffff4a916d5 in g_assertion_message (domain=domain@entry=0x5a5088 "NetworkManager", file=file@entry=0x59b0f2 "devices/nm-device-bridge.c", line=line@entry=402, func=func@entry=0x59b3f0 <__FUNCTION__.29169> "create_and_realize", message=message@entry=0xa76a30 "assertion failed: (nm_device_get_ifindex (device) <= 0)") at gtestutils.c:2292
  #3  0x00007ffff4a9176a in g_assertion_message_expr (domain=domain@entry=0x5a5088 "NetworkManager", file=file@entry=0x59b0f2 "devices/nm-device-bridge.c", line=line@entry=402, func=func@entry=0x59b3f0 <__FUNCTION__.29169> "create_and_realize", expr=expr@entry=0x59aef8 "nm_device_get_ifindex (device) <= 0") at gtestutils.c:2307
  #4  0x0000000000447cb6 in create_and_realize (device=0xa77f40 [NMDeviceBridge], connection=0x8d0200, parent=<optimized out>, out_plink=0x7fffffffd700, error=0x0) at devices/nm-device-bridge.c:402
  #5  0x000000000045d560 in nm_device_create_and_realize (self=self@entry=0xa77f40 [NMDeviceBridge], connection=connection@entry=0x8d0200, parent=<optimized out>, error=error@entry=0x0)
  at devices/nm-device.c:1594
  #6  0x00000000004d4b64 in system_create_virtual_device (self=self@entry=0x8802b0 [NMManager], connection=connection@entry=0x8d0200, error=error@entry=0x0) at nm-manager.c:983
  #7  0x00000000004d4d71 in system_create_virtual_devices (self=0x8802b0 [NMManager]) at nm-manager.c:1022
  #8  0x00000000004d47a5 in add_device (self=<optimized out>, device=<optimized out>, try_assume=<optimized out>) at nm-manager.c:1785
  #9  0x00000000004d501f in platform_link_added (self=self@entry=0x8802b0 [NMManager], ifindex=<optimized out>, plink=plink@entry=0xa7f810) at nm-manager.c:1887
  #10 0x00000000004d7c24 in nm_manager_start (self=0x8802b0 [NMManager]) at nm-manager.c:1959
  #11 0x00000000004d7c24 in nm_manager_start (self=self@entry=0x8802b0 [NMManager], error=error@entry=0x7fffffffd930) at nm-manager.c:4178
  #12 0x00000000004459ec in main (argc=1, argv=0x7fffffffda88) at main.c:442
  (gdb)
2015-08-13 10:31:41 +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 device: don't assert the platform device's not there upon creation attempt 2015-08-13 10:31:41 +02: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 device: don't assert the platform device's not there upon creation attempt 2015-08-13 10:31:41 +02: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 device: don't assert the platform device's not there upon creation attempt 2015-08-13 10:31:41 +02: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 device: don't assert the platform device's not there upon creation attempt 2015-08-13 10:31:41 +02: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: log message when constructing NMDevice instance 2015-08-13 10:06:43 +02:00
nm-device.h devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00