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

[tor-bugs] #2097 [- Select a component]: Crash while checking whether directory_crashes_dir_info()



#2097: Crash while checking whether directory_crashes_dir_info()
----------------------------------+-----------------------------------------
 Reporter:  nickm                 |       Owner:     
     Type:  defect                |      Status:  new
 Priority:  normal                |   Milestone:     
Component:  - Select a component  |     Version:     
 Keywords:                        |      Parent:     
----------------------------------+-----------------------------------------
 rransom found this while testing his patch for bug988.  Here's the stack
 trace:

 {{{
 09:47 < rransom> #0  get_net_param_from_list
 (net_params=0xb0b0b0b0b0b0b0b, para
 m_name=0x4d8880 "refuseunknownexits", default_val=1) at
 networkstatus.c:2127
 09:51 < rransom> #1  0x00000000004959ec in directory_caches_dir_info
 (options=0x1a66790) at dirserv.c:1217
 09:51 < rransom> #2  0x0000000000410b20 in
 networkstatus_set_current_consensus (consensus=<value optimized out>,
 flavor=<value optimized out>, flags=<value optimized out>) at
 networkstatus.c:1734
 }}}

 So set_current_consensus frees the current_consensus, then calls
 directory_caches_dir_info, which indirectly calls get_net_param_for_list
 on current_consensus, which has been freed.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/2097>
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