Failed assertion on NM shutdown: network_server_lst_head not empty
I experienced this crash during NetworkManager shutdown:
**
NetworkManager:ERROR:../src/devices/bluetooth/nm-bluez-manager.c:2849:dispose: assertion failed: (c_list_is_empty (&priv->network_server_lst_head))
Bail out! NetworkManager:ERROR:../src/devices/bluetooth/nm-bluez-manager.c:2849:dispose: assertion failed: (c_list_is_empty (&priv->network_server_lst_head))
Trace:
#0 0x00007f898244a15a in raise () from glibc-2.30/lib/libc.so.6
#1 0x00007f8982434548 in abort () from glibc-2.30/lib/libc.so.6
#2 0x00007f89829fadc3 in g_assertion_message.cold () from glib-2.62.4/lib/libglib-2.0.so.0
#3 0x00007f8982a55e5b in g_assertion_message_expr () from glib-2.62.4/lib/libglib-2.0.so.0
#4 0x00007f8972d7cdf7 in dispose () from network-manager-1.22.10/lib/NetworkManager/1.22.10/libnm-device-plugin-bluetooth.so
#5 0x00007f8982b1bdb3 in g_object_unref () from glib-2.62.4/lib/libgobject-2.0.so.0
#6 0x00007f8982a4cff8 in g_slist_foreach () from glib-2.62.4/lib/libglib-2.0.so.0
#7 0x00007f8982a4d01b in g_slist_free_full () from glib-2.62.4/lib/libglib-2.0.so.0
#8 0x00007f8982a1abd2 in g_hash_table_remove_all_nodes.part () from glib-2.62.4/lib/libglib-2.0.so.0
#9 0x00007f8982a1bfbf in g_hash_table_unref () from glib-2.62.4/lib/libglib-2.0.so.0
#10 0x00007f8982d37396 in _dl_fini () from glibc-2.30/lib/ld-linux-x86-64.so.2
#11 0x00007f898244c477 in __run_exit_handlers () from glibc-2.30/lib/libc.so.6
#12 0x00007f898244c62a in exit () from glibc-2.30/lib/libc.so.6
#13 0x000000000041d5dd in main ()
This occurred during a system update in which the old builds of NetworkManager, bluetoothd, etc. were all being stopped as concurrently as their systemd dependency structure allowed. Log of that
(Extra bummer: This bluetooth-functionality-related crash happened on a system that doesn't even use bluetooth for anything -- it was just enabled by default.)
Similar issue from 2018: https://bugzilla.redhat.com/show_bug.cgi?id=1579858