[tor-bugs] #28358 [Core Tor/Tor]: Nyx forces Tor error: sandbox_getaddrinfo(): Bug: (Sandbox) failed to get address
Tor Bug Tracker & Wiki
blackhole at torproject.org
Tue Nov 13 19:43:11 UTC 2018
#28358: Nyx forces Tor error: sandbox_getaddrinfo(): Bug: (Sandbox) failed to get
address
--------------------------+------------------------------------
Reporter: wagon | Owner: (none)
Type: defect | Status: assigned
Priority: Medium | Milestone: Tor: 0.3.4.x-final
Component: Core Tor/Tor | Version: Tor: 0.3.4.9
Severity: Normal | Resolution:
Keywords: sandbox | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
--------------------------+------------------------------------
Changes (by dgoulet):
* owner: arma => (none)
* keywords: => sandbox
* milestone: => Tor: 0.3.4.x-final
Comment:
Hmmm... so `router_pick_published_address(get_options(), &addr, 0)` which
is called by `GETINFO address` triggers the sandbox.
Issue seems to be that `sandbox_getaddrinfo_cache_disabled = 0` and
`sandbox_getaddrinfo_is_active = 1` which means that `tor_getaddrinfo()`
will only query the cache and never call `getaddrinfo()`.
Not sure here, seems the solution is either call `getaddrinfo()` when the
sandbox is active (not entirely why we don't) or disable the getaddrinfo
cache when looking up the address from the GETINFO command (using:
sandbox_disable_getaddrinfo_cache()).
I'm still confused on how this can work in normal circumstances if
`Sandbox = 1` ONLY queries the cache?
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/28358#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list