GLib-GIO:ERROR:../gio/tests/gsocketclient-slow.c:99:on_event: 'connection' should be NULL
The following discussion from !1686 (merged) should be addressed:
-
@mcatanzaro started a discussion: (+7 comments) So it looks like socketclient-slow test crashed on the Fedora CI. Any idea if that? (The other CI failures look unrelated to me.) I can't reproduce that crash locally, so not much I can do about it if there's no way to get a backtrace out of the CI.
$ cd ...../glib2-2.66.1/x86_64-redhat-linux-gnu/gio/tests/
$ gdb ./gsocketclient-slow --ex r
# random seed: R02S4d7788ca8ef77f717a4fa034ed93ff2f
1..3
# Start of socket-client tests
# Start of happy-eyeballs tests
[New Thread 0x7ffff785c640 (LWP 52629)]
# GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ?gsettings-backend?
[New Thread 0x7ffff6cd6640 (LWP 52630)]
# GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation gnome (GProxyResolverGnome) for ?gio-proxy-resolver?
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded
# GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
ok 1 /socket-client/happy-eyeballs/slow
# Start of cancellation tests
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# GLib-GIO-DEBUG: GSocketClient: Connection failed: Operation was cancelled
ok 2 /socket-client/happy-eyeballs/cancellation/instant
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded
# GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
**
GLib-GIO:ERROR:../gio/tests/gsocketclient-slow.c:99:on_event: 'connection' should be NULL
Bail out! GLib-GIO:ERROR:../gio/tests/gsocketclient-slow.c:99:on_event: 'connection' should be NULL
[New Thread 0x7ffff64d5640 (LWP 52631)]
Thread 1 "gsocketclient-s" received signal SIGABRT, Aborted.
0x00007ffff7acdbc5 in raise () from /lib64/libc.so.6
(gdb) bt
#0 0x00007ffff7acdbc5 in raise () from /lib64/libc.so.6
#1 0x00007ffff7ab68a4 in abort () from /lib64/libc.so.6
#2 0x00007ffff7eb6dec in g_assertion_message (domain=<optimized out>,
file=0x555555556058 "../gio/tests/gsocketclient-slow.c", line=<optimized out>, func=<optimized out>,
message=<optimized out>) at ../glib/gtestutils.c:2936
#3 0x00007ffff7ceb9e0 in _g_cclosure_marshal_VOID__ENUM_OBJECT_OBJECTv (closure=0x55555555b020,
return_value=<optimized out>, instance=<optimized out>, args=<optimized out>, marshal_data=<optimized out>,
n_params=<optimized out>, param_types=0x555555572be0) at ../gio/gmarshal-internal.c:1108
#4 0x00007ffff7e71260 in _g_closure_invoke_va (param_types=0x555555572be0, n_params=<optimized out>, args=0x7fffffffd880,
instance=0x555555582160, return_value=0x0, closure=0x55555555b020) at ../gobject/gclosure.c:873
#5 g_signal_emit_valist (instance=0x555555582160, signal_id=<optimized out>, detail=0,
var_args=var_args@entry=0x7fffffffd880) at ../gobject/gsignal.c:3403
#6 0x00007ffff7e7137f in g_signal_emit (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>)
at ../gobject/gsignal.c:3550
#7 0x00007ffff7d17b91 in g_socket_client_emit_event (connection=<optimized out>, connectable=<optimized out>,
event=G_SOCKET_CLIENT_COMPLETE, client=<optimized out>) at ../gio/gsocketclient.c:1547
#8 g_socket_client_async_connect_complete (attempt=0x5555555a6ec0) at ../gio/gsocketclient.c:1547
#9 0x00007ffff7d2312a in g_task_return_now (task=0x555555573700) at ../gio/gtask.c:1215
#10 0x00007ffff7d2336b in g_task_return (task=0x555555573700, type=<optimized out>) at ../gio/gtask.c:1285
#11 0x00007ffff7d18f68 in g_socket_connection_connect_callback (socket=<optimized out>, condition=<optimized out>,
user_data=0x555555573700) at ../gio/gsocketconnection.c:237
#12 0x00007ffff7d0a8d7 in socket_source_dispatch (source=source@entry=0x5555555a8cf0,
callback=0x7ffff7d18f20 <g_socket_connection_connect_callback>, user_data=0x555555573700) at ../gio/gsocket.c:4007
#13 0x00007ffff7eebff7 in g_main_dispatch (context=0x555555569190) at ../glib/gmain.c:3325
#14 g_main_context_dispatch (context=0x555555569190) at ../glib/gmain.c:4016
#15 0x00007ffff7f3cbb8 in g_main_context_iterate.constprop.0 (context=0x555555569190, block=block@entry=1,
dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4092
#16 0x00007ffff7eeb6cb in g_main_loop_run (loop=0x5555555a2730) at ../glib/gmain.c:4290
#17 0x000055555555575c in test_happy_eyeballs_cancel_delayed () at ../gio/tests/gsocketclient-slow.c:129
#18 0x00007ffff7f123ee in test_case_run (tc=0x555555568060) at ../glib/gtestutils.c:2655
#19 g_test_run_suite_internal (suite=suite@entry=0x5555555670c0, path=path@entry=0x0) at ../glib/gtestutils.c:2743
#20 0x00007ffff7f121eb in g_test_run_suite_internal (suite=suite@entry=0x555555567080, path=path@entry=0x0)
at ../glib/gtestutils.c:2755
#21 0x00007ffff7f121eb in g_test_run_suite_internal (suite=suite@entry=0x555555567060, path=path@entry=0x0)
at ../glib/gtestutils.c:2755
#22 0x00007ffff7f121eb in g_test_run_suite_internal (suite=suite@entry=0x555555567020, path=path@entry=0x0)
at ../glib/gtestutils.c:2755
--Type <RET> for more, q to quit, c to continue without paging--
#23 0x00007ffff7f128da in g_test_run_suite (suite=0x555555567020) at ../glib/gtestutils.c:2830
#24 0x00007ffff7f128f1 in g_test_run () at ../glib/gtestutils.c:2064
#25 0x000055555555523b in main (argc=<optimized out>, argv=<optimized out>) at ../gio/tests/gsocketclient-slow.c:183
(gdb)
Edited by Michael Catanzaro