Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #2097

Closed (moved)
(moved)
Open
Created Oct 20, 2010 by Nick Mathewson@nickm👉

Crash while checking whether directory_crashes_dir_info()

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.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking