[tor-bugs] #1523 [Tor Client]: descriptor error
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Sat Jan 8 09:23:08 UTC 2011
#1523: descriptor error
------------------------+---------------------------------------------------
Reporter: gigs440 | Owner:
Type: defect | Status: new
Priority: minor | Milestone: Tor: 0.2.2.x-final
Component: Tor Client | Version:
Keywords: | Parent:
------------------------+---------------------------------------------------
Comment(by cypherpunks):
Some ideas for handle errors while store rebuild:
{{{
--- routerlist.c.origin Mon Jan 3 22:25:30 2011
+++ routerlist.c Sat Jan 8 09:11:06 2011
@@ -729,6 +729,9 @@
++nocache;
continue;
}
+ /* We going to move stuff, assume it nowhere saved
+ * until reconstruction stage.*/
+ sd->saved_location = SAVED_NOWHERE;
c = tor_malloc(sizeof(sized_chunk_t));
c->bytes = body;
c->len = sd->signed_descriptor_len + sd->annotations_len;
@@ -768,6 +771,9 @@
} else {
log_warn(LD_FS, "Unable to mmap new descriptor file at
'%s'.",fname);
}
+ /* Don't try to reconstruct pointers if broken store */
+ if (total_expected_len)
+ goto done;
}
log_info(LD_DIR, "Reconstructing pointers into cache");
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1523#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list