[tor-bugs] #4091 [Tor Relay]: tor_addr_is_internal(): Bug: tor_addr_is_internal() called with a non-IP address.

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Tue Mar 27 22:24:54 UTC 2012


#4091: tor_addr_is_internal(): Bug: tor_addr_is_internal() called with a non-IP
address.
--------------------------+-------------------------------------------------
    Reporter:  stars      |       Owner:                    
        Type:  defect     |      Status:  reopened          
    Priority:  normal     |   Milestone:  Tor: 0.2.3.x-final
   Component:  Tor Relay  |     Version:  Tor: 0.2.3.7-alpha
  Resolution:             |    Keywords:  regression        
      Parent:             |      Points:                    
Actualpoints:             |  
--------------------------+-------------------------------------------------

Comment(by nickm):

 Hm. Possibility 1 here is that the family is AF_UNIX; possibility two is
 that it's uninitialized.  A simple log statement will track down which one
 it is.  I've added that, and a tor_fragile_assert(), in
 80b2756b537204ba070f1e3df4e5ed3f4e6815c0.

 At this point, our best bet for finding it is to audit every caller of
 tor_addr_is_internal(), or for somebody who is hitting this warning and
 can get stack traces to run a copy of Tor built with tor_fragile_assert()
 enabled and get a stack trace. (You can uncomment it in src/common/util.h)

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


More information about the tor-bugs mailing list