Been running relays for a while and have recently run into a couple of bugs that are being reported in Tor 0.4.8.10. These happen after killing circuits due to memory constraints (MaxMemInQueues 2GB):
Bug 1
x 08:23:12 [WARN] Bug: /usr/bin/tor(start+0x25) [0x55bf8df0fdf5] (on Tor 0.4.8.10 )
x 08:23:12 [WARN] Bug: /lib/x86_64-linux-gnu/libc.so.6(libc_start_main+0x89) [0x7f0f24a28189] (on Tor 0.4.8.10 )
x 08:23:12 [WARN] Bug: /lib/x86_64-linux-gnu/libc.so.6(+0x280d0) [0x7f0f24a280d0] (on Tor 0.4.8.10 )
x 08:23:12 [WARN] Bug: /usr/bin/tor(main+0x1d) [0x55bf8df0fd9d] (on Tor 0.4.8.10 )
x 08:23:12 [WARN] Bug: /usr/bin/tor(tor_main+0x5d) [0x55bf8df1dc1d] (on Tor 0.4.8.10 )
x 08:23:12 [WARN] Bug: /usr/bin/tor(tor_run_main+0x215) [0x55bf8df1d7a5] (on Tor 0.4.8.10 )
x 08:23:12 [WARN] Bug: /usr/bin/tor(do_main_loop+0xfe) [0x55bf8df196ce] (on Tor 0.4.8.10 )
x 08:23:12 [WARN] Bug: /lib/x86_64-linux-gnu/libevent-2.1.so.7(event_base_loop+0x49f) [0x7f0f255088ff] (on Tor 0.4.8.10 )
x 08:23:12 [WARN] Bug: /lib/x86_64-linux-gnu/libevent-2.1.so.7(+0x20055) [0x7f0f25507055] (on Tor 0.4.8.10 )
x 08:23:12 [WARN] Bug: /usr/bin/tor(+0x73f2c) [0x55bf8df18f2c] (on Tor 0.4.8.10 )
x 08:23:12 [WARN] Bug: /usr/bin/tor(+0x1c24e2) [0x55bf8e0674e2] (on Tor 0.4.8.10 )
x 08:23:12 [WARN] Bug: /usr/bin/tor(connection_edge_reached_eof+0xc7) [0x55bf8e062157] (on Tor 0.4.8.10 )
x 08:23:12 [WARN] Bug: /usr/bin/tor(tor_bug_occurred+0x18f) [0x55bf8dfacf7f] (on Tor 0.4.8.10 )
x 08:23:12 [WARN] Bug: /usr/bin/tor(log_backtrace_impl+0x5b) [0x55bf8df9733b] (on Tor 0.4.8.10 )
x 08:23:12 [WARN] Bug: Tor 0.4.8.10: Line unexpectedly reached at connection_mark_for_close_internal at …/src/core/mainloop/connection.c:1140. Stack trace:
x (on Tor 0.4.8.10 )
x 08:23:12 [WARN] tor_bug_occurred(): Bug: …/src/core/mainloop/connection.c:1140: connection_mark_for_close_internal_: This line should not have been
x reached. (Future instances of this warning will be silenced.) (on Tor 0.4.8.10 )
x 08:23:12 [WARN] connection_mark_for_close_internal_(): Bug: Duplicate call to connection_mark_for_close at …/src/core/or/connection_edge.c:308 (first at
x …/src/core/or/circuitlist.c:2747) (on Tor 0.4.8.10 )
x 08:23:12 [NOTICE] Removed 1906704 bytes by killing 73571 circuits; 0 circuits remain alive. Also killed 5 non-linked directory connections. Killed 12 edge
x connections
x 08:23:12 [NOTICE] We’re low on memory (cell queues total alloc: 1442496 buffer total alloc: 3049472, tor compress total alloc: 2148266786 (zlib: 611840,
x zstd: 0, lzma: 2147654498), rendezvous cache total alloc: 77117008). Killing circuits withover-long queues. (This behavior is controlled by
x MaxMemInQueues.)
Bug 2
x 09:05:12 [WARN] connection_edge_about_to_close(): Bug: (Harmless.) Edge connection (marked at …/src/core/or/circuitlist.c:2747) hasn’t sent end yet? (on
** x Tor 0.4.8.10 ) [18 duplicates hidden]**
x 09:05:12 [NOTICE] Removed 16291896 bytes by killing 66868 circuits; 0 circuits remain alive. Also killed 2 non-linked directory connections. Killed 7 edge
x connections
x 09:05:12 [NOTICE] We’re low on memory (cell queues total alloc: 2097744 buffer total alloc: 2516992, tor compress total alloc: 2064236791 (zlib: 438784,
x zstd: 13763720, lzma: 2050033839), rendezvous cache total alloc: 77288115). Killing circuits withover-long queues. (This behavior is controlled by
x MaxMemInQueues.)