wifi: segfault on shtudown
There's a new critical triggering (resulting even in a segfault with malloc-perturb). See e.g. https://gitlab.gnome.org/World/Phosh/phosh/-/jobs/3526180
$ meson test -C _build-test --verbose screenshots-ja_JP.UTF-8
#0 g_type_check_instance (type_instance=type_instance@entry=0x7f60a86aea90) at ../../../gobject/gtype.c:4290
4290 ../../../gobject/gtype.c: No such file or directory.
[Current thread is 1 (Thread 0x7f60acfff6c0 (LWP 664763))]
(gdb) bt
#0 g_type_check_instance (type_instance=type_instance@entry=0x7f60a86aea90) at ../../../gobject/gtype.c:4290
#1 0x00007f60b1a6fa08 in g_signal_handlers_disconnect_matched
(instance=0x7f60a86aea90, mask=mask@entry=G_SIGNAL_MATCH_DATA, signal_id=signal_id@entry=0, detail=detail@entry=0, closure=closure@entry=0x0, func=func@entry=0x0, data=0x7f60a81d8d60)
at ../../../gobject/gsignal.c:3085
#2 0x000055dbbbf3b320 in cleanup_wifi_device (self=0x7f60a81d8d60 [PhoshWifiManager]) at ../src/wifimanager.c:634
#3 cleanup_wifi_device (self=0x7f60a81d8d60 [PhoshWifiManager]) at ../src/wifimanager.c:628
#4 phosh_wifi_manager_dispose (object=0x7f60a81d8d60 [PhoshWifiManager]) at ../src/wifimanager.c:752
#5 0x00007f60b1a5a9c0 in g_object_unref (_object=0x7f60a81d8d60) at ../../../gobject/gobject.c:3894
#6 g_object_unref (_object=0x7f60a81d8d60) at ../../../gobject/gobject.c:3805
#7 0x000055dbbbf329ce in phosh_shell_dispose (object=0x7f60a80a92c0 [PhoshShell]) at ../src/shell.c:545
#8 0x00007f60b1a5a9c0 in g_object_unref (_object=0x7f60a80a92c0) at ../../../gobject/gobject.c:3894
#9 g_object_unref (_object=0x7f60a80a92c0) at ../../../gobject/gobject.c:3805
#10 0x000055dbbbf2afb4 in g_assert_finalize_object (object=0x7f60a80a92c0 [PhoshShell]) at /usr/include/glib-2.0/gobject/gobject.h:821
#11 phosh_test_full_shell_thread (data=0x55dbbd233cc0) at ../tests/testlib-full-shell.c:85
#12 0x00007f60b1980a41 in g_thread_proxy (data=0x55dbbd22fc50) at ../../../glib/gthread.c:831
#13 0x00007f60b12163ec in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:444
#14 0x00007f60b1296a5c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
Patch forthcoming.
Edited by Guido Günther