#0  g_logv (log_domain=0x7f0f3ff3ccc4 "GLib-GObject", log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, 
    args=<optimized out>) at gmessages.c:981
#1  0x00007f0f3fc2baa2 in g_log (log_domain=<optimized out>, log_level=<optimized out>, format=<optimized out>)
    at gmessages.c:1010
#2  0x00007f0f3ff180f4 in g_object_ref (_object=<optimized out>) at gobject.c:2884
#3  0x00007f0f3ff1df35 in g_weak_ref_get (weak_ref=<optimized out>) at gobject.c:4067
#4  0x00007f0f40f9b44e in book_client_emit_backend_property_changed_idle_cb (user_data=0x670c20) at e-book-client.c:322
#5  0x00007f0f3fc24413 in g_main_dispatch (context=0x65bce0) at gmain.c:3054
#6  g_main_context_dispatch (context=0x65bce0) at gmain.c:3630
#7  0x00007f0f3fc24758 in g_main_context_iterate (dispatch=1, block=<optimized out>, context=0x65bce0, self=<optimized out>)
    at gmain.c:3701
#8  g_main_context_iterate (context=0x65bce0, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3638
#9  0x00007f0f3fc24b9a in g_main_loop_run (loop=0x663150) at gmain.c:3895
#10 0x0000000000402a9d in e_test_server_utils_setup (fixture=0x66cad0, user_data=<optimized out>) at e-test-server-utils.c:293
#11 0x00007f0f3fc4629f in test_case_run (tc=0x655e30) at gtestutils.c:1713
#12 g_test_run_suite_internal (suite=0x657460, path=0x7f0f3fcbe11e "") at gtestutils.c:1767
#13 0x00007f0f3fc46426 in g_test_run_suite_internal (suite=<optimized out>, path=0x7f0f3fcbe11e "") at gtestutils.c:1778
#14 0x00007f0f3fc46426 in g_test_run_suite_internal (suite=<optimized out>, path=0x7f0f3fcbe11e "") at gtestutils.c:1778
#15 0x00007f0f3fc4677b in g_test_run_suite (suite=0x657420) at gtestutils.c:1823
#16 0x0000000000402f0f in e_test_server_utils_run () at e-test-server-utils.c:428
#17 0x000000000040216c in main (argc=1, argv=0x7fff36ee8198) at test-client-self.c:95


************ After fixing to use g_weak_ref_init()/clear() *************

#0  g_logv (log_domain=0x7f0f3ff3ccc4 "GLib-GObject", log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, 
    args=<optimized out>) at gmessages.c:981
981		  g_private_set (&g_log_depth, GUINT_TO_POINTER (depth));
(gdb) where
#0  g_logv (log_domain=0x7f0f3ff3ccc4 "GLib-GObject", log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, 
    args=<optimized out>) at gmessages.c:981
#1  0x00007f0f3fc2baa2 in g_log (log_domain=<optimized out>, log_level=<optimized out>, format=<optimized out>)
    at gmessages.c:1010
#2  0x00007f0f3ff180f4 in g_object_ref (_object=<optimized out>) at gobject.c:2884
#3  0x00007f0f3ff1df35 in g_weak_ref_get (weak_ref=<optimized out>) at gobject.c:4067
#4  0x00007f0f40f9b44e in book_client_name_vanished_cb (connection=<optimized out>, name=0x5 <Address 0x5 out of bounds>, 
    client=0x66ca50) at e-book-client.c:464
#5  0x00007f0f280063a0 in ?? ()
#6  0x0000000000000005 in ?? ()
#7  0x00007f0f3fc24413 in g_main_dispatch (context=0x65bce0) at gmain.c:3054
#8  g_main_context_dispatch (context=0x65bce0) at gmain.c:3630
#9  0x00007f0f3fc24758 in g_main_context_iterate (dispatch=1, block=<optimized out>, context=0x65bce0, self=<optimized out>)
    at gmain.c:3701
#10 g_main_context_iterate (context=0x65bce0, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3638
#11 0x00007f0f3fc24b9a in g_main_loop_run (loop=0x663150) at gmain.c:3895
#12 0x0000000000402a9d in e_test_server_utils_bootstrap_idle (pair=0x66cad0) at e-test-server-utils.c:225
#13 0x0000000000653950 in ?? ()
#14 0x0000000000655e30 in ?? ()
#15 0x00007f0f3fc4629f in test_case_run (tc=0x0) at gtestutils.c:1713
#16 g_test_run_suite_internal (suite=0x657460, path=0x7f0f3fcbe11e "") at gtestutils.c:1767
#17 0x00007f0f3fc46426 in g_test_run_suite_internal (suite=<optimized out>, path=0x7f0f3fcbe11e "") at gtestutils.c:1778
#18 0x00007f0f3fc46426 in g_test_run_suite_internal (suite=<optimized out>, path=0x7f0f3fcbe11e "") at gtestutils.c:1778
#19 0x00007f0f3fc4677b in g_test_run_suite (suite=0x657420) at gtestutils.c:1823
#20 0x0000000000402f0f in setup_environment () at e-test-server-utils.c:75
#21 e_test_server_utils_run () at e-test-server-utils.c:452
#22 0x000000000040216c in main (argc=1087772448, argv=0x5) at test-client-self.c:82
