[tor-bugs] #13295 [Tor]: tor-resolve asserts due to missing crypto initialization.

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Sep 29 15:48:20 UTC 2014


#13295: tor-resolve asserts due to missing crypto initialization.
-------------------------+----------------------------------
 Reporter:  yawning      |          Owner:
     Type:  defect       |         Status:  new
 Priority:  normal       |      Milestone:
Component:  Tor          |        Version:  Tor: unspecified
 Keywords:  tor-resolve  |  Actual Points:
Parent ID:               |         Points:
-------------------------+----------------------------------
 From IRC, trivial to reproduce.

 {{{
 ypres :: Development/tor/build ‹master*› % ./src/tools/tor-resolve
 www.google.com localhost:9050
 Sep 29 15:32:50.517 [err] tor_assertion_failed_(): Bug:
 ../src/ext/csiphash.c:156: siphash24g: Assertion the_siphash_key_is_set
 failed; aborting.
 Sep 29 15:32:50.517 [err] Bug: Assertion the_siphash_key_is_set failed in
 siphash24g at ../src/ext/csiphash.c:156. Stack trace:
 Sep 29 15:32:50.517 [err] Bug:     ./src/tools/tor-
 resolve(log_backtrace+0x41) [0x7f173d0e1fe1]
 Sep 29 15:32:50.517 [err] Bug:     ./src/tools/tor-
 resolve(tor_assertion_failed_+0x8c) [0x7f173d0d619c]
 Sep 29 15:32:50.517 [err] Bug:     ./src/tools/tor-
 resolve(siphash24g+0x5f) [0x7f173d0e1def]
 Sep 29 15:32:50.517 [err] Bug:     ./src/tools/tor-resolve(+0x235cc)
 [0x7f173d0df5cc]
 Sep 29 15:32:50.518 [err] Bug:     ./src/tools/tor-
 resolve(sandbox_getaddrinfo+0x75) [0x7f173d0e0e85]
 Sep 29 15:32:50.518 [err] Bug:     ./src/tools/tor-
 resolve(tor_addr_lookup+0x119) [0x7f173d0c88e9]
 Sep 29 15:32:50.518 [err] Bug:     ./src/tools/tor-
 resolve(tor_lookup_hostname+0x25) [0x7f173d0cd7e5]
 Sep 29 15:32:50.518 [err] Bug:     ./src/tools/tor-
 resolve(addr_port_lookup+0xb2) [0x7f173d0c9b52]
 Sep 29 15:32:50.518 [err] Bug:     ./src/tools/tor-resolve(main+0x182)
 [0x7f173d0c7012]
 Sep 29 15:32:50.518 [err] Bug:
 /usr/lib/libc.so.6(__libc_start_main+0xf0) [0x7f173b943040]
 Sep 29 15:32:50.518 [err] Bug:     ./src/tools/tor-resolve(+0xbb52)
 [0x7f173d0c7b52]
 [1]    19923 abort (core dumped)  ./src/tools/tor-resolve www.google.com
 localhost:9050
 }}}

 I reproduced it with master, but any version that uses the siphash backed
 HT implementation will have this problem.  Calling `crypto_global_init()`
 and linking the appropriate libraries fixes the problem, naturally.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13295>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list