Opened 12 years ago

Last modified 7 years ago

#450 closed defect (Fixed)

routerlist_assert_ok: Assertion !memcmp(r->cache_info.identity_digest, d, DIGEST_LEN) failed

Reported by: weasel Owned by:
Priority: Low Milestone:
Component: Core Tor/Tor Version: 0.2.0.2-alpha
Severity: Keywords:
Cc: weasel, nickm Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Jun 13 05:41:37.038 [err] Bug: routerlist.c:5197: routerlist_assert_ok: Assertion !memcmp(r->cache_info.identity_digest, d, DIGEST_LEN) failed; aborting.

#0 0xffffe410 in kernel_vsyscall ()
#1 0xb7d2a885 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7d2c002 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0x080c6b92 in routerlist_assert_ok (rl=0x8167808) at routerlist.c:5197
#4 0x080be709 in routerlist_remove (rl=0x8167808, ri=0x86344e0, idx=52, make_old=1) at routerlist.c:2064
#5 0x080c04c2 in routerlist_remove_old_routers () at routerlist.c:2679
#6 0x080c5756 in update_router_have_minimum_dir_info () at routerlist.c:4858
#7 0x080c56f0 in router_have_minimum_dir_info () at routerlist.c:4829
#8 0x080a2329 in run_scheduled_events (now=1181706097) at main.c:1024
#9 0x080a274d in second_elapsed_callback (fd=-1, event=1, args=0x0) at main.c:1163

(gdb)
#3 0x080c6b92 in routerlist_assert_ok (rl=0x8167808) at routerlist.c:5197
5197 tor_assert(!memcmp(r->cache_info.identity_digest, d, DIGEST_LEN));
(gdb) p r
$1 = (routerinfo_t *) 0x86344e0
(gdb) p iter
$2 = (digestmap_iter_t *) 0x85b8524
(gdb) p d
$3 = 0x8b9f4bc "nzxß\235\035/W\b5ë£\222bàwñä\016½("
(gdb) p *r
$4 = {cache_info = {signed_descriptor_body = 0x86340e8 "(", signed_descriptor_len = 3085125992, signed_descriptor_digest = 'M' <repeats 20 times>,

identity_digest = 'M' <repeats 20 times>, published_on = 1296911693, extra_info_digest = 'M' <repeats 20 times>, ei_dl_status = {next_attempt_at = 1296911693,

n_download_failures = 77 'M'}, saved_location = 1296911693, saved_offset = 5570193308531903821, do_not_cache = 1, is_extrainfo = 0},

address = 0x4d4d4d4d <Address 0x4d4d4d4d out of bounds>, nickname = 0x4d4d4d4d <Address 0x4d4d4d4d out of bounds>, addr = 1296911693, or_port = 19789,
dir_port = 19789, onion_pkey = 0x4d4d4d4d, identity_pkey = 0x4d4d4d4d, platform = 0x4d4d4d4d <Address 0x4d4d4d4d out of bounds>, bandwidthrate = 1296911693,
bandwidthburst = 1296911693, bandwidthcapacity = 1296911693, exit_policy = 0x4d4d4d4d, uptime = 1296911693, declared_family = 0x4d4d4d4d,
contact_info = 0x4d4d4d4d <Address 0x4d4d4d4d out of bounds>, is_hibernating = 1, has_old_dnsworkers = 0, caches_extra_info = 1, is_running = 1, is_valid = 0,
is_named = 0, is_fast = 1, is_stable = 0, is_possible_guard = 1, is_exit = 0, is_bad_exit = 1, purpose = 77 'M', last_reachable = 1296911693,
testing_since = 1296911693, num_unreachable_notifications = 1296911693, routerlist_index = 176}

[Automatically added by flyspray2trac: Operating System: All]

Child Tickets

Change History (3)

comment:1 Changed 12 years ago by nickm

This looks like it was the typo bug I fixed in r10565: rimap_remove was supposed to be an alias
for digestmap_remove, but instead it was digestmap_get(). Should be fixed now.

comment:2 Changed 12 years ago by weasel

flyspray2trac: bug closed.
haven't seen it in a while

comment:3 Changed 7 years ago by nickm

Component: Tor RelayTor
Note: See TracTickets for help on using tickets.