Opened 3 years ago

Closed 3 years ago

#19659 closed defect (user disappeared)

Assertion failed in src/common/container.c:1137: digestmap_impl_HT_NEXT

Reported by: TvdW Owned by:
Priority: Medium Milestone: Tor: unspecified
Component: Core Tor/Tor Version: Tor: 0.2.8.2-alpha
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

This just crashed my relay :

Jul 10 13:53:24 Tor[29670]: Heartbeat: Tor's uptime is 23:59 hours, with 660 circuits open. I've sent 18.64 GB and received 18.59 GB.
Jul 10 13:53:24 Tor[29670]: Circuit handshake stats since last time: 3560/3560 TAP, 21904/21904 NTor.
Jul 10 13:53:24 Tor[29670]: Since startup, we have initiated 0 v1 connections, 0 v2 connections, 0 v3 connections, and 21123 v4 connections; and received 0 v1 connections, 129 v2 connections, 110 v3 connections, and 20907 v4 connections.
Jul 10 14:37:58 Tor[29670]: tor_assertion_failed_(): Bug: src/common/container.c:1137: digestmap_impl_HT_NEXT: Assertion b == (((head->hth_table[b])->node.hte_hash) % head->hth_table_length) failed; aborting. (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Jul 10 14:37:58 Tor[29670]: Bug: Assertion b == (((head->hth_table[b])->node.hte_hash) % head->hth_table_length) failed in digestmap_impl_HT_NEXT at src/common/container.c:1137. Stack trace: (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Jul 10 14:37:58 Tor[29670]: Bug:     /usr/bin/tor(log_backtrace+0x42) [0x7fa7956cd2e2] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Jul 10 14:37:58 Tor[29670]: Bug:     /usr/bin/tor(tor_assertion_failed_+0x94) [0x7fa7956db544] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Jul 10 14:37:58 Tor[29670]: Bug:     /usr/bin/tor(digestmap_iter_next+0x11f) [0x7fa7956d5edf] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Jul 10 14:37:58 Tor[29670]: Bug:     /usr/bin/tor(connection_or_set_bad_connections+0x317) [0x7fa79568ada7] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Jul 10 14:37:58 Tor[29670]: Bug:     /usr/bin/tor(+0xaaf39) [0x7fa7955d9f39] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Jul 10 14:37:58 Tor[29670]: Bug:     /lib64/libevent-2.0.so.5(event_base_loop+0x774) [0x7fa794bbba14] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Jul 10 14:37:58 Tor[29670]: Bug:     /usr/bin/tor(do_main_loop+0x21d) [0x7fa7955dac6d] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Jul 10 14:37:58 Tor[29670]: Bug:     /usr/bin/tor(tor_main+0x1b1d) [0x7fa7955de1ad] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Jul 10 14:37:58 Tor[29670]: Bug:     /usr/bin/tor(main+0x19) [0x7fa7955d69a9] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Jul 10 14:37:58 Tor[29670]: Bug:     /lib64/libc.so.6(__libc_start_main+0xf5) [0x7fa7943eab15] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Jul 10 14:37:58 Tor[29670]: Bug:     /usr/bin/tor(+0xa79fd) [0x7fa7955d69fd] (on Tor 0.2.8.2-alpha 684babee8491c3e9)

Admittedly it's 0.2.8.2-alpha, but I couldn't find anything in the changelog or Trac indicating that this was fixed already.

torrc :

DataDirectory /var/lib/tor/node1
SocksPort 0
Log notice syslog
RunAsDaemon 1
ORPort 9010
ExtORPort auto
Nickname NCC1701
ContactInfo TvdW <tor AT tvdw DOT eu> - bitcoin 1NKKoCQwKs67eKBGedMD8wYoAs3Z4mMAex
User toranon
ControlSocket /var/lib/tor/node1/control.sock
CookieAuthentication 1

MyFamily $9030DCF419F6E2FBF84F63CBACBA0097B06F557E,$B7EC0C02D7D9F1E31B0C251A6B058880778A0CD1,$2D671A4ABF8466E9E456AC9A6649C760A0176469
IPv6Exit 1
ORPort [2001:1af8:fec3:16:216:3eff:fe6e:5c4b]:9010
NumCPUs 2
PublishServerDescriptor 1

ServerDNSRandomizeCase 0
HiddenServiceStatistics 1


ExitPolicy reject *:*
ExitPolicy reject6 *:*

I'll upgrade to 0.2.8.5 soon, as I'm obviously lagging on updates.

Child Tickets

Change History (5)

comment:1 Changed 3 years ago by nickm

Milestone: Tor: 0.2.8.x-final
Status: newneeds_information

Hello! Did this ever happen again?

comment:2 Changed 3 years ago by TvdW

It has, yes. At least once a day.

Every time there's a different error message, leading me to believe this may be memory corruption somewhere. Here are two more I found in the logs :

Aug 10 18:11:09 Tor[14220]: connection_or_remove_from_identity_map(): Bug: Didn't find connection 'Latrine' on identity map when trying to remove it. (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Aug 10 18:11:09 Tor[14220]: connection_or_remove_from_identity_map(): Bug: Didn't find connection 'Latrine' on identity map when trying to remove it. (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Aug 10 18:11:09 Tor[14220]: connection_free_(): Bug: called on OR conn with non-zeroed identity_digest (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Aug 10 18:11:09 Tor[14220]: connection_or_remove_from_identity_map(): Bug: Didn't find connection 'NULL' on identity map when trying to remove it. (on Tor 0.2.8.2-alpha 684babee8491c3e9
Aug 12 12:13:38 Tor[30914]: Bug: Assertion tor_memeq(sd->extra_info_digest, d, DIGEST_LEN) failed in routerlist_assert_ok at src/or/routerlist.c:5319. Stack trace: (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Aug 12 12:13:38 Tor[30914]: Bug:     /usr/bin/tor(log_backtrace+0x42) [0x7f13ffed92e2] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Aug 12 12:13:38 Tor[30914]: Bug:     /usr/bin/tor(tor_assertion_failed_+0x94) [0x7f13ffee7544] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Aug 12 12:13:38 Tor[30914]: Bug:     /usr/bin/tor(routerlist_assert_ok+0x332) [0x7f13ffe31a52] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Aug 12 12:13:38 Tor[30914]: Bug:     /usr/bin/tor(router_load_routers_from_string+0x33f) [0x7f13ffe31f3f] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Aug 12 12:13:38 Tor[30914]: Bug:     /usr/bin/tor(+0x1710a2) [0x7f13ffeac0a2] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Aug 12 12:13:38 Tor[30914]: Bug:     /usr/bin/tor(connection_dir_reached_eof+0x29) [0x7f13ffeacb09] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Aug 12 12:13:38 Tor[30914]: Bug:     /usr/bin/tor(+0x151f6b) [0x7f13ffe8cf6b] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Aug 12 12:13:38 Tor[30914]: Bug:     /usr/bin/tor(+0xaaca1) [0x7f13ffde5ca1] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Aug 12 12:13:38 Tor[30914]: Bug:     /lib64/libevent-2.0.so.5(event_base_loop+0x774) [0x7f13ff3c7a14] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Aug 12 12:13:38 Tor[30914]: Bug:     /usr/bin/tor(do_main_loop+0x21d) [0x7f13ffde6c6d] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Aug 12 12:13:38 Tor[30914]: Bug:     /usr/bin/tor(tor_main+0x1b1d) [0x7f13ffdea1ad] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Aug 12 12:13:38 Tor[30914]: Bug:     /usr/bin/tor(main+0x19) [0x7f13ffde29a9] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Aug 12 12:13:38 Tor[30914]: Bug:     /lib64/libc.so.6(__libc_start_main+0xf5) [0x7f13febf6b15] (on Tor 0.2.8.2-alpha 684babee8491c3e9)
Aug 12 12:13:38 Tor[30914]: Bug:     /usr/bin/tor(+0xa79fd) [0x7f13ffde29fd] (on Tor 0.2.8.2-alpha 684babee8491c3e9

I intend to upgrade to the rc soon, but I lost my build machine a while ago and haven't replaced it yet :)

Last edited 3 years ago by TvdW (previous) (diff)

comment:3 Changed 3 years ago by nickm

Thanks! I meant, has this happened with a more recent release? [The most recent stable is now 0.2.8.6.]

Please let us know if this happens or not after you upgrade.

comment:4 Changed 3 years ago by nickm

Milestone: Tor: 0.2.8.x-finalTor: unspecified

any updates? Has this happened with 0.2.8.6 or later? If not, let's close -- we did fix some other bugs like this during the 0.2.8 series, IIRC.

comment:5 Changed 3 years ago by nickm

Resolution: user disappeared
Status: needs_informationclosed

Please reopen if it happens in 0.2.8.6 or later.

Note: See TracTickets for help on using tickets.