Tor 0.4.8.x Bug - tor_tls_get_tlssecrets: Non-fatal assertion

I’m getting these errors on my relay :

Nov 29 00:00:36.000 [notice] Tor 0.4.8.9 opening new log file.
Nov 29 10:30:24.000 [warn] {BUG} tor_bug_occurred_(): Bug: ../src/lib/tls/tortls_openssl.c:1674: tor_tls_get_tlssecrets: Non-fatal assertion !(! master_key_len) failed. (on Tor 0.4.8.9 )
Nov 29 10:30:24.000 [warn] {BUG} Bug: Tor 0.4.8.9: Non-fatal assertion !(! master_key_len) failed in tor_tls_get_tlssecrets at ../src/lib/tls/tortls_openssl.c:1674. Stack trace: (on Tor 0.4.8.9 )
Nov 29 10:30:24.000 [warn] {BUG} Bug:     /usr/bin/tor(log_backtrace_impl+0x5a) [0x557022d11caa] (on Tor 0.4.8.9 )
Nov 29 10:30:24.000 [warn] {BUG} Bug:     /usr/bin/tor(tor_bug_occurred_+0x16f) [0x557022d1d04f] (on Tor 0.4.8.9 )
Nov 29 10:30:24.000 [warn] {BUG} Bug:     /usr/bin/tor(tor_tls_get_tlssecrets+0x3d7) [0x557022d357d7] (on Tor 0.4.8.9 )
Nov 29 10:30:24.000 [warn] {BUG} Bug:     /usr/bin/tor(connection_or_compute_authenticate_cell_body+0x20a) [0x557022e4eada] (on Tor 0.4.8.9 )
Nov 29 10:30:24.000 [warn] {BUG} Bug:     /usr/bin/tor(connection_or_send_authenticate_cell+0xa0) [0x557022e4f170] (on Tor 0.4.8.9 )
Nov 29 10:30:24.000 [warn] {BUG} Bug:     /usr/bin/tor(channel_tls_handle_var_cell+0xe09) [0x557022d7c719] (on Tor 0.4.8.9 )
Nov 29 10:30:24.000 [warn] {BUG} Bug:     /usr/bin/tor(+0x1a64ab) [0x557022dcc4ab] (on Tor 0.4.8.9 )
Nov 29 10:30:24.000 [warn] {BUG} Bug:     /usr/bin/tor(connection_handle_read+0xb29) [0x557022dc2859] (on Tor 0.4.8.9 )
Nov 29 10:30:24.000 [warn] {BUG} Bug:     /usr/bin/tor(+0x720fd) [0x557022c980fd] (on Tor 0.4.8.9 )
Nov 29 10:30:24.000 [warn] {BUG} Bug:     /lib/x86_64-linux-gnu/libevent-2.1.so.7(+0x2113f) [0x7f05960cd13f] (on Tor 0.4.8.9 )
Nov 29 10:30:24.000 [warn] {BUG} Bug:     /lib/x86_64-linux-gnu/libevent-2.1.so.7(event_base_loop+0x52f) [0x7f05960cd87f] (on Tor 0.4.8.9 )
Nov 29 10:30:24.000 [warn] {BUG} Bug:     /usr/bin/tor(do_main_loop+0x105) [0x557022c993d5] (on Tor 0.4.8.9 )
Nov 29 10:30:24.000 [warn] {BUG} Bug:     /usr/bin/tor(tor_run_main+0x195) [0x557022c94cb5] (on Tor 0.4.8.9 )
Nov 29 10:30:24.000 [warn] {BUG} Bug:     /usr/bin/tor(tor_main+0x3e) [0x557022c9119e] (on Tor 0.4.8.9 )
Nov 29 10:30:24.000 [warn] {BUG} Bug:     /usr/bin/tor(main+0x1d) [0x557022c90d4d] (on Tor 0.4.8.9 )
Nov 29 10:30:24.000 [warn] {BUG} Bug:     /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f05959a4083] (on Tor 0.4.8.9 )
Nov 29 10:30:24.000 [warn] {BUG} Bug:     /usr/bin/tor(_start+0x2e) [0x557022c90dae] (on Tor 0.4.8.9 )
Nov 29 10:30:24.000 [warn] {NET} Missing master key after handshake using TLSv1.3 (cipher: TLS_CHACHA20_POLY1305_SHA256, server: false) from [xxx]:3389 ID=<none> RSA_ID=653457E5ACA5783FF67F36EE9843025A3460006F
Nov 29 10:30:24.000 [warn] {OR} Couldn't send authenticate cell
5 Likes

Thank you for your report. I have passed on your Tor logs to the Network team for review.

2 Likes

I’m having the same issue recently.
Can you tell me how it was fixed?

I updated and upgraded my relay with sudo apt update && apt upgrade, rebooted the server and tried to restart the tor service multiple times but always get the following error:

$ systemctl status tor@default
× tor@default.service - Anonymizing overlay network for TCP
     Loaded: loaded (/lib/systemd/system/tor@default.service; enabled-runtime; preset: enabled)
     Active: failed (Result: exit-code) since Mon 2024-06-10 09:57:13 UTC; 9s ago
    Process: 1874 ExecStartPre=/usr/bin/install -Z -m 02755 -o debian-tor -g debian-tor -d /run/tor (code=exited, status=0/SUCCESS)
    Process: 1875 ExecStartPre=/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc/tor/torrc --RunAsDaemon 0 --verify-config (code=exited, status=0/SUCCESS)
    Process: 1876 ExecStart=/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc/tor/torrc --RunAsDaemon 0 (code=exited, status=1/FAILURE)
   Main PID: 1876 (code=exited, status=1/FAILURE)
        CPU: 44ms

Jun 10 09:57:13 torrelay systemd[1]: tor@default.service: Main process exited, code=exited, status=1/FAILURE
Jun 10 09:57:13 torrelay systemd[1]: tor@default.service: Failed with result 'exit-code'.
Jun 10 09:57:13 torrelay systemd[1]: Failed to start tor@default.service - Anonymizing overlay network for TCP.
Jun 10 09:57:13 torrelay systemd[1]: tor@default.service: Scheduled restart job, restart counter is at 5.
Jun 10 09:57:13 torrelay systemd[1]: Stopped tor@default.service - Anonymizing overlay network for TCP.
Jun 10 09:57:13 torrelay systemd[1]: tor@default.service: Start request repeated too quickly.
Jun 10 09:57:13 torrelay systemd[1]: tor@default.service: Failed with result 'exit-code'.
Jun 10 09:57:13 torrelay systemd[1]: Failed to start tor@default.service - Anonymizing overlay network for TCP.

Here is my journalctl log:

Jun 04 03:02:39 torrelay Tor[25494]: tor_bug_occurred_(): Bug: ../src/lib/tls/tortls_openssl.c:1674: tor_tls_get_tlssecrets: Non-fatal assertion !(! master_key_len) failed. (on Tor 0.4.8.1>
Jun 04 03:02:39 torrelay Tor[25494]: Bug: Tor 0.4.8.11: Non-fatal assertion !(! master_key_len) failed in tor_tls_get_tlssecrets at ../src/lib/tls/tortls_openssl.c:1674. Stack trace: (on T>
Jun 04 03:02:39 torrelay Tor[25494]: Bug:     /usr/bin/tor(log_backtrace_impl+0x57) [0x55e48443fea7] (on Tor 0.4.8.11 )
Jun 04 03:02:39 torrelay Tor[25494]: Bug:     /usr/bin/tor(tor_bug_occurred_+0x169) [0x55e48444adf9] (on Tor 0.4.8.11 )
Jun 04 03:02:39 torrelay Tor[25494]: Bug:     /usr/bin/tor(tor_tls_get_tlssecrets+0x3b7) [0x55e484463eb7] (on Tor 0.4.8.11 )
Jun 04 03:02:39 torrelay Tor[25494]: Bug:     /usr/bin/tor(connection_or_compute_authenticate_cell_body+0x20f) [0x55e48457e06f] (on Tor 0.4.8.11 )
Jun 04 03:02:39 torrelay Tor[25494]: Bug:     /usr/bin/tor(connection_or_send_authenticate_cell+0x98) [0x55e48457e6f8] (on Tor 0.4.8.11 )
Jun 04 03:02:39 torrelay Tor[25494]: Bug:     /usr/bin/tor(channel_tls_handle_var_cell+0x10fc) [0x55e4844abd7c] (on Tor 0.4.8.11 )
Jun 04 03:02:39 torrelay Tor[25494]: Bug:     /usr/bin/tor(+0x1a72f3) [0x55e4844fc2f3] (on Tor 0.4.8.11 )
Jun 04 03:02:39 torrelay Tor[25494]: Bug:     /usr/bin/tor(+0x19d644) [0x55e4844f2644] (on Tor 0.4.8.11 )
Jun 04 03:02:39 torrelay Tor[25494]: Bug:     /usr/bin/tor(+0x70369) [0x55e4843c5369] (on Tor 0.4.8.11 )
Jun 04 03:02:39 torrelay Tor[25494]: Bug:     /lib/x86_64-linux-gnu/libevent-2.1.so.7(+0x21585) [0x7f6ddcac2585] (on Tor 0.4.8.11 )
Jun 04 03:02:39 torrelay Tor[25494]: Bug:     /lib/x86_64-linux-gnu/libevent-2.1.so.7(event_base_loop+0x49f) [0x7f6ddcac2c1f] (on Tor 0.4.8.11 )
Jun 04 03:02:39 torrelay Tor[25494]: Bug:     /usr/bin/tor(do_main_loop+0xf1) [0x55e4843c6671] (on Tor 0.4.8.11 )
Jun 04 03:02:39 torrelay Tor[25494]: Bug:     /usr/bin/tor(tor_run_main+0x1e5) [0x55e4843c1fa5] (on Tor 0.4.8.11 )
Jun 04 03:02:39 torrelay Tor[25494]: Bug:     /usr/bin/tor(tor_main+0x59) [0x55e4843be329] (on Tor 0.4.8.11 )
Jun 04 03:02:39 torrelay Tor[25494]: Bug:     /usr/bin/tor(main+0x19) [0x55e4843bdee9] (on Tor 0.4.8.11 )
Jun 04 03:02:39 torrelay Tor[25494]: Bug:     /lib/x86_64-linux-gnu/libc.so.6(+0x2724a) [0x7f6ddc18a24a] (on Tor 0.4.8.11 )
Jun 04 03:02:39 torrelay Tor[25494]: Bug:     /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7f6ddc18a305] (on Tor 0.4.8.11 )
Jun 04 03:02:39 torrelay Tor[25494]: Bug:     /usr/bin/tor(_start+0x21) [0x55e4843bdf31] (on Tor 0.4.8.11 )
Jun 04 03:02:39 torrelay Tor[25494]: Missing master key after handshake using TLSv1.3 (cipher: TLS_CHACHA20_POLY1305_SHA256, server: false) from 43.157.79.202:7443 ID=<none> RSA_ID=4923E0C>
Jun 04 03:02:39 torrelay Tor[25494]: Couldn't send authenticate cell

my system:

$ lsb_release
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm

$ cat /proc/version
Linux version 6.8.4-3-pve (build@proxmox) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40)

I searched for a fix online but found nothing. I don’t know what else I could do to because I am quite new to running a tor-relay.
I’ll be happy for any advice.
Thanks.

1 Like

Hi all

FWIW the following bug report was in the logs for a non-exit relay recently (tor 0.4.8.12).

2024-06-14T03:42:26.621Z x.x.x.x hostname Tor[62888]: No circuits are opened. Relaxed timeout for circuit 27264 (a Measuring circuit timeout 3-hop circuit in state doing handshakes with channel state open) to 62468ms. However, it appears the circuit has timed out anyway. [1 similar message(s) suppressed in last 3780 seconds]
2024-06-14T04:36:48.765Z x.x.x.x hostname Tor[62888]: tor_bug_occurred_: Bug: src/lib/tls/tortls_openssl.c:1674: tor_tls_get_tlssecrets: Non-fatal assertion !(! master_key_len) failed. (on Tor 0.4.8.12 )
2024-06-14T04:36:48.777Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0620a991 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:36:48.777Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06218764 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:36:48.777Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06230e0e <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:36:48.777Z x.x.x.x hostname Tor[62888]: Bug: Tor 0.4.8.12: Non-fatal assertion !(! master_key_len) failed in tor_tls_get_tlssecrets at src/lib/tls/tortls_openssl.c:1674. Stack trace: (on Tor 0.4.8.12 )
2024-06-14T04:36:48.778Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0607f939 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:36:48.778Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06086b6a <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:36:48.778Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc061a236f <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:36:48.778Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc061a27b6 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:36:48.779Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06067559 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:36:48.779Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0607ab3e <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:36:48.779Z x.x.x.x hostname Tor[62888]: Bug:     0x2beba6b0b16 <event_base_assert_ok_nolock_+0xcf6> at /usr/local/lib/libevent_core.so.2.1 (on Tor 0.4.8.12 )
2024-06-14T04:36:48.780Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060696df <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:36:48.780Z x.x.x.x hostname Tor[62888]: Bug:     0x2beba6abf4c <event_base_loop+0x59c> at /usr/local/lib/libevent_core.so.2.1 (on Tor 0.4.8.12 )
2024-06-14T04:36:48.781Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060551ab <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:36:48.781Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060554bf <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:36:48.781Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06056d31 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:36:48.781Z x.x.x.x hostname Tor[62888]: Missing master key after handshake using TLSv1.3 (cipher: TLS_CHACHA20_POLY1305_SHA256, server: false) from 38.181.34.91:7443 ID=<none> RSA_ID=9B9911DC58D5E7618C8F52858C77A8318407A38E
2024-06-14T04:36:48.782Z x.x.x.x hostname Tor[62888]: Couldn't send authenticate cell
2024-06-14T04:37:01.172Z x.x.x.x hostname Tor[62888]: tor_bug_occurred_: Bug: src/lib/tls/tortls_openssl.c:1674: tor_tls_get_tlssecrets: Non-fatal assertion !(! master_key_len) failed. (on Tor 0.4.8.12 )
2024-06-14T04:37:01.174Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0620a991 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:37:01.174Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06218764 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:37:01.174Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06230e0e <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:37:01.174Z x.x.x.x hostname Tor[62888]: Bug: Tor 0.4.8.12: Non-fatal assertion !(! master_key_len) failed in tor_tls_get_tlssecrets at src/lib/tls/tortls_openssl.c:1674. Stack trace: (on Tor 0.4.8.12 )
2024-06-14T04:37:01.175Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0607ab3e <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:37:01.175Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0607f939 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:37:01.175Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06086b6a <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:37:01.175Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc061a236f <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:37:01.175Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc061a27b6 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:37:01.176Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06067559 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:37:01.176Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060696df <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:37:01.176Z x.x.x.x hostname Tor[62888]: Bug:     0x2beba6abf4c <event_base_loop+0x59c> at /usr/local/lib/libevent_core.so.2.1 (on Tor 0.4.8.12 )
2024-06-14T04:37:01.176Z x.x.x.x hostname Tor[62888]: Bug:     0x2beba6b0b16 <event_base_assert_ok_nolock_+0xcf6> at /usr/local/lib/libevent_core.so.2.1 (on Tor 0.4.8.12 )
2024-06-14T04:37:01.177Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060551ab <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:37:01.177Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060554bf <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:37:01.177Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06056d31 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:37:01.177Z x.x.x.x hostname Tor[62888]: Missing master key after handshake using TLSv1.3 (cipher: TLS_CHACHA20_POLY1305_SHA256, server: false) from 8.208.76.239:7443 ID=<none> RSA_ID=10143B9D45F5C5319C29385A9D3503E25C8285BE
2024-06-14T04:37:01.178Z x.x.x.x hostname Tor[62888]: Couldn't send authenticate cell
2024-06-14T04:38:51.127Z x.x.x.x hostname Tor[62888]: tor_bug_occurred_: Bug: src/lib/tls/tortls_openssl.c:1674: tor_tls_get_tlssecrets: Non-fatal assertion !(! master_key_len) failed. (on Tor 0.4.8.12 )
2024-06-14T04:38:51.129Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0620a991 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:38:51.129Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06218764 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:38:51.129Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06230e0e <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:38:51.129Z x.x.x.x hostname Tor[62888]: Bug: Tor 0.4.8.12: Non-fatal assertion !(! master_key_len) failed in tor_tls_get_tlssecrets at src/lib/tls/tortls_openssl.c:1674. Stack trace: (on Tor 0.4.8.12 )
2024-06-14T04:38:51.130Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0607f939 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:38:51.130Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06086b6a <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:38:51.130Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc061a236f <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:38:51.130Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc061a27b6 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:38:51.131Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06067559 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:38:51.131Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0607ab3e <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:38:51.131Z x.x.x.x hostname Tor[62888]: Bug:     0x2beba6abf4c <event_base_loop+0x59c> at /usr/local/lib/libevent_core.so.2.1 (on Tor 0.4.8.12 )
2024-06-14T04:38:51.131Z x.x.x.x hostname Tor[62888]: Bug:     0x2beba6b0b16 <event_base_assert_ok_nolock_+0xcf6> at /usr/local/lib/libevent_core.so.2.1 (on Tor 0.4.8.12 )
2024-06-14T04:38:51.132Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060554bf <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:38:51.132Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06056d31 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:38:51.132Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060696df <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:38:51.133Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060551ab <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:38:51.133Z x.x.x.x hostname Tor[62888]: Couldn't send authenticate cell
2024-06-14T04:38:51.133Z x.x.x.x hostname Tor[62888]: Missing master key after handshake using TLSv1.3 (cipher: TLS_CHACHA20_POLY1305_SHA256, server: false) from 43.157.6.71:7443 ID=<none> RSA_ID=632BA403C7CD798408D0EF6D8A561529495E6A05
2024-06-14T04:43:11.217Z x.x.x.x hostname Tor[62888]: tor_bug_occurred_: Bug: src/lib/tls/tortls_openssl.c:1674: tor_tls_get_tlssecrets: Non-fatal assertion !(! master_key_len) failed. (on Tor 0.4.8.12 )
2024-06-14T04:43:11.218Z x.x.x.x hostname Tor[62888]: Bug: Tor 0.4.8.12: Non-fatal assertion !(! master_key_len) failed in tor_tls_get_tlssecrets at src/lib/tls/tortls_openssl.c:1674. Stack trace: (on Tor 0.4.8.12 )
2024-06-14T04:43:11.219Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc061a236f <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:43:11.219Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc061a27b6 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:43:11.219Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0620a991 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:43:11.219Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06218764 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:43:11.219Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06230e0e <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:43:11.220Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06067559 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:43:11.220Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0607ab3e <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:43:11.220Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0607f939 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:43:11.220Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06086b6a <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:43:11.221Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060696df <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:43:11.221Z x.x.x.x hostname Tor[62888]: Bug:     0x2beba6abf4c <event_base_loop+0x59c> at /usr/local/lib/libevent_core.so.2.1 (on Tor 0.4.8.12 )
2024-06-14T04:43:11.221Z x.x.x.x hostname Tor[62888]: Bug:     0x2beba6b0b16 <event_base_assert_ok_nolock_+0xcf6> at /usr/local/lib/libevent_core.so.2.1 (on Tor 0.4.8.12 )
2024-06-14T04:43:11.222Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060551ab <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:43:11.222Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060554bf <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:43:11.222Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06056d31 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:43:11.222Z x.x.x.x hostname Tor[62888]: Couldn't send authenticate cell
2024-06-14T04:43:11.222Z x.x.x.x hostname Tor[62888]: Missing master key after handshake using TLSv1.3 (cipher: TLS_CHACHA20_POLY1305_SHA256, server: false) from 8.208.76.239:7443 ID=<none> RSA_ID=10143B9D45F5C5319C29385A9D3503E25C8285BE
2024-06-14T04:49:42.508Z x.x.x.x hostname Tor[62888]: tor_bug_occurred_: Bug: src/lib/tls/tortls_openssl.c:1674: tor_tls_get_tlssecrets: Non-fatal assertion !(! master_key_len) failed. (on Tor 0.4.8.12 )
2024-06-14T04:49:42.510Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0620a991 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:49:42.510Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06218764 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:49:42.510Z x.x.x.x hostname Tor[62888]: Bug: Tor 0.4.8.12: Non-fatal assertion !(! master_key_len) failed in tor_tls_get_tlssecrets at src/lib/tls/tortls_openssl.c:1674. Stack trace: (on Tor 0.4.8.12 )
2024-06-14T04:49:42.511Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06086b6a <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:49:42.511Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc061a236f <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:49:42.511Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc061a27b6 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:49:42.511Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06230e0e <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:49:42.512Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06067559 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:49:42.512Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0607ab3e <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:49:42.512Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0607f939 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:49:42.513Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060696df <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:49:42.513Z x.x.x.x hostname Tor[62888]: Bug:     0x2beba6abf4c <event_base_loop+0x59c> at /usr/local/lib/libevent_core.so.2.1 (on Tor 0.4.8.12 )
2024-06-14T04:49:42.513Z x.x.x.x hostname Tor[62888]: Bug:     0x2beba6b0b16 <event_base_assert_ok_nolock_+0xcf6> at /usr/local/lib/libevent_core.so.2.1 (on Tor 0.4.8.12 )
2024-06-14T04:49:42.514Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060551ab <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:49:42.514Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060554bf <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:49:42.514Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06056d31 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:49:42.514Z x.x.x.x hostname Tor[62888]: Missing master key after handshake using TLSv1.3 (cipher: TLS_CHACHA20_POLY1305_SHA256, server: false) from 43.133.194.168:7443 ID=<none> RSA_ID=651FC32A62DF3EE612B89A6615B0A5A662982F3B
2024-06-14T04:49:42.515Z x.x.x.x hostname Tor[62888]: Couldn't send authenticate cell
2024-06-14T04:53:44.393Z x.x.x.x hostname Tor[62888]: No circuits are opened. Relaxed timeout for circuit 28457 (a Measuring circuit timeout 3-hop circuit in state doing handshakes with channel state open) to 60000ms. However, it appears the circuit has timed out anyway. [2 similar message(s) suppressed in last 2520 seconds]
2024-06-14T04:56:47.142Z x.x.x.x hostname Tor[62888]: tor_bug_occurred_: Bug: src/lib/tls/tortls_openssl.c:1674: tor_tls_get_tlssecrets: Non-fatal assertion !(! master_key_len) failed. (on Tor 0.4.8.12 )
2024-06-14T04:56:47.144Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0620a991 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:56:47.144Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06218764 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:56:47.144Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06230e0e <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:56:47.144Z x.x.x.x hostname Tor[62888]: Bug: Tor 0.4.8.12: Non-fatal assertion !(! master_key_len) failed in tor_tls_get_tlssecrets at src/lib/tls/tortls_openssl.c:1674. Stack trace: (on Tor 0.4.8.12 )
2024-06-14T04:56:47.145Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0607f939 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:56:47.145Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06086b6a <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:56:47.145Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc061a236f <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:56:47.145Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc061a27b6 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:56:47.146Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06067559 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:56:47.146Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0607ab3e <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:56:47.146Z x.x.x.x hostname Tor[62888]: Bug:     0x2beba6abf4c <event_base_loop+0x59c> at /usr/local/lib/libevent_core.so.2.1 (on Tor 0.4.8.12 )
2024-06-14T04:56:47.146Z x.x.x.x hostname Tor[62888]: Bug:     0x2beba6b0b16 <event_base_assert_ok_nolock_+0xcf6> at /usr/local/lib/libevent_core.so.2.1 (on Tor 0.4.8.12 )
2024-06-14T04:56:47.147Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060551ab <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:56:47.147Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060554bf <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:56:47.147Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06056d31 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:56:47.147Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060696df <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:56:47.147Z x.x.x.x hostname Tor[62888]: Missing master key after handshake using TLSv1.3 (cipher: TLS_CHACHA20_POLY1305_SHA256, server: false) from 47.91.17.236:7443 ID=<none> RSA_ID=17CE5C7E438121E7EEA2DB17039DEC6394BA5A4C
2024-06-14T04:56:47.148Z x.x.x.x hostname Tor[62888]: Couldn't send authenticate cell
2024-06-14T04:57:42.896Z x.x.x.x hostname Tor[62888]: tor_bug_occurred_: Bug: src/lib/tls/tortls_openssl.c:1674: tor_tls_get_tlssecrets: Non-fatal assertion !(! master_key_len) failed. (on Tor 0.4.8.12 )
2024-06-14T04:57:42.900Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0620a991 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:57:42.900Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06218764 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:57:42.900Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06230e0e <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:57:42.900Z x.x.x.x hostname Tor[62888]: Bug: Tor 0.4.8.12: Non-fatal assertion !(! master_key_len) failed in tor_tls_get_tlssecrets at src/lib/tls/tortls_openssl.c:1674. Stack trace: (on Tor 0.4.8.12 )
2024-06-14T04:57:42.901Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06067559 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:57:42.901Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0607ab3e <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:57:42.901Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc0607f939 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:57:42.901Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06086b6a <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:57:42.901Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc061a236f <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:57:42.901Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc061a27b6 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:57:42.901Z x.x.x.x hostname Tor[62888]: Bug:     0x2beba6abf4c <event_base_loop+0x59c> at /usr/local/lib/libevent_core.so.2.1 (on Tor 0.4.8.12 )
2024-06-14T04:57:42.901Z x.x.x.x hostname Tor[62888]: Bug:     0x2beba6b0b16 <event_base_assert_ok_nolock_+0xcf6> at /usr/local/lib/libevent_core.so.2.1 (on Tor 0.4.8.12 )
2024-06-14T04:57:42.902Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc06056d31 <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:57:42.902Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060696df <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:57:42.903Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060551ab <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:57:42.903Z x.x.x.x hostname Tor[62888]: Bug:     0x2bc060554bf <???> at /usr/local/bin/tor (on Tor 0.4.8.12 )
2024-06-14T04:57:42.903Z x.x.x.x hostname Tor[62888]: Couldn't send authenticate cell
2024-06-14T04:57:42.903Z x.x.x.x hostname Tor[62888]: Missing master key after handshake using TLSv1.3 (cipher: TLS_CHACHA20_POLY1305_SHA256, server: false) from 8.208.12.9:7443 ID=<none> RSA_ID=4C8557BA6655E6587B6219C9E2597F5E6302ACAA
2024-06-15T00:06:17.761Z x.x.x.x hostname Tor[62888]: Circuit handshake stats since last time: 1/1 TAP, 947985/947989 NTor.
2024-06-15T00:06:17.761Z x.x.x.x hostname Tor[62888]: Heartbeat: DoS mitigation since startup: 4 circuits killed with too many cells, 0 circuits rejected, 0 marked addresses, 0 marked addresses for max queue, 0 same address concurrent connections rejected, 0 connections rejected, 0 single hop clients refused, 0 INTRODUCE2 rejected.
2024-06-15T00:06:17.761Z x.x.x.x hostname Tor[62888]: Since startup we initiated 0 and received 0 v1 connections; initiated 0 and received 0 v2 connections; initiated 0 and received 0 v3 connections; initiated 0 and received 0 v4 connections; initiated 19926 and received 42542 v5 connections.

www16_bug_log.txt (19.7 KB)

2 Likes

Same issue occured, Ubuntu 22.04, arm64

Jun 23 13:06:17.000 [warn] tor_bug_occurred_(): Bug: ../src/lib/tls/tortls_openssl.c:1674: tor_tls_get_tlssecrets: Non-fatal assertion !(! master_key_len) failed. (on Tor 0.4.8.12 )
Jun 23 13:06:17.000 [warn] Bug: Tor 0.4.8.12: Non-fatal assertion !(! master_key_len) failed in tor_tls_get_tlssecrets at ../src/lib/tls/tortls_openssl.c:1674. Stack trace: (on Tor 0.4.8.12 )
Jun 23 13:06:17.000 [warn] Bug:     /usr/bin/tor(log_backtrace_impl+0x6c) [0x557e197e8c] (on Tor 0.4.8.12 )
Jun 23 13:06:17.000 [warn] Bug:     /usr/bin/tor(tor_bug_occurred_+0x164) [0x557e1b0228] (on Tor 0.4.8.12 )
Jun 23 13:06:17.000 [warn] Bug:     /usr/bin/tor(tor_tls_get_tlssecrets+0x3d4) [0x557e1cbdc4] (on Tor 0.4.8.12 )
Jun 23 13:06:17.000 [warn] Bug:     /usr/bin/tor(connection_or_compute_authenticate_cell_body+0x1dc) [0x557e2fa850] (on Tor 0.4.8.12 )
Jun 23 13:06:17.000 [warn] Bug:     /usr/bin/tor(connection_or_send_authenticate_cell+0xa4) [0x557e2fae64] (on Tor 0.4.8.12 )
Jun 23 13:06:17.000 [warn] Bug:     /usr/bin/tor(channel_tls_handle_var_cell+0xfbc) [0x557e20d75c] (on Tor 0.4.8.12 )
Jun 23 13:06:17.000 [warn] Bug:     /usr/bin/tor(+0x1c3d38) [0x557e26bd38] (on Tor 0.4.8.12 )
Jun 23 13:06:17.000 [warn] Bug:     /usr/bin/tor(+0x1b9e38) [0x557e261e38] (on Tor 0.4.8.12 )
Jun 23 13:06:17.000 [warn] Bug:     /usr/bin/tor(+0x6ece8) [0x557e116ce8] (on Tor 0.4.8.12 )
Jun 23 13:06:17.000 [warn] Bug:     /lib/aarch64-linux-gnu/libevent-2.1.so.7(+0x1fc14) [0x7f8f3cfc14] (on Tor 0.4.8.12 )
Jun 23 13:06:17.000 [warn] Bug:     /lib/aarch64-linux-gnu/libevent-2.1.so.7(event_base_loop+0x444) [0x7f8f3d1868] (on Tor 0.4.8.12 )
Jun 23 13:06:17.000 [warn] Bug:     /usr/bin/tor(do_main_loop+0xfc) [0x557e11747c] (on Tor 0.4.8.12 )
Jun 23 13:06:17.000 [warn] Bug:     /usr/bin/tor(tor_run_main+0x1e0) [0x557e11b3e0] (on Tor 0.4.8.12 )
Jun 23 13:06:17.000 [warn] Bug:     /usr/bin/tor(tor_main+0x54) [0x557e11b824] (on Tor 0.4.8.12 )
Jun 23 13:06:17.000 [warn] Bug:     /usr/bin/tor(main+0x20) [0x557e10e260] (on Tor 0.4.8.12 )
Jun 23 13:06:17.000 [warn] Bug:     /lib/aarch64-linux-gnu/libc.so.6(+0x273fc) [0x7f8eb773fc] (on Tor 0.4.8.12 )
Jun 23 13:06:17.000 [warn] Bug:     /lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0x98) [0x7f8eb774cc] (on Tor 0.4.8.12 )
Jun 23 13:06:17.000 [warn] Bug:     /usr/bin/tor(_start+0x30) [0x557e10e2f0] (on Tor 0.4.8.12 )
Jun 23 13:06:17.000 [warn] Missing master key after handshake using TLSv1.3 (cipher: TLS_CHACHA20_POLY1305_SHA256, server: false) from 47.91.108.103:7443 ID=<noneRSA_ID=09015CA5B135113EA855CE50A8DF5D447D86342E
Jun 23 13:06:17.000 [warn] Couldn't send authenticate cell

Jun 23 13:08:49.000 [warn] tor_bug_occurred_(): Bug: ../src/lib/tls/tortls_openssl.c:1674: tor_tls_get_tlssecrets: Non-fatal assertion !(! master_key_len) failed. (on Tor 0.4.8.12 )
Jun 23 13:08:49.000 [warn] Bug: Tor 0.4.8.12: Non-fatal assertion !(! master_key_len) failed in tor_tls_get_tlssecrets at ../src/lib/tls/tortls_openssl.c:1674. Stack trace: (on Tor 0.4.8.12 )
Jun 23 13:08:49.000 [warn] Bug:     /usr/bin/tor(log_backtrace_impl+0x6c) [0x557e197e8c] (on Tor 0.4.8.12 )
Jun 23 13:08:49.000 [warn] Bug:     /usr/bin/tor(tor_bug_occurred_+0x164) [0x557e1b0228] (on Tor 0.4.8.12 )
Jun 23 13:08:49.000 [warn] Bug:     /usr/bin/tor(tor_tls_get_tlssecrets+0x3d4) [0x557e1cbdc4] (on Tor 0.4.8.12 )
Jun 23 13:08:49.000 [warn] Bug:     /usr/bin/tor(connection_or_compute_authenticate_cell_body+0x1dc) [0x557e2fa850] (on Tor 0.4.8.12 )
Jun 23 13:08:49.000 [warn] Bug:     /usr/bin/tor(connection_or_send_authenticate_cell+0xa4) [0x557e2fae64] (on Tor 0.4.8.12 )
Jun 23 13:08:49.000 [warn] Bug:     /usr/bin/tor(channel_tls_handle_var_cell+0xfbc) [0x557e20d75c] (on Tor 0.4.8.12 )
Jun 23 13:08:49.000 [warn] Bug:     /usr/bin/tor(+0x1c3d38) [0x557e26bd38] (on Tor 0.4.8.12 )
Jun 23 13:08:49.000 [warn] Bug:     /usr/bin/tor(+0x1b9e38) [0x557e261e38] (on Tor 0.4.8.12 )
Jun 23 13:08:49.000 [warn] Bug:     /usr/bin/tor(+0x6ece8) [0x557e116ce8] (on Tor 0.4.8.12 )
Jun 23 13:08:49.000 [warn] Bug:     /lib/aarch64-linux-gnu/libevent-2.1.so.7(+0x1fc14) [0x7f8f3cfc14] (on Tor 0.4.8.12 )
Jun 23 13:08:49.000 [warn] Bug:     /lib/aarch64-linux-gnu/libevent-2.1.so.7(event_base_loop+0x444) [0x7f8f3d1868] (on Tor 0.4.8.12 )
Jun 23 13:08:49.000 [warn] Bug:     /usr/bin/tor(do_main_loop+0xfc) [0x557e11747c] (on Tor 0.4.8.12 )
Jun 23 13:08:49.000 [warn] Bug:     /usr/bin/tor(tor_run_main+0x1e0) [0x557e11b3e0] (on Tor 0.4.8.12 )
Jun 23 13:08:49.000 [warn] Bug:     /usr/bin/tor(tor_main+0x54) [0x557e11b824] (on Tor 0.4.8.12 )
Jun 23 13:08:49.000 [warn] Bug:     /usr/bin/tor(main+0x20) [0x557e10e260] (on Tor 0.4.8.12 )
Jun 23 13:08:49.000 [warn] Bug:     /lib/aarch64-linux-gnu/libc.so.6(+0x273fc) [0x7f8eb773fc] (on Tor 0.4.8.12 )
Jun 23 13:08:49.000 [warn] Bug:     /lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0x98) [0x7f8eb774cc] (on Tor 0.4.8.12 )
Jun 23 13:08:49.000 [warn] Bug:     /usr/bin/tor(_start+0x30) [0x557e10e2f0] (on Tor 0.4.8.12 )
Jun 23 13:08:49.000 [warn] Missing master key after handshake using TLSv1.3 (cipher: TLS_CHACHA20_POLY1305_SHA256, server: false) from 45.194.17.195:7443 ID=<noneRSA_ID=E2FCAF95BCFC28CE9D3F6310736033C6BE635817
Jun 23 13:08:49.000 [warn] Couldn't send authenticate cell

Jun 24 17:52:30.000 [warn] tor_bug_occurred_(): Bug: ../src/lib/tls/tortls_openssl.c:1674: tor_tls_get_tlssecrets: Non-fatal assertion !(! master_key_len) failed. (on Tor 0.4.8.12 )
Jun 24 17:52:30.000 [warn] Bug: Tor 0.4.8.12: Non-fatal assertion !(! master_key_len) failed in tor_tls_get_tlssecrets at ../src/lib/tls/tortls_openssl.c:1674. Stack trace: (on Tor 0.4.8.12 )
Jun 24 17:52:30.000 [warn] Bug:     /usr/bin/tor(log_backtrace_impl+0x6c) [0x557e197e8c] (on Tor 0.4.8.12 )
Jun 24 17:52:30.000 [warn] Bug:     /usr/bin/tor(tor_bug_occurred_+0x164) [0x557e1b0228] (on Tor 0.4.8.12 )
Jun 24 17:52:30.000 [warn] Bug:     /usr/bin/tor(tor_tls_get_tlssecrets+0x3d4) [0x557e1cbdc4] (on Tor 0.4.8.12 )
Jun 24 17:52:30.000 [warn] Bug:     /usr/bin/tor(connection_or_compute_authenticate_cell_body+0x1dc) [0x557e2fa850] (on Tor 0.4.8.12 )
Jun 24 17:52:30.000 [warn] Bug:     /usr/bin/tor(connection_or_send_authenticate_cell+0xa4) [0x557e2fae64] (on Tor 0.4.8.12 )
Jun 24 17:52:30.000 [warn] Bug:     /usr/bin/tor(channel_tls_handle_var_cell+0xfbc) [0x557e20d75c] (on Tor 0.4.8.12 )
Jun 24 17:52:30.000 [warn] Bug:     /usr/bin/tor(+0x1c3d38) [0x557e26bd38] (on Tor 0.4.8.12 )
Jun 24 17:52:30.000 [warn] Bug:     /usr/bin/tor(+0x1b9e38) [0x557e261e38] (on Tor 0.4.8.12 )
Jun 24 17:52:30.000 [warn] Bug:     /usr/bin/tor(+0x6ece8) [0x557e116ce8] (on Tor 0.4.8.12 )
Jun 24 17:52:30.000 [warn] Bug:     /lib/aarch64-linux-gnu/libevent-2.1.so.7(+0x1fc14) [0x7f8f3cfc14] (on Tor 0.4.8.12 )
Jun 24 17:52:30.000 [warn] Bug:     /lib/aarch64-linux-gnu/libevent-2.1.so.7(event_base_loop+0x444) [0x7f8f3d1868] (on Tor 0.4.8.12 )
Jun 24 17:52:30.000 [warn] Bug:     /usr/bin/tor(do_main_loop+0xfc) [0x557e11747c] (on Tor 0.4.8.12 )
Jun 24 17:52:30.000 [warn] Bug:     /usr/bin/tor(tor_run_main+0x1e0) [0x557e11b3e0] (on Tor 0.4.8.12 )
Jun 24 17:52:30.000 [warn] Bug:     /usr/bin/tor(tor_main+0x54) [0x557e11b824] (on Tor 0.4.8.12 )
Jun 24 17:52:30.000 [warn] Bug:     /usr/bin/tor(main+0x20) [0x557e10e260] (on Tor 0.4.8.12 )
Jun 24 17:52:30.000 [warn] Bug:     /lib/aarch64-linux-gnu/libc.so.6(+0x273fc) [0x7f8eb773fc] (on Tor 0.4.8.12 )
Jun 24 17:52:30.000 [warn] Bug:     /lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0x98) [0x7f8eb774cc] (on Tor 0.4.8.12 )
Jun 24 17:52:30.000 [warn] Bug:     /usr/bin/tor(_start+0x30) [0x557e10e2f0] (on Tor 0.4.8.12 )
Jun 24 17:52:30.000 [warn] Missing master key after handshake using TLSv1.3 (cipher: TLS_CHACHA20_POLY1305_SHA256, server: false) from 43.158.219.112:7443 ID=<noneRSA_ID=8077D4685600A131685067FAA09F506386DA4174
Jun 24 17:52:30.000 [warn] Couldn't send authenticate cell

Jun 24 19:05:25.000 [warn] tor_bug_occurred_(): Bug: ../src/lib/tls/tortls_openssl.c:1674: tor_tls_get_tlssecrets: Non-fatal assertion !(! master_key_len) failed. (on Tor 0.4.8.12 )
Jun 24 19:05:25.000 [warn] Bug: Tor 0.4.8.12: Non-fatal assertion !(! master_key_len) failed in tor_tls_get_tlssecrets at ../src/lib/tls/tortls_openssl.c:1674. Stack trace: (on Tor 0.4.8.12 )
Jun 24 19:05:25.000 [warn] Bug:     /usr/bin/tor(log_backtrace_impl+0x6c) [0x557e197e8c] (on Tor 0.4.8.12 )
Jun 24 19:05:25.000 [warn] Bug:     /usr/bin/tor(tor_bug_occurred_+0x164) [0x557e1b0228] (on Tor 0.4.8.12 )
Jun 24 19:05:25.000 [warn] Bug:     /usr/bin/tor(tor_tls_get_tlssecrets+0x3d4) [0x557e1cbdc4] (on Tor 0.4.8.12 )
Jun 24 19:05:25.000 [warn] Bug:     /usr/bin/tor(connection_or_compute_authenticate_cell_body+0x1dc) [0x557e2fa850] (on Tor 0.4.8.12 )
Jun 24 19:05:25.000 [warn] Bug:     /usr/bin/tor(connection_or_send_authenticate_cell+0xa4) [0x557e2fae64] (on Tor 0.4.8.12 )
Jun 24 19:05:25.000 [warn] Bug:     /usr/bin/tor(channel_tls_handle_var_cell+0xfbc) [0x557e20d75c] (on Tor 0.4.8.12 )
Jun 24 19:05:25.000 [warn] Bug:     /usr/bin/tor(+0x1c3d38) [0x557e26bd38] (on Tor 0.4.8.12 )
Jun 24 19:05:25.000 [warn] Bug:     /usr/bin/tor(+0x1b9e38) [0x557e261e38] (on Tor 0.4.8.12 )
Jun 24 19:05:25.000 [warn] Bug:     /usr/bin/tor(+0x6ece8) [0x557e116ce8] (on Tor 0.4.8.12 )
Jun 24 19:05:25.000 [warn] Bug:     /lib/aarch64-linux-gnu/libevent-2.1.so.7(+0x1fc14) [0x7f8f3cfc14] (on Tor 0.4.8.12 )
Jun 24 19:05:25.000 [warn] Bug:     /lib/aarch64-linux-gnu/libevent-2.1.so.7(event_base_loop+0x444) [0x7f8f3d1868] (on Tor 0.4.8.12 )
Jun 24 19:05:25.000 [warn] Bug:     /usr/bin/tor(do_main_loop+0xfc) [0x557e11747c] (on Tor 0.4.8.12 )
Jun 24 19:05:25.000 [warn] Bug:     /usr/bin/tor(tor_run_main+0x1e0) [0x557e11b3e0] (on Tor 0.4.8.12 )
Jun 24 19:05:25.000 [warn] Bug:     /usr/bin/tor(tor_main+0x54) [0x557e11b824] (on Tor 0.4.8.12 )
Jun 24 19:05:25.000 [warn] Bug:     /usr/bin/tor(main+0x20) [0x557e10e260] (on Tor 0.4.8.12 )
Jun 24 19:05:25.000 [warn] Bug:     /lib/aarch64-linux-gnu/libc.so.6(+0x273fc) [0x7f8eb773fc] (on Tor 0.4.8.12 )
Jun 24 19:05:25.000 [warn] Bug:     /lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0x98) [0x7f8eb774cc] (on Tor 0.4.8.12 )
Jun 24 19:05:25.000 [warn] Bug:     /usr/bin/tor(_start+0x30) [0x557e10e2f0] (on Tor 0.4.8.12 )
Jun 24 19:05:25.000 [warn] Missing master key after handshake using TLSv1.3 (cipher: TLS_CHACHA20_POLY1305_SHA256, server: false) from 43.158.219.112:7443 ID=<noneRSA_ID=8077D4685600A131685067FAA09F506386DA4174
Jun 24 19:05:25.000 [warn] Couldn't send authenticate cell

Jun 24 19:33:32.000 [warn] tor_bug_occurred_(): Bug: ../src/lib/tls/tortls_openssl.c:1674: tor_tls_get_tlssecrets: Non-fatal assertion !(! master_key_len) failed. (on Tor 0.4.8.12 )
Jun 24 19:33:32.000 [warn] Bug: Tor 0.4.8.12: Non-fatal assertion !(! master_key_len) failed in tor_tls_get_tlssecrets at ../src/lib/tls/tortls_openssl.c:1674. Stack trace: (on Tor 0.4.8.12 )
Jun 24 19:33:32.000 [warn] Bug:     /usr/bin/tor(log_backtrace_impl+0x6c) [0x557e197e8c] (on Tor 0.4.8.12 )
Jun 24 19:33:32.000 [warn] Bug:     /usr/bin/tor(tor_bug_occurred_+0x164) [0x557e1b0228] (on Tor 0.4.8.12 )
Jun 24 19:33:32.000 [warn] Bug:     /usr/bin/tor(tor_tls_get_tlssecrets+0x3d4) [0x557e1cbdc4] (on Tor 0.4.8.12 )
Jun 24 19:33:32.000 [warn] Bug:     /usr/bin/tor(connection_or_compute_authenticate_cell_body+0x1dc) [0x557e2fa850] (on Tor 0.4.8.12 )
Jun 24 19:33:32.000 [warn] Bug:     /usr/bin/tor(connection_or_send_authenticate_cell+0xa4) [0x557e2fae64] (on Tor 0.4.8.12 )
Jun 24 19:33:32.000 [warn] Bug:     /usr/bin/tor(channel_tls_handle_var_cell+0xfbc) [0x557e20d75c] (on Tor 0.4.8.12 )
Jun 24 19:33:32.000 [warn] Bug:     /usr/bin/tor(+0x1c3d38) [0x557e26bd38] (on Tor 0.4.8.12 )
Jun 24 19:33:32.000 [warn] Bug:     /usr/bin/tor(+0x1b9e38) [0x557e261e38] (on Tor 0.4.8.12 )
Jun 24 19:33:32.000 [warn] Bug:     /usr/bin/tor(+0x6ece8) [0x557e116ce8] (on Tor 0.4.8.12 )
Jun 24 19:33:32.000 [warn] Bug:     /lib/aarch64-linux-gnu/libevent-2.1.so.7(+0x1fc14) [0x7f8f3cfc14] (on Tor 0.4.8.12 )
Jun 24 19:33:32.000 [warn] Bug:     /lib/aarch64-linux-gnu/libevent-2.1.so.7(event_base_loop+0x444) [0x7f8f3d1868] (on Tor 0.4.8.12 )
Jun 24 19:33:32.000 [warn] Bug:     /usr/bin/tor(do_main_loop+0xfc) [0x557e11747c] (on Tor 0.4.8.12 )
Jun 24 19:33:32.000 [warn] Bug:     /usr/bin/tor(tor_run_main+0x1e0) [0x557e11b3e0] (on Tor 0.4.8.12 )
Jun 24 19:33:32.000 [warn] Bug:     /usr/bin/tor(tor_main+0x54) [0x557e11b824] (on Tor 0.4.8.12 )
Jun 24 19:33:32.000 [warn] Bug:     /usr/bin/tor(main+0x20) [0x557e10e260] (on Tor 0.4.8.12 )
Jun 24 19:33:32.000 [warn] Bug:     /lib/aarch64-linux-gnu/libc.so.6(+0x273fc) [0x7f8eb773fc] (on Tor 0.4.8.12 )
Jun 24 19:33:32.000 [warn] Bug:     /lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0x98) [0x7f8eb774cc] (on Tor 0.4.8.12 )
Jun 24 19:33:32.000 [warn] Bug:     /usr/bin/tor(_start+0x30) [0x557e10e2f0] (on Tor 0.4.8.12 )
Jun 24 19:33:32.000 [warn] Missing master key after handshake using TLSv1.3 (cipher: TLS_CHACHA20_POLY1305_SHA256, server: false) from 129.226.41.245:7443 ID=<noneRSA_ID=FF84F0D8FFCACAE204033865B0919AD0B0CDB138
Jun 24 19:33:32.000 [warn] Couldn't send authenticate cell

Same here on non exit relays:

Jul 05 08:58:19.000 [warn] tor_bug_occurred_(): Bug: ../src/lib/tls/tortls_openssl.c:1674: tor_tls_get_tlssecrets: Non-fatal assertion !(! master_key_len) failed. (on Tor 0.4.8.12 )
Jul 05 08:58:19.000 [warn] Bug: Tor 0.4.8.12: Non-fatal assertion !(! master_key_len) failed in tor_tls_get_tlssecrets at ../src/lib/tls/tortls_openssl.c:1674. Stack trace: (on Tor 0.4.8.12 )
Jul 05 08:58:19.000 [warn] Bug:     /usr/bin/tor(log_backtrace_impl+0x57) [0x55955fb9add7] (on Tor 0.4.8.12 )
Jul 05 08:58:19.000 [warn] Bug:     /usr/bin/tor(tor_bug_occurred_+0x169) [0x55955fba5d29] (on Tor 0.4.8.12 )
Jul 05 08:58:19.000 [warn] Bug:     /usr/bin/tor(tor_tls_get_tlssecrets+0x3b7) [0x55955fbbede7] (on Tor 0.4.8.12 )
Jul 05 08:58:19.000 [warn] Bug:     /usr/bin/tor(connection_or_compute_authenticate_cell_body+0x20f) [0x55955fcd8faf] (on Tor 0.4.8.12 )
Jul 05 08:58:19.000 [warn] Bug:     /usr/bin/tor(connection_or_send_authenticate_cell+0x98) [0x55955fcd9638] (on Tor 0.4.8.12 )
Jul 05 08:58:19.000 [warn] Bug:     /usr/bin/tor(channel_tls_handle_var_cell+0x10fc) [0x55955fc06cac] (on Tor 0.4.8.12 )
Jul 05 08:58:19.000 [warn] Bug:     /usr/bin/tor(+0x1a7253) [0x55955fc57253] (on Tor 0.4.8.12 )
Jul 05 08:58:19.000 [warn] Bug:     /usr/bin/tor(+0x19d5a4) [0x55955fc4d5a4] (on Tor 0.4.8.12 )
Jul 05 08:58:19.000 [warn] Bug:     /usr/bin/tor(+0x70369) [0x55955fb20369] (on Tor 0.4.8.12 )
Jul 05 08:58:19.000 [warn] Bug:     /lib/x86_64-linux-gnu/libevent-2.1.so.7(+0x21585) [0x7ffa45036585] (on Tor 0.4.8.12 )
Jul 05 08:58:19.000 [warn] Bug:     /lib/x86_64-linux-gnu/libevent-2.1.so.7(event_base_loop+0x49f) [0x7ffa45036c1f] (on Tor 0.4.8.12 )
Jul 05 08:58:19.000 [warn] Bug:     /usr/bin/tor(do_main_loop+0xf1) [0x55955fb21671] (on Tor 0.4.8.12 )
Jul 05 08:58:19.000 [warn] Bug:     /usr/bin/tor(tor_run_main+0x1e5) [0x55955fb1cfa5] (on Tor 0.4.8.12 )
Jul 05 08:58:19.000 [warn] Bug:     /usr/bin/tor(tor_main+0x59) [0x55955fb19329] (on Tor 0.4.8.12 )
Jul 05 08:58:19.000 [warn] Bug:     /usr/bin/tor(main+0x19) [0x55955fb18ee9] (on Tor 0.4.8.12 )
Jul 05 08:58:19.000 [warn] Bug:     /lib/x86_64-linux-gnu/libc.so.6(+0x2724a) [0x7ffa4473b24a] (on Tor 0.4.8.12 )
Jul 05 08:58:19.000 [warn] Bug:     /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7ffa4473b305] (on Tor 0.4.8.12 )
Jul 05 08:58:19.000 [warn] Bug:     /usr/bin/tor(_start+0x21) [0x55955fb18f31] (on Tor 0.4.8.12 )
Jul 05 08:58:19.000 [warn] Missing master key after handshake using TLSv1.3 (cipher: TLS_CHACHA20_POLY1305_SHA256, server: false) from 119.28.252.136:7443 ID=<none> RSA_ID=4D122F5A5A49CE7EBD2CB26799FD4283BCDBF75E
Jul 05 08:58:19.000 [warn] Couldn't send authenticate cell
[...]
Jul 05 09:34:25.000 [warn] tor_bug_occurred_(): Bug: ../src/lib/tls/tortls_openssl.c:1674: tor_tls_get_tlssecrets: Non-fatal assertion !(! master_key_len) failed. (on Tor 0.4.8.12 )
Jul 05 09:34:25.000 [warn] Bug: Tor 0.4.8.12: Non-fatal assertion !(! master_key_len) failed in tor_tls_get_tlssecrets at ../src/lib/tls/tortls_openssl.c:1674. Stack trace: (on Tor 0.4.8.12 )
Jul 05 09:34:25.000 [warn] Bug:     /usr/bin/tor(log_backtrace_impl+0x57) [0x55955fb9add7] (on Tor 0.4.8.12 )
Jul 05 09:34:25.000 [warn] Bug:     /usr/bin/tor(tor_bug_occurred_+0x169) [0x55955fba5d29] (on Tor 0.4.8.12 )
Jul 05 09:34:25.000 [warn] Bug:     /usr/bin/tor(tor_tls_get_tlssecrets+0x3b7) [0x55955fbbede7] (on Tor 0.4.8.12 )
Jul 05 09:34:25.000 [warn] Bug:     /usr/bin/tor(connection_or_compute_authenticate_cell_body+0x20f) [0x55955fcd8faf] (on Tor 0.4.8.12 )
Jul 05 09:34:25.000 [warn] Bug:     /usr/bin/tor(connection_or_send_authenticate_cell+0x98) [0x55955fcd9638] (on Tor 0.4.8.12 )
Jul 05 09:34:25.000 [warn] Bug:     /usr/bin/tor(channel_tls_handle_var_cell+0x10fc) [0x55955fc06cac] (on Tor 0.4.8.12 )
Jul 05 09:34:25.000 [warn] Bug:     /usr/bin/tor(+0x1a7253) [0x55955fc57253] (on Tor 0.4.8.12 )
Jul 05 09:34:25.000 [warn] Bug:     /usr/bin/tor(+0x19d5a4) [0x55955fc4d5a4] (on Tor 0.4.8.12 )
Jul 05 09:34:25.000 [warn] Bug:     /usr/bin/tor(+0x70369) [0x55955fb20369] (on Tor 0.4.8.12 )
Jul 05 09:34:25.000 [warn] Bug:     /lib/x86_64-linux-gnu/libevent-2.1.so.7(+0x21585) [0x7ffa45036585] (on Tor 0.4.8.12 )
Jul 05 09:34:25.000 [warn] Bug:     /lib/x86_64-linux-gnu/libevent-2.1.so.7(event_base_loop+0x49f) [0x7ffa45036c1f] (on Tor 0.4.8.12 )
Jul 05 09:34:25.000 [warn] Bug:     /usr/bin/tor(do_main_loop+0xf1) [0x55955fb21671] (on Tor 0.4.8.12 )
Jul 05 09:34:25.000 [warn] Bug:     /usr/bin/tor(tor_run_main+0x1e5) [0x55955fb1cfa5] (on Tor 0.4.8.12 )
Jul 05 09:34:25.000 [warn] Bug:     /usr/bin/tor(tor_main+0x59) [0x55955fb19329] (on Tor 0.4.8.12 )
Jul 05 09:34:25.000 [warn] Bug:     /usr/bin/tor(main+0x19) [0x55955fb18ee9] (on Tor 0.4.8.12 )
Jul 05 09:34:25.000 [warn] Bug:     /lib/x86_64-linux-gnu/libc.so.6(+0x2724a) [0x7ffa4473b24a] (on Tor 0.4.8.12 )
Jul 05 09:34:25.000 [warn] Bug:     /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7ffa4473b305] (on Tor 0.4.8.12 )
Jul 05 09:34:25.000 [warn] Bug:     /usr/bin/tor(_start+0x21) [0x55955fb18f31] (on Tor 0.4.8.12 )
Jul 05 09:34:25.000 [warn] Missing master key after handshake using TLSv1.3 (cipher: TLS_CHACHA20_POLY1305_SHA256, server: false) from 45.194.17.196:7443 ID=<none> RSA_ID=3861B59124E76B88D5EE5FF0999B5C93EA7C4DC7
Jul 05 09:34:25.000 [warn] Couldn't send authenticate cell
Jul 05 11:24:56.000 [warn] Error relaying cell across rendezvous; closing circuits
Jul 05 11:24:56.000 [warn] circuit_mark_for_close_(): Bug: Duplicate call to circuit_mark_for_close at ../src/core/or/command.c:577 (first at ../src/core/or/relay.c:343) (on Tor 0.4.8.12 )

6.1.0-22-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.94-1 (2024-06-21) x86_64 GNU/Linux

I started Tor by compiling the Tor source code and have found no problems so far.

So after I looked a little more closely on my tor logs I found after this bug three restart attempts of tor service with a warning that it could not bind the port to my IPv6 address.
I disabled it and then restarted the tor service and it worked.

I am not sure whether this is the solution for everyone with this problem but I definitely recommend another close look into your logs right after the bug message occurred.

Hope this helps.