glib-networking: /tls/connection test errors
@epm
Submitted by Emilio Pozuelo Monfort Link to original bug (#737955)
Description
The connection test fails in various subtests randomly.
After 151 successful iterations on the connection test I got on the 152 iteration:
/tls/connection/close-during-handshake: ** GLib-Net:ERROR:connection.c:215:on_server_close_finish: assertion failed: (error != NULL) Aborted (core dumped)
Another one:
iteration: 921 /tls/connection/basic: OK /tls/connection/verified: OK /tls/connection/client-auth: OK /tls/connection/client-auth-rehandshake: OK /tls/connection/client-auth-failure: OK /tls/connection/client-auth-request-cert: OK /tls/connection/client-auth-request-fail: OK /tls/connection/no-database: OK /tls/connection/failed: OK /tls/connection/socket-client: OK /tls/connection/socket-client-failed: OK /tls/connection/read-time-out-then-write: OK /tls/connection/simultaneous-async: ** GLib-Net:ERROR:connection.c:344:run_echo_server: assertion failed (error == NULL): Unacceptable TLS certificate (g-tls-error-quark, 2) Aborted (core dumped)
I've also got a hang:
iteration: 19 /tls/connection/basic: OK /tls/connection/verified: OK /tls/connection/client-auth: OK /tls/connection/client-auth-rehandshake: OK /tls/connection/client-auth-failure: OK /tls/connection/client-auth-request-cert: OK /tls/connection/client-auth-request-fail: OK /tls/connection/no-database: OK /tls/connection/failed: OK /tls/connection/socket-client: OK /tls/connection/socket-client-failed: OK /tls/connection/read-time-out-then-write: OK /tls/connection/simultaneous-async: OK /tls/connection/simultaneous-sync: OK /tls/connection/simultaneous-async-rehandshake: OK /tls/connection/simultaneous-sync-rehandshake: OK /tls/connection/close-immediately: OK /tls/connection/close-during-handshake: OK /tls/connection/write-during-handshake:
The bt is:
#0 0x00007f1faaf370ed in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007f1fab491ee4 in g_main_context_poll (priority=2147483647, n_fds=2, fds=0x11f10c0, timeout=-1, context=0x11d1b20)
at /build/glib2.0-Dv_k6u/glib2.0-2.42.0/./glib/gmain.c:4076
#2 g_main_context_iterate (context=0x11d1b20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
at /build/glib2.0-Dv_k6u/glib2.0-2.42.0/./glib/gmain.c:3776
#3 0x00007f1fab492272 in g_main_loop_run (loop=0x11f6a30) at /build/glib2.0-Dv_k6u/glib2.0-2.42.0/./glib/gmain.c:3975
#4 0x00000000004069e1 in test_write_during_handshake (test=0x121fc00, data=0x2) at connection.c:1279
#5 0x00007f1fab4b7423 in test_case_run (tc=0x11d1200) at /build/glib2.0-Dv_k6u/glib2.0-2.42.0/./glib/gtestutils.c:2059
#6 g_test_run_suite_internal (suite=suite@entry=0x11d0260, path=path@entry=0x7f1fab511f1e "") at /build/glib2.0-Dv_k6u/glib2.0-2.42.0/./glib/gtestutils.c:2120
#7 0x00007f1fab4b75f2 in g_test_run_suite_internal (suite=suite@entry=0x11d0240, path=<optimized out>, path@entry=0x7f1fab511f1e "")
at /build/glib2.0-Dv_k6u/glib2.0-2.42.0/./glib/gtestutils.c:2131
#8 0x00007f1fab4b75f2 in g_test_run_suite_internal (suite=suite@entry=0x11d0220, path=<optimized out>, path@entry=0x7f1fab511f1e "")
at /build/glib2.0-Dv_k6u/glib2.0-2.42.0/./glib/gtestutils.c:2131
#9 0x00007f1fab4b795b in g_test_run_suite (suite=0x11d0220) at /build/glib2.0-Dv_k6u/glib2.0-2.42.0/./glib/gtestutils.c:2184
#10 0x00007f1fab4b7991 in g_test_run () at /build/glib2.0-Dv_k6u/glib2.0-2.42.0/./glib/gtestutils.c:1488
#11 0x0000000000403431 in main (argc=1, argv=0x7ffff1c79b58) at connection.c:1429
This is on a Thinkpad x230 running Debian amd64 with Linux 3.16. glib and glib-networking 2.42.0.
Version: 2.42.x