"This line should not have been reached"

Summary

We are using Tor in Quiet (tryquiet.org) and see a a bunch of lines that say [warn] Bug: ... and a line that says This line should not have been reached in our logs.

Steps to reproduce:

This happens often but I'm not sure it happens always.

What is the current bug behavior?

Tor seems to be working fine, but we see the following in our logs:

backend:tor Aug 09 11:04:22.000 [warn] tor_bug_occurred_(): Bug: src/core/or/reasons.c:498: end_reason_to_http_connect_response_line: This line should not have been reached. (on Tor 0.4.7.7 929a90a24fd63b44)

What is the expected behavior?

Presumably we should not see this.

Environment

  • Which version of Tor are you using? Run tor --version to get the version if you are unsure. Tor 0.4.7.7
  • Which operating system are you using? For example: Debian GNU/Linux 10.1, Windows 10, Ubuntu Xenial, FreeBSD 12.2, etc. Debian GNU/Linux Bullseye running on ChromeOS VM (but we've seen it on Ubuntu too)
  • Which installation method did you use? Distribution package (apt, pkg, homebrew), from source tarball, from Git, etc. Binary from TorBrowser

Relevant logs and/or screenshots

logs-tor.txt

Possible fixes

Edited by holmesworcester