While running tor as a relay and having a long (300 lines) list of ExitPolicy directives in the torrc file I get the following error:
Jan 09 19:12:55.541 [warn] router_dump_router_to_string(): Bug: descriptor policy_write_item ran out of room!
Jan 09 19:12:55.541 [warn] router_rebuild_descriptor(): Bug: Couldn't generate router descriptor.
And Tor will not start.
Steps to reproduce:
Add 200-300 lines of ExitPolicy directives
for example:
cat /var/log/tor/log
Jan 09 19:12:00.938 [warn] router_dump_router_to_string(): Bug: descriptor policy_write_item ran out of room!
Jan 09 19:12:00.938 [warn] router_rebuild_descriptor(): Bug: Couldn't generate router descriptor.