tor_bug_occurred_(): Bug: ../src/feature/relay/relay_find_addr.c:225: relay_addr_learn_from_dirauth: Non-fatal assertion !(!ei) failed. (on Tor 0.4.7.13 )
obfs4 bridge
on Debian 11.6
in a VirtualBox VM.
I was shutting down the VM to make a kernel update on the host and Tor complained after bringing it back up.
notice logs:
Mar 23 15:33:58.000 [notice] Heartbeat: Tor's uptime is 13 days 18:00 hours, with 0 circuits open. I've sent 2.75 GB and received 42.69 GB. I've received 81591 connections on IPv4 and 932 on IPv6. I've made 5156 connections with IPv4 and 1114 with IPv6.
Mar 23 15:33:58.000 [notice] While bootstrapping, fetched this many bytes: 17706 (microdescriptor fetch)
Mar 23 15:33:58.000 [notice] While not bootstrapping, fetched this many bytes: 200184900 (server descriptor fetch); 19343 (server descriptor upload); 20785687 (consensus network-status fetch); 2507534 (microdescriptor fetch)
Mar 23 15:33:58.000 [notice] Heartbeat: Since last heartbeat message, I have seen 6 unique clients.
Mar 23 16:58:56.000 [notice] New control connection opened.
Mar 23 18:14:49.000 [notice] Interrupt: we have stopped accepting new connections, and will shut down in 30 seconds. Interrupt again to exit now.
Mar 23 18:14:50.000 [notice] Delaying directory fetches: We are hibernating or shutting down.
Mar 23 18:15:19.000 [notice] Clean shutdown finished. Exiting.
Mar 23 22:33:45.000 [notice] Tor 0.4.7.13 opening log file.
Mar 23 22:33:45.913 [notice] We compiled with OpenSSL 101010ef: OpenSSL 1.1.1n 15 Mar 2022 and we are running with OpenSSL 101010ef: 1.1.1n. These two versions should be binary compatible.
Mar 23 22:33:45.918 [notice] Tor 0.4.7.13 running on Linux with Libevent 2.1.12-stable, OpenSSL 1.1.1n, Zlib 1.2.11, Liblzma 5.2.5, Libzstd 1.4.8 and Glibc 2.31 as libc.
Mar 23 22:33:45.918 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://support.torproject.org/faq/staying-anonymous/
Mar 23 22:33:45.918 [notice] Read configuration file "/usr/share/tor/tor-service-defaults-torrc".
Mar 23 22:33:45.918 [notice] Read configuration file "/etc/tor/torrc".
Mar 23 22:33:45.925 [warn] Your ContactInfo config option is not set. Please strongly consider setting it, so we can contact you if your relay is misconfigured, end-of-life, or something else goes wrong. It is also possible that your relay might get rejected from the network due to a missing valid contact address.
Mar 23 22:33:45.926 [notice] Based on detected system memory, MaxMemInQueues is set to 919 MB. You can override this by setting MaxMemInQueues by hand.
Mar 23 22:33:45.933 [notice] Opening Metrics listener on 127.0.0.1:xxx
Mar 23 22:33:45.933 [notice] Opened Metrics listener connection (ready) on 127.0.0.1:xxx
Mar 23 22:33:45.934 [notice] Opening OR listener on 0.0.0.0:xxx
Mar 23 22:33:45.934 [notice] Opened OR listener connection (ready) on 0.0.0.0:xxx
Mar 23 22:33:45.934 [notice] Opening OR listener on [::]:xxx
Mar 23 22:33:45.934 [notice] Opened OR listener connection (ready) on [::]:xxx
Mar 23 22:33:45.934 [notice] Opening Extended OR listener on 127.0.0.1:0
Mar 23 22:33:45.934 [notice] Extended OR listener listening on port 32909.
Mar 23 22:33:45.934 [notice] Opened Extended OR listener connection (ready) on 127.0.0.1:32909
Mar 23 22:33:45.000 [warn] Your log may contain sensitive information - you're logging more than "notice". Don't log unless it serves an important reason. Overwrite the log afterwards.
Mar 23 22:33:53.000 [notice] Parsing GEOIP IPv4 file /usr/share/tor/geoip.
Mar 23 22:33:53.000 [notice] Parsing GEOIP IPv6 file /usr/share/tor/geoip6.
Mar 23 22:33:54.000 [notice] Configured to measure statistics. Look for the *-stats files that will first be written to the data directory in 24 hours from now.
Mar 23 22:33:54.000 [notice] Your Tor server's identity key fingerprint is 'xxx xxx'
Mar 23 22:33:54.000 [notice] Your Tor bridge's hashed identity key fingerprint is 'xxx xxx'
Mar 23 22:33:54.000 [notice] Your Tor server's identity key ed25519 fingerprint is 'xxx xxx'
Mar 23 22:33:54.000 [notice] You can check the status of your bridge relay at https://bridges.torproject.org/status?id=xxx
Mar 23 22:33:54.000 [notice] Bootstrapped 0% (starting): Starting
Mar 23 22:34:05.000 [notice] Starting with guard context "default"
Mar 23 22:34:05.000 [notice] Signaled readiness to systemd
Mar 23 22:34:05.000 [notice] Bootstrapped 5% (conn): Connecting to a relay
Mar 23 22:34:05.000 [notice] Registered server transport 'obfs4' at '[::]:xxx'
Mar 23 22:34:05.000 [notice] Bootstrapped 10% (conn_done): Connected to a relay
Mar 23 22:34:05.000 [notice] Bootstrapped 14% (handshake): Handshaking with a relay
Mar 23 22:34:05.000 [notice] Bootstrapped 15% (handshake_done): Handshake with a relay done
Mar 23 22:34:05.000 [notice] Bootstrapped 45% (requesting_descriptors): Asking for relay descriptors
Mar 23 22:34:05.000 [notice] Bootstrapped 50% (loading_descriptors): Loading relay descriptors
Mar 23 22:34:06.000 [notice] Bootstrapped 56% (loading_descriptors): Loading relay descriptors
Mar 23 22:34:06.000 [notice] Bootstrapped 63% (loading_descriptors): Loading relay descriptors
Mar 23 22:34:06.000 [notice] Opening Control listener on /run/tor/control
Mar 23 22:34:06.000 [notice] Opened Control listener connection (ready) on /run/tor/control
Mar 23 22:34:06.000 [notice] Unable to find IPv4 address for ORPort xxx. You might want to specify IPv6Only to it or set an explicit address or set Address.
Mar 23 22:34:06.000 [warn] tor_bug_occurred_(): Bug: ../src/feature/relay/relay_find_addr.c:225: relay_addr_learn_from_dirauth: Non-fatal assertion !(!ei) failed. (on Tor 0.4.7.13 )
Mar 23 22:34:06.000 [warn] Bug: Tor 0.4.7.13: Non-fatal assertion !(!ei) failed in relay_addr_learn_from_dirauth at ../src/feature/relay/relay_find_addr.c:225. Stack trace: (on Tor 0.4.7.13 )
Mar 23 22:34:06.000 [warn] Bug: /usr/bin/tor(log_backtrace_impl+0x57) [0x56218374b0e7] (on Tor 0.4.7.13 )
Mar 23 22:34:06.000 [warn] Bug: /usr/bin/tor(tor_bug_occurred_+0x16b) [0x56218375630b] (on Tor 0.4.7.13 )
Mar 23 22:34:06.000 [warn] Bug: /usr/bin/tor(relay_addr_learn_from_dirauth+0x1c7) [0x56218387d547] (on Tor 0.4.7.13 )
Mar 23 22:34:06.000 [warn] Bug: /usr/bin/tor(+0xa49da) [0x5621837089da] (on Tor 0.4.7.13 )
Mar 23 22:34:06.000 [warn] Bug: /usr/bin/tor(router_build_fresh_descriptor+0x46) [0x562183708d66] (on Tor 0.4.7.13 )
Mar 23 22:34:06.000 [warn] Bug: /usr/bin/tor(router_rebuild_descriptor+0x64) [0x562183709184] (on Tor 0.4.7.13 )
Mar 23 22:34:06.000 [warn] Bug: /usr/bin/tor(consider_publishable_server+0x57) [0x5621837095e7] (on Tor 0.4.7.13 )
Mar 23 22:34:06.000 [warn] Bug: /usr/bin/tor(+0x21ab0f) [0x56218387eb0f] (on Tor 0.4.7.13 )
Mar 23 22:34:06.000 [warn] Bug: /usr/bin/tor(+0x86377) [0x5621836ea377] (on Tor 0.4.7.13 )
Mar 23 22:34:06.000 [warn] Bug: /lib/x86_64-linux-gnu/libevent-2.1.so.7(+0x239ef) [0x7ff90ae5c9ef] (on Tor 0.4.7.13 )
Mar 23 22:34:06.000 [warn] Bug: /lib/x86_64-linux-gnu/libevent-2.1.so.7(event_base_loop+0x52f) [0x7ff90ae5d28f] (on Tor 0.4.7.13 )
Mar 23 22:34:06.000 [warn] Bug: /usr/bin/tor(do_main_loop+0x101) [0x5621836d16f1] (on Tor 0.4.7.13 )
Mar 23 22:34:06.000 [warn] Bug: /usr/bin/tor(tor_run_main+0x1e5) [0x5621836ccfc5] (on Tor 0.4.7.13 )
Mar 23 22:34:06.000 [warn] Bug: /usr/bin/tor(tor_main+0x49) [0x5621836c92d9] (on Tor 0.4.7.13 )
Mar 23 22:34:06.000 [warn] Bug: /usr/bin/tor(main+0x19) [0x5621836c8eb9] (on Tor 0.4.7.13 )
Mar 23 22:34:06.000 [warn] Bug: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7ff90a6f5d0a] (on Tor 0.4.7.13 )
Mar 23 22:34:06.000 [warn] Bug: /usr/bin/tor(_start+0x2a) [0x5621836c8f0a] (on Tor 0.4.7.13 )
Mar 23 22:34:06.000 [notice] Bootstrapped 68% (loading_descriptors): Loading relay descriptors
Mar 23 22:34:06.000 [notice] Bootstrapped 75% (enough_dirinfo): Loaded enough directory info to build circuits
Mar 23 22:34:07.000 [notice] Bootstrapped 90% (ap_handshake_done): Handshake finished with a relay to build circuits
Mar 23 22:34:07.000 [notice] Bootstrapped 95% (circuit_create): Establishing a Tor circuit
Mar 23 22:34:07.000 [notice] Bootstrapped 100% (done): Done
Mar 23 22:35:11.000 [notice] New control connection opened.
Mar 23 22:39:23.000 [notice] Interrupt: we have stopped accepting new connections, and will shut down in 30 seconds. Interrupt again to exit now.
Mar 23 22:39:23.000 [notice] Delaying directory fetches: We are hibernating or shutting down.
Tor was restarted here and there was no bug anymore.
I can provide info
logs.