After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 737955 - glib-networking: /tls/connection test errors
glib-networking: /tls/connection test errors
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: network
2.42.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2014-10-05 20:58 UTC by Emilio Pozuelo Monfort
Modified: 2018-05-29 06:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Emilio Pozuelo Monfort 2014-10-05 20:58:43 UTC
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 poll
    at ../sysdeps/unix/syscall-template.S line 81
  • #1 g_main_context_poll
    at /build/glib2.0-Dv_k6u/glib2.0-2.42.0/./glib/gmain.c line 4076
  • #2 g_main_context_iterate
    at /build/glib2.0-Dv_k6u/glib2.0-2.42.0/./glib/gmain.c line 3776
  • #3 g_main_loop_run
    at /build/glib2.0-Dv_k6u/glib2.0-2.42.0/./glib/gmain.c line 3975
  • #4 test_write_during_handshake
    at connection.c line 1279
  • #5 test_case_run
    at /build/glib2.0-Dv_k6u/glib2.0-2.42.0/./glib/gtestutils.c line 2059
  • #6 g_test_run_suite_internal
    at /build/glib2.0-Dv_k6u/glib2.0-2.42.0/./glib/gtestutils.c line 2120
  • #7 g_test_run_suite_internal
    at /build/glib2.0-Dv_k6u/glib2.0-2.42.0/./glib/gtestutils.c line 2131
  • #8 g_test_run_suite_internal
    at /build/glib2.0-Dv_k6u/glib2.0-2.42.0/./glib/gtestutils.c line 2131
  • #9 g_test_run_suite
    at /build/glib2.0-Dv_k6u/glib2.0-2.42.0/./glib/gtestutils.c line 2184
  • #10 g_test_run
    at /build/glib2.0-Dv_k6u/glib2.0-2.42.0/./glib/gtestutils.c line 1488
  • #11 main
    at connection.c line 1429

This is on a Thinkpad x230 running Debian amd64 with Linux 3.16. glib and glib-networking 2.42.0.
Comment 1 Emilio Pozuelo Monfort 2014-10-05 21:26:52 UTC
Another one:

iteration: 423
/tls/connection/basic: OK
/tls/connection/verified: OK
/tls/connection/client-auth: OK
/tls/connection/client-auth-rehandshake: **
GLib-Net:ERROR:connection.c:561:test_client_auth_connection: assertion failed: (peer != NULL)
Aborted (core dumped)
Comment 2 Emilio Pozuelo Monfort 2014-10-05 21:58:08 UTC
Got write-during-handshake hanging again:

iteration: 689
/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:
Comment 3 GNOME Infrastructure Team 2018-05-24 17:06:18 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/934.
Comment 4 Michael Catanzaro 2018-05-25 16:35:58 UTC
Reopening. This bug was migrated to https://gitlab.gnome.org/GNOME/glib, but it should have been migrated to https://gitlab.gnome.org/GNOME/glib-networking.
Comment 5 Christoph Reiter (lazka) 2018-05-29 06:40:43 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib-networking/issues/17.