Opened 11 years ago

Last modified 7 years ago

#803 closed defect (Fixed)

assert in routerstatus_format_entry()

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

Description

r16563.

Aug 16 18:42:00.186 [] Downloading consensus from 82.94.251.204:443 using /tor/s
tatus-vote/current/consensus/14C131+27B6B5+585769+81349F+E2A2AF+E8A9C4.z
Aug 16 19:33:57.203 [] routerstatus_format_entry(): Bug: Cannot get the descript
or with digest 009CF1422D2244E918B4530A673871D46009B752 for 5193811E81189B705618
C7DB16BE3B48170C2800.
Aug 16 19:33:57.208 [] routerstatus_format_entry(): Bug: descriptor digest in ro
uterlist does not match the one in routerstatus: 33503E7B5447030D4289F465F2BD0A0
44781B34E vs 78DB41D7DAA1B80572FB422E789FBDBCEF456C68
Aug 16 19:33:57.212 [] Bug: dirserv.c:1966: routerstatus_format_entry: Assertion

!memcmp(desc->cache_info.signed_descriptor_digest, rs->descriptor_digest, DIGES

T_LEN) failed; aborting.

#0 0xb7fd1410 in ?? ()
#1 0xbfe9327c in ?? ()
#2 0x00000006 in ?? ()
#3 0x00001144 in ?? ()
#4 0xb7d01811 in raise () from /lib/tls/i686/cmov/libc.so.6
#5 0xb7d02fb9 in abort () from /lib/tls/i686/cmov/libc.so.6
#6 0x08093bd4 in routerstatus_format_entry (

buf=0xbfe93541 "r agate ATQMjN9ekLnU/xrr3KQDzS/25WI eNtB19qhuAVy+0IueJ+9vO9FbGg 2008-08-16 20:14:41 193.202.115.224 9001 0\ns Running Unnamed Valid\n",
buf_len=1379, rs=0x88f9918, version=0x0, first_line_only=0, v2_format=0)
at dirserv.c:1964

#7 0x080ab8da in networkstatus_getinfo_helper_single (rs=0x88f9918)

at networkstatus.c:1782

#8 0x080ad1e7 in getinfo_helper_networkstatus (conn=0x8663de0,

question=0x8170880 "ns/all", answer=0xbfe93be0) at networkstatus.c:1862

#9 0x08086535 in connection_control_process_inbuf (conn=0x8663de0)

at control.c:1976

#10 0x08070c68 in connection_process_inbuf (conn=0x8663de0, package_partial=6)

at connection.c:2733

#11 0x080729b1 in connection_handle_read (conn=0x8663de0) at connection.c:1931
#12 0x080ab5c8 in conn_read_callback (fd=10, event=2, _conn=0x8663de0)

at main.c:458

#13 0xb7f9cc79 in event_base_priority_init () from /usr/lib/libevent-1.1a.so.1
#14 0xb7f9cf65 in event_base_loop () from /usr/lib/libevent-1.1a.so.1
#15 0xb7f9cdcb in event_loop () from /usr/lib/libevent-1.1a.so.1
#16 0x080ab10f in do_main_loop () at main.c:1459
#17 0x080ab2e5 in tor_main (argc=11, argv=0xbfe93e64) at main.c:2025
#18 0x080e5b92 in main (argc=Cannot access memory at address 0x1144
) at tor_main.c:29

#6 0x08093bd4 in routerstatus_format_entry (

buf=0xbfe93541 "r agate ATQMjN9ekLnU/xrr3KQDzS/25WI eNtB19qhuAVy+0IueJ+9vO9FbGg 2008-08-16 20:14:41 193.202.115.224 9001 0\ns Running Unnamed Valid\n",
buf_len=1379, rs=0x88f9918, version=0x0, first_line_only=0, v2_format=0)
at dirserv.c:1964

1964 tor_assert(!memcmp(desc->cache_info.signed_descriptor_digest,

(gdb) print *rs
$4 = {published_on = 1218917681, nickname = "agate", '\0' <repeats 14 times>,

identity_digest = "\0014\f\214ß^\220¹Ôÿ\032ëܤ\003Í/öåb",
descriptor_digest = "xÛA×Ú¡¸\005rûB.x\237½¼ïElh", addr = 3251270624,
or_port = 9001, dir_port = 0, is_authority = 0, is_exit = 0, is_stable = 0,
is_fast = 0, is_running = 1, is_named = 0, is_unnamed = 1, is_valid = 1,
is_v2_dir = 0, is_possible_guard = 0, is_bad_exit = 0, is_bad_directory = 0,
is_hs_dir = 0, version_known = 1, version_supports_begindir = 1,
version_supports_conditional_consensus = 0,
version_supports_extrainfo_upload = 1, version_supports_v3_dir = 1,
has_bandwidth = 0, has_exitsummary = 0, bandwidth = 0, exitsummary = 0x0,
need_to_mirror = 0, name_lookup_warned = 0, last_dir_503_at = 0,
dl_status = {next_attempt_at = 0, n_download_failures = 0 '\0',

schedule = DL_SCHED_GENERIC}}

(gdb) print desc
No symbol "desc" in current context.

(darn optimizer)

[Automatically added by flyspray2trac: Operating System: All]

Child Tickets

Change History (4)

comment:1 Changed 11 years ago by arma

My next hint:

Running my Tor client, and launching Vidalia, it does some lookups on the
routers. Then I have a huge pile of
Aug 17 00:19:33.791 [warn] routerstatus_format_entry(): Bug: Cannot get the desc
riptor with digest FAEBE89EF9835927C07D4E297428946B4A6EE917 for 8EB096390849BD61
051A076448E718C45DCDC12C.
Aug 17 00:19:33.792 [warn] routerstatus_format_entry(): Bug: Cannot get the desc
riptor with digest FB180F69C72900B590C307C573743767201DC2D5 for 47A12A1306F36AD8
7F581B26DC5BD853AEE311AF.
Aug 17 00:19:33.793 [warn] routerstatus_format_entry(): Bug: Cannot get the desc
riptor with digest FC4D0F330D0AAA032CDAA91367A2EB03A43F69D3 for 45B131219F1DE405
7B84CE1E9713EC07F39F44B1.

in my logs. It doesn't crash/assert, but it sure looks related.

comment:2 Changed 11 years ago by weasel

How about with r16578?

comment:3 Changed 11 years ago by weasel

flyspray2trac: bug closed.
reopen should it show up again

comment:4 Changed 7 years ago by nickm

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