circuit_get_package_window(): Bug: Conflux has no circuit to send on
Summary
At random intervals, the appended is visible in the log. For the second time now, consensus has somehow decided to take every flag from the relay.
Steps to reproduce:
- Server running as usual.
- Bug happens.
What is the current bug behavior?
Bug gets into the logs, at random intervals the flags for the relay all get dropped.
What is the expected behavior?
No bug occurring, relay flags stay without issue.
Environment
Tor version 0.4.8.10. This build of Tor is covered by the GNU General Public License (https://www.gnu.org/licenses/gpl-3.0.en.html) Tor is running on Linux with Libevent 2.1.12-stable, OpenSSL 3.0.12, Zlib 1.3, Liblzma 5.4.5, Libzstd 1.5.5 and Glibc 2.38 as libc. Tor compiled with GCC version 13.2.1
- OS: Linux 6.1.66-gentoo-x86_64 with latest toolchain
- Installation method: compiled from gentoo tree
Relevant logs and/or screenshots
Jan 19 11:51:07 [Tor] tor_bug_occurred_(): Bug: src/core/or/conflux.c:567: conflux_pick_first_leg: Non-fatal assertion !(smartlist_len(cfx->legs) <= 0) failed. (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: Tor 0.4.8.10: Non-fatal assertion !(smartlist_len(cfx->legs) <= 0) failed in conflux_pick_first_leg at src/core/or/conflux.c:567. Stack trace: (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(log_backtrace_impl+0x5b) [0x556d9b298ecb] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(tor_bug_occurred_+0x16d) [0x556d9b2a3d3d] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(conflux_decide_next_circ+0x40e) [0x556d9b33191e] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(circuit_get_package_window+0x6d) [0x556d9b3375ed] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(+0x8ffdc) [0x556d9b249fdc] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(connection_edge_package_raw_inbuf+0xa1) [0x556d9b24c771] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(connection_edge_process_inbuf+0x6e) [0x556d9b34de9e] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(connection_handle_read+0x650) [0x556d9b346e70] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(+0x6dcce) [0x556d9b227cce] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/lib64/libevent-2.1.so.7(+0x21633) [0x7f4157ecc633] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/lib64/libevent-2.1.so.7(event_base_loop+0x4ff) [0x7f4157ecd18f] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(do_main_loop+0xd1) [0x556d9b228ee1] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(tor_run_main+0x185) [0x556d9b2249d5] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(tor_main+0x47) [0x556d9b221137] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(main+0x1d) [0x556d9b220cdd] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /lib64/libc.so.6(+0x23a90) [0x7f41576eca90] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /lib64/libc.so.6(__libc_start_main+0x89) [0x7f41576ecb49] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(_start+0x25) [0x556d9b220d35] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] conflux_pick_first_leg(): Bug: Matching client sets: (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] conflux_log_set(): Bug: Conflux 9C0E3116B155F149: 0 linked, 0 launched. Delivered: 64; teardown: 0; Current: (nil), Previous: (nil) (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] conflux_pick_first_leg(): Bug: Matching server sets: (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] conflux_log_set(): Bug: Conflux 9C0E3116B155F149: 0 linked, 0 launched. Delivered: 64; teardown: 0; Current: (nil), Previous: (nil) (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] conflux_pick_first_leg(): Bug: End conflux set dump (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] circuit_get_package_window(): Bug: Conflux has no circuit to send on. Circuit 0x556dabdf8710 idx 2651 marked at line src/core/or/command.c:663 (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] tor_bug_occurred_(): Bug: src/core/or/conflux.c:567: conflux_pick_first_leg: Non-fatal assertion !(smartlist_len(cfx->legs) <= 0) failed. (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: Tor 0.4.8.10: Non-fatal assertion !(smartlist_len(cfx->legs) <= 0) failed in conflux_pick_first_leg at src/core/or/conflux.c:567. Stack trace: (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(log_backtrace_impl+0x5b) [0x556d9b298ecb] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(tor_bug_occurred_+0x16d) [0x556d9b2a3d3d] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(conflux_decide_next_circ+0x40e) [0x556d9b33191e] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(circuit_get_package_window+0x6d) [0x556d9b3375ed] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(+0x8ffdc) [0x556d9b249fdc] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(connection_edge_package_raw_inbuf+0xa1) [0x556d9b24c771] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(connection_edge_process_inbuf+0x6e) [0x556d9b34de9e] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(connection_handle_read+0xaf2) [0x556d9b347312] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(+0x6dcce) [0x556d9b227cce] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/lib64/libevent-2.1.so.7(+0x21633) [0x7f4157ecc633] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/lib64/libevent-2.1.so.7(event_base_loop+0x4ff) [0x7f4157ecd18f] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(do_main_loop+0xd1) [0x556d9b228ee1] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(tor_run_main+0x185) [0x556d9b2249d5] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(tor_main+0x47) [0x556d9b221137] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(main+0x1d) [0x556d9b220cdd] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /lib64/libc.so.6(+0x23a90) [0x7f41576eca90] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /lib64/libc.so.6(__libc_start_main+0x89) [0x7f41576ecb49] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] Bug: /usr/bin/tor(_start+0x25) [0x556d9b220d35] (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] conflux_pick_first_leg(): Bug: Matching client sets: (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] conflux_log_set(): Bug: Conflux 9C0E3116B155F149: 0 linked, 0 launched. Delivered: 64; teardown: 0; Current: (nil), Previous: (nil) (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] conflux_pick_first_leg(): Bug: Matching server sets: (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] conflux_log_set(): Bug: Conflux 9C0E3116B155F149: 0 linked, 0 launched. Delivered: 64; teardown: 0; Current: (nil), Previous: (nil) (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] conflux_pick_first_leg(): Bug: End conflux set dump (on Tor 0.4.8.10 )
Jan 19 11:51:07 [Tor] circuit_get_package_window(): Bug: Conflux has no circuit to send on. Circuit 0x556dabdf8710 idx 2651 marked at line src/core/or/command.c:663 (on Tor 0.4.8.10 )