[tor-bugs] #16366 [Tor]: tor hangs for 30 seconds when parsing torrc ending in backslash-newline

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Jun 15 14:07:36 UTC 2015


#16366: tor hangs for 30 seconds when parsing torrc ending in backslash-newline
------------------------+--------------------------
     Reporter:  teor    |      Owner:
         Type:  defect  |     Status:  new
     Priority:  minor   |  Milestone:  Tor: 0.2.???
    Component:  Tor     |    Version:  Tor: 0.2.6.8
   Resolution:          |   Keywords:  lorax
Actual Points:          |  Parent ID:
       Points:          |
------------------------+--------------------------

Comment (by nickm):

 I investigated a little, using dtruss (on osx) and strace (on Linux) and
 reading the source code (ugh, hairy).  Here's what I found:

 When you do getaddrinfo("\\") on osx, it sends a query to the network, and
 never gets a reply.

 But when you do getaddrinfo("\\") on glibc, it never sends a query to the
 network at all; instead, it recognizes early that the name can't be valid.

 So maybe this is not a Tor issue?

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


More information about the tor-bugs mailing list