Critical in g_socket_client_async_connect_complete
This happens intermittently but often on Geary at startup. GLib 2.60.0. Similar to #1649 (closed), but different - so CC @mcatanzaro, @pgriffis
![???] 16:52:30 0.024596 GLib-GIO: g_task_return_error_if_cancelled: assertion '!task->ever_returned' failed
Thread 1 "geary" received signal SIGTRAP, Trace/breakpoint trap.
(gdb) bt full
#0 0x00007ffff7d40955 in _g_log_abort (breakpoint=1) at ../../../glib/gmessages.c:554
debugger_present = 1
#1 0x00007ffff7d41c5d in g_logv
(log_domain=0x7ffff794f657 "GLib-GIO", log_level=G_LOG_LEVEL_CRITICAL, format=<optimised out>, args=args@entry=0x7fffffffd8f0) at ../../../glib/gmessages.c:1371
domain = 0x0
data = 0x0
depth = 1
log_func = 0x5555555966fc <_geary_logging_default_handler_glog_func>
domain_fatal_mask = <optimised out>
masquerade_fatal = 0
test_level = 10
was_fatal = 0
was_recursion = 0
msg = 0x555559f2d990 "g_task_return_error_if_cancelled: assertion '!task->ever_returned' failed"
msg_alloc = 0x555559f2d990 "g_task_return_error_if_cancelled: assertion '!task->ever_returned' failed"
i = 3
#2 0x00007ffff7d41e2f in g_log
(log_domain=log_domain@entry=0x7ffff794f657 "GLib-GIO", log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=format@entry=0x7ffff7d9177c "%s: assertion '%s' failed")
at ../../../glib/gmessages.c:1413
args =
{{gp_offset = 40, fp_offset = 48, overflow_arg_area = 0x7fffffffd9d0, reg_save_area = 0x7fffffffd910}}
#3 0x00007ffff7d42629 in g_return_if_fail_warning
(log_domain=log_domain@entry=0x7ffff794f657 "GLib-GIO", pretty_function=pretty_function@entry=0x7ffff7961ac0 <__FUNCTION__.15725> "g_task_return_error_if_cancelled", expression=expression@entry=0x7ffff7961a54 "!task->ever_returned") at ../../../glib/gmessages.c:2767
#4 0x00007ffff78bb81a in g_task_return_error_if_cancelled (task=0x555557347340 [GTask])
at ../../../gio/gtask.c:1915
error = 0x0
__FUNCTION__ = "g_task_return_error_if_cancelled"
#5 0x00007ffff78af54c in g_socket_client_async_connect_complete (data=0x5555572fe680)
at ../../../gio/gsocketclient.c:1429
__FUNCTION__ = "g_socket_client_async_connect_complete"
#6 0x00007ffff78ba059 in g_task_return_now (task=0x7fffd4007bc0 [GTask])
at ../../../gio/gtask.c:1209
#7 0x00007ffff78bab73 in g_task_return (task=0x7fffd4007bc0 [GTask], type=<optimised out>)
at ../../../gio/gtask.c:1278
source = 0x7fffdc00e330
--Type <RET> for more, q to quit, c to continue without paging--
#8 0x00007fff90d390f9 in () at /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so
#9 0x00007ffff78ba059 in g_task_return_now (task=0x555556614d40 [GTask])
at ../../../gio/gtask.c:1209
#10 0x00007ffff78ba099 in complete_in_idle_cb (task=0x555556614d40)
at ../../../gio/gtask.c:1223
#11 0x00007ffff7d3a958 in g_main_dispatch (context=0x555555c16710)
at ../../../glib/gmain.c:3189
dispatch = 0x7ffff7d37280 <g_idle_dispatch>
prev_source = 0x0
was_in_call = 0
user_data = 0x555556614d40
callback = 0x7ffff78ba090 <complete_in_idle_cb>
cb_funcs = <optimised out>
cb_data = 0x7fffdc00f370
need_destroy = <optimised out>
source = 0x7fffdc00e330
current = 0x555555c35390
i = 1
__FUNCTION__ = "g_main_dispatch"
#12 0x00007ffff7d3a958 in g_main_context_dispatch (context=context@entry=0x555555c16710)
at ../../../glib/gmain.c:3854
#13 0x00007ffff7d3ad48 in g_main_context_iterate
(context=context@entry=0x555555c16710, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimised out>) at ../../../glib/gmain.c:3927
max_priority = 0
timeout = 0
some_ready = 1
nfds = <optimised out>
allocated_nfds = 5
fds = 0x5555575a3cf0
#14 0x00007ffff7d3addc in g_main_context_iteration
(context=context@entry=0x555555c16710, may_block=may_block@entry=1)
at ../../../glib/gmain.c:3988
retval = <optimised out>
#15 0x00007ffff78e68bd in g_application_run
(application=0x555555bfd120 [GearyApplication], argc=<optimised out>, argv=0x7fffffffdd88) at ../../../gio/gapplication.c:2516
arguments = 0x555555c05c50
status = 0
context = 0x555555c16710
acquired_context = 1
__FUNCTION__ = "g_application_run"
--Type <RET> for more, q to quit, c to continue without paging--
#16 0x0000555555594e5e in _vala_main (args=0x7fffffffdd88, args_length1=3)
at ../src/client/application/main.vala:33
result = 0
app = 0x555555bfd120 [GearyApplication]
_tmp0_ = 0x555555bfd120 [GearyApplication]
ec = 0
#17 0x0000555555594ea7 in main (argc=3, argv=0x7fffffffdd88)
at ../src/client/application/main.vala:7
(gdb)