Tor crash on ppc64 with bad descriptors
Tor 0.2.1.6-alpha on ppc64 (PS3 Ubuntu) fails assert reliably with a bad descriptor found in http://peertech.org/files/save-bad-cached-files-tor-ppc64-crash.tgz
The failed assert is: [err] Bug: policies.c:1266: addr_policy_free: Assertion p == found->policy failed; aborting.
The Tor instance attempts to remove a canonical policy returned by the hash table HT_REMOVE.
The policy to find is (i added some additional debugging info to help troubleshoot): debug_policy(): Policy data for 0x101f2d88: HASH: 1105958104 IsPrivate: 0 addr: 18.104.22.168 mask: 32 prt_min: 1 prt_max: 65535 type: 2
The matched policy shouldn't match, but does return: debug_policy(): Policy data for 0x1027bb68: HASH: 2801726591 IsPrivate: 0 addr: 22.214.171.124 mask: 32 prt_min: 1 prt_max: 65535 type: 2
The assert fails because the search policy does not match the found policy in addr_policy_free.
The policy at address 0x1027bb68 is for router "router Unnamed 126.96.36.199 443 0 9030" in the cached files. The policy at address 0x101f2d88 is for router "router utumno 188.8.131.52 9001 0 0".
I can attempt to assist further if necessary. This does not appear to be a problem on x86 for the same alpha version.
[Automatically added by flyspray2trac: Operating System: Other Linux]