(gdb) thread apply all bt

Thread 3 (Thread 0x7f4e45be0700 (LWP 16198)):
#0  0x00007f4e4eabe11d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f4e4edd227c in g_main_context_iterate (priority=2147483647, n_fds=1, fds=0x7f4e400008e0, timeout=<optimized out>, context=0x20b0940) at gmain.c:4135
#2  0x00007f4e4edd227c in g_main_context_iterate (context=context@entry=0x20b0940, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3835
#3  0x00007f4e4edd238c in g_main_context_iteration (context=0x20b0940, may_block=may_block@entry=1) at gmain.c:3901
#4  0x00007f4e4edd23c9 in glib_worker_main (data=<optimized out>) at gmain.c:5672
#5  0x00007f4e4edf8ec5 in g_thread_proxy (data=0x20b3400) at gthread.c:778
#6  0x00007f4e504d860a in start_thread (arg=0x7f4e45be0700) at pthread_create.c:334
#7  0x00007f4e4eac9bbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f4e453df700 (LWP 16199)):
#0  0x00007f4e504e089d in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007f4e504daa36 in __GI___pthread_mutex_lock (mutex=0x2097380) at ../nptl/pthread_mutex_lock.c:116
#2  0x00007f4e4f0f4efc in g_type_add_interface_static (instance_type=instance_type@entry=139973923723680, interface_type=34223056, info=info@entry=0x7f4e453dea70) at gtype.c:2846
#3  0x00007f4e4f38ebcd in g_socket_get_type () at gsocket.c:203
#4  0x00007f4e4f38f1d9 in g_socket_new (family=G_SOCKET_FAMILY_UNIX, type=G_SOCKET_TYPE_STREAM, protocol=G_SOCKET_PROTOCOL_DEFAULT, error=error@entry=0x7f4e453deb48) at gsocket.c:1048
#5  0x00007f4e4f394c28 in create_socket (client=client@entry=0x20ba900 [GSocketClient], dest_address=dest_address@entry=0x7f4e38004880 [GUnixSocketAddress], error=error@entry=0x7f4e453deb48) at gsocketclient.c:130
#6  0x00007f4e4f396127 in g_socket_client_connect (client=client@entry=0x20ba900 [GSocketClient], connectable=connectable@entry=0x7f4e38004880, cancellable=cancellable@entry=0x2097d10 [GCancellable], error=error@entry=0x7f4e453dec40) at gsocketclient.c:1039
#7  0x00007f4e4f3e0205 in g_dbus_address_try_connect_one (error=0x7f4e453dec40, cancellable=0x2097d10 [GCancellable], key_value_pairs=<optimized out>, transport_name=<optimized out>, address_entry=<optimized out>) at gdbusaddress.c:675
#8  0x00007f4e4f3e0205 in g_dbus_address_try_connect_one (address_entry=<optimized out>, out_guid=out_guid@entry=0x0, cancellable=cancellable@entry=0x2097d10 [GCancellable], error=error@entry=0x7f4e453dec40) at gdbusaddress.c:778
#9  0x00007f4e4f3e07d8 in g_dbus_address_get_stream_sync (address=<optimized out>, out_guid=out_guid@entry=0x0, cancellable=cancellable@entry=0x2097d10 [GCancellable], error=error@entry=0x20b90b8) at gdbusaddress.c:960
#10 0x00007f4e4f3f1927 in initable_init (initable=<optimized out>, cancellable=0x2097d10 [GCancellable], error=0x7f4e453decd0) at gdbusconnection.c:2499
#11 0x00007f4e4f34b7b7 in async_init_thread (task=0x20b69f0 [GTask], source_object=0x20b9050, task_data=<optimized out>, cancellable=0x2097d10 [GCancellable]) at gasyncinitable.c:257
#12 0x00007f4e4f39f808 in g_task_thread_pool_thread (thread_data=0x20b69f0, pool_data=<optimized out>) at gtask.c:1283
#13 0x00007f4e4edf985e in g_thread_pool_thread_proxy (data=<optimized out>) at gthreadpool.c:307
#14 0x00007f4e4edf8ec5 in g_thread_proxy (data=0x20b3450) at gthread.c:778
#15 0x00007f4e504d860a in start_thread (arg=0x7f4e453df700) at pthread_create.c:334
#16 0x00007f4e4eac9bbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f4e524d0900 (LWP 16197)):
#0  0x00007f4e4eac3d89 in syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007f4e4ee16e5f in g_cond_wait (cond=cond@entry=0x7f4e4f0c0e00 <g_once_cond>, mutex=mutex@entry=0x7f4e4f0c0e10 <g_once_mutex>) at gthread-posix.c:1397
#2  0x00007f4e4edf901b in g_once_init_enter (location=location@entry=0x7f4e4f69fd68 <g_define_type_id.volatile>) at gthread.c:663
#3  0x00007f4e4f38eb44 in g_socket_get_type () at gsocket.c:203
#4  0x00007f4e4f3983d8 in g_socket_listener_class_intern_init (klass=<optimized out>) at gsocketlistener.c:173
#5  0x00007f4e4f3983d8 in g_socket_listener_class_intern_init (klass=<optimized out>) at gsocketlistener.c:83
#6  0x00007f4e4f0f18ad in g_type_class_ref (pclass=0x20a34d0, node=0x20c59e0) at gtype.c:2236
#7  0x00007f4e4f0f18ad in g_type_class_ref (type=<optimized out>) at gtype.c:2951
#8  0x00007f4e4f0f14ad in g_type_class_ref (type=<optimized out>) at gtype.c:2943
#9  0x00007f4e4f0f14ad in g_type_class_ref (type=type@entry=34364384) at gtype.c:2943
#10 0x00007f4e4f0d8774 in g_object_new_valist (object_type=object_type@entry=34364384, first_property_name=first_property_name@entry=0x7f4e4f432939 "max-threads", var_args=var_args@entry=0x7ffdc541bd40) at gobject.c:1965
#11 0x00007f4e4f0d88f1 in g_object_new (object_type=34364384, first_property_name=first_property_name@entry=0x7f4e4f432939 "max-threads") at gobject.c:1623
#12 0x00007f4e4f3a13be in g_threaded_socket_service_new (max_threads=max_threads@entry=-1) at gthreadedsocketservice.c:265
#13 0x00007f4e4f403c42 in initable_init (initable=<optimized out>, cancellable=<optimized out>, error=0x7ffdc541c090) at gdbusserver.c:1049
#14 0x00007f4e4f3748ba in g_initable_new_valist (object_type=<optimized out>, first_property_name=0x7f4e4f42b642 "address", var_args=0x7ffdc541bf20, cancellable=0x0, error=0x7ffdc541c090) at ginitable.c:228
#15 0x00007f4e4f374976 in g_initable_new (object_type=<optimized out>, cancellable=cancellable@entry=0x0, error=error@entry=0x7ffdc541c090, first_property_name=first_property_name@entry=0x7f4e4f42b642 "address") at ginitable.c:146
#16 0x00007f4e4f404a9e in g_dbus_server_new_sync (address=0x20bf9d0 "unix:path=/var/run/NetworkManager/private", flags=G_DBUS_SERVER_FLAGS_NONE, guid=0x20b4c10 "8f27b2f9ee81076937d54a1e55eeef68", observer=0x20b2c60 [GDBusAuthObserver], cancellable=0x0, error=0x7ffdc541c090) at gdbusserver.c:491
#17 0x00000000004b288f in private_server_new (path=<optimized out>, tag=0x5c615a "private", manager=0x20ba500 [NMBusManager]) at nm-bus-manager.c:200
#18 0x00000000004b2087 in nm_bus_manager_init (self=0x20ba500 [NMBusManager]) at nm-bus-manager.c:517
#19 0x00000000004b2087 in nm_bus_manager_init (self=0x20ba500 [NMBusManager]) at nm-bus-manager.c:534
#20 0x00007f4e4f0f4a29 in g_type_create_instance (type=34309696) at gtype.c:1870
#21 0x00007f4e4f0d66bb in g_object_new_internal (class=class@entry=0x20c22f0, params=params@entry=0x0, n_params=n_params@entry=0) at gobject.c:1780
#22 0x00007f4e4f0d7fd1 in g_object_newv (object_type=object_type@entry=34309696, n_parameters=n_parameters@entry=0, parameters=parameters@entry=0x0) at gobject.c:1927
#23 0x00007f4e4f0d8904 in g_object_new (object_type=34309696, first_property_name=0x0) at gobject.c:1620
#24 0x00000000004b2172 in nm_bus_manager_get () at nm-bus-manager.c:83
#25 0x00000000004dbf8c in nm_manager_init (manager=0x20c31e0 [NMManager]) at nm-manager.c:4949
#26 0x00007f4e4f0f4a29 in g_type_create_instance (type=34320592) at gtype.c:1870
#27 0x00007f4e4f0d66bb in g_object_new_internal (class=class@entry=0x20bb2a0, params=params@entry=0x0, n_params=n_params@entry=0) at gobject.c:1780
#28 0x00007f4e4f0d7fd1 in g_object_newv (object_type=object_type@entry=34320592, n_parameters=n_parameters@entry=0, parameters=parameters@entry=0x0) at gobject.c:1927
#29 0x00007f4e4f0d8904 in g_object_new (object_type=34320592, first_property_name=0x0) at gobject.c:1620
#30 0x00000000004dd7f0 in nm_manager_setup (state_file=<optimized out>, initial_net_enabled=<optimized out>, initial_wifi_enabled=1, initial_wwan_enabled=<optimized out>) at nm-manager.c:4843
#31 0x0000000000456588 in main (argc=<optimized out>, argv=<optimized out>) at main.c:404
(gdb) 
