Opened 11 months ago

Last modified 11 months ago

#26414 new defect

Assertion onionkey failed in get_onion_key

Reported by: dgoulet Owned by:
Priority: Medium Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords: regression, 035-removed-20180711
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

The following assert() happened when I made a tor client become also a relay (testing in chutney).

Originally, as a client, only the SocksPort was set. Then I changed the torrc to have the ORPort and DirPort including the ExitRelay 1 option. Upon the HUP of the process, this stacktrace appeared.

Jun 19 12:09:27.618 [err] tor_assertion_failed_(): Bug: src/or/router.c:202: get_onion_key: Assertion onionkey failed; aborting. (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug: Assertion onionkey failed in get_onion_key at src/or/router.c:202. Stack trace: (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     /usr/lib/x86_64-linux-gnu/libasan.so.4(+0x558c0) [0x7efeb074c8c0] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(log_backtrace+0x45) [0x561dacedcca5] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(tor_assertion_failed_+0x103) [0x561dacf41873] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(+0x787a36) [0x561dacb3ca36] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(router_build_fresh_descriptor+0x1d7a) [0x561dacb4c95a] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(router_rebuild_descriptor+0x14f) [0x561dacb4dabf] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(router_get_my_routerinfo_with_err+0x197) [0x561dacb4ddf7] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(check_descriptor_bandwidth_changed+0x26) [0x561dacb51646] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(+0x68fc1c) [0x561daca44c1c] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(+0x6f6a6a) [0x561dacaaba6a] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(rescan_periodic_events+0x1f9) [0x561daca4de29] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(rend_service_prune_list+0xde0) [0x561dacb064d0] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(hs_config_service_all+0x1fe5) [0x561dace68545] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(set_options+0x5402) [0x561daccf8522] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(options_init_from_string+0x1206) [0x561daccffb56] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(options_init_from_torrc+0x9cb) [0x561dacd00b8b] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(+0x69a769) [0x561daca4f769] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     /usr/lib/x86_64-linux-gnu/libevent-2.1.so.6(+0x1e97a) [0x7efeaff0997a] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     /usr/lib/x86_64-linux-gnu/libevent-2.1.so.6(event_base_loop+0x53f) [0x7efeaff0a33f] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(do_main_loop+0x3fc) [0x561daca5120c] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(tor_run_main+0x535) [0x561daca54185] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(tor_main+0x86) [0x561daca40536] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(main+0x1c) [0x561daca3d2dc] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7efeade88b97] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)
Jun 19 12:09:27.619 [err] Bug:     ../tor/src/or/tor(_start+0x2a) [0x561daca401ea] (on Tor 0.3.5.0-alpha-dev f3267741e45c7944)

Child Tickets

Change History (1)

comment:1 Changed 11 months ago by nickm

Keywords: 035-removed-20180711 added
Milestone: Tor: 0.3.5.x-finalTor: unspecified

These tickets are being triaged out of 0.3.5. The ones marked "035-roadmap-proposed" may return.

Note: See TracTickets for help on using tickets.