[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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 teor):

 This appears to be an address resolution issue.
 Tor is hanging on this line of code in `address.c`:
 {{{
     err = sandbox_getaddrinfo(name, NULL, &hints, &res);
 }}}

 For some reason, almost every other name or symbol either gets resolved
 quickly, or fails.
 But `\` takes 30 seconds to resolve. The resolution is attempted even if
 `--DisableNetwork 1` is specified.

 I'm using OS X, in case this behaviour is restricted to a particular
 platform.

 The simplest command-line which can reproduce this issue for me is:
 {{{
 tor --verify-config --ORPort \\ -f /dev/null
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/16366#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs