Opened 6 months ago

Last modified 7 weeks ago

#28241 needs_information defect

Corrupt cached consensus and microdescs

Reported by: teor Owned by:
Priority: Medium Milestone: Tor: unspecified
Component: Core Tor/Tor Version: Tor: 0.3.5.3-alpha
Severity: Normal Keywords: 035-must, regression?
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

A relay operator reported file corruption on disk:

Non-exit
Oct 28 23:48:32.587 [notice] Tor 0.3.5.3-alpha running on FreeBSD with
Libevent 2.1.8-stable, OpenSSL LibreSSL 2.7.4, Zlib 1.2.11, Liblzma
5.2.3, and Libzstd 1.3.5.
...
Oct 28 23:48:33.000 [notice] Bootstrapped 0%: Starting
Oct 28 23:48:34.000 [warn] couldn't find start of hashed material
"network-status-version"
Oct 28 23:48:34.000 [warn] Unable to compute digest of network-status
Oct 28 23:48:34.000 [warn] Unable to parse networkstatus consensus
Oct 28 23:48:34.000 [warn] Couldn't load consensus microdesc
networkstatus from cache
Oct 28 23:48:34.000 [warn] parse error: Malformed object: missing object
end line
Oct 28 23:48:34.000 [warn] Unparseable microdescriptor

Bridge:
Oct 28 14:35:17.667 [notice] Tor 0.3.3.9 (git-45028085ea188baf) running
on FreeBSD with Libevent 2.1.8-stable, OpenSSL LibreSSL 2.7.4, Zlib
1.2.11, Liblzma 5.2.3, and Libzstd 1.3.5.
...
Oct 28 14:35:53.000 [notice] Bootstrapped 0%: Starting
Oct 28 14:35:55.000 [warn] parse error: Annotations mixed with keywords
Oct 28 14:35:55.000 [warn] Unparseable microdescriptor

I replied:

This looks like file corruption, but we'd still like to see the corrupt file, because it might be tor's fault.

Child Tickets

Change History (6)

comment:1 Changed 6 months ago by teor

I wonder if this could be caused by our new mmap code? Are relays using it?

comment:2 Changed 6 months ago by teor

Keywords: 035-roadmap-proposed added

comment:3 in reply to:  1 Changed 6 months ago by nickm

Replying to teor:

I wonder if this could be caused by our new mmap code? Are relays using it?

No -- it's not even merged.

I agree that getting a copy of the corrupt file here would be a good way to start.

comment:4 Changed 5 months ago by dgoulet

Status: newneeds_information

comment:5 Changed 5 months ago by teor

Keywords: 035-roadmap-proposed removed

These tickets need more information, so they can't be in 0.3.5.

comment:6 Changed 7 weeks ago by teor

Milestone: Tor: 0.3.5.x-finalTor: unspecified
Note: See TracTickets for help on using tickets.