Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #13295

Closed (moved)
(moved)
Open
Created Sep 29, 2014 by Yawning Angel@yawning

tor-resolve asserts due to missing crypto initialization.

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.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking