[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: tor 0.1.2.17 server died after only a few hours



On Wed, Sep 05, 2007 at 02:28:27AM -0500, Scott Bennett wrote:
> >     I wrote:
> >>     I switched from 0.1.2.16 to 0.1.2.17 this morning.  About 5 hrs. 20-odd
> >>minutes later, tor wrote the following message to the notice log and exited:
> >>
> >>Sep 04 14:06:29.140 [err] connection.c:2387: assert_connection_ok: Assertion connection_is_writing(conn) || conn->wants_to_write || (conn->type == CONN_TYPE_DIR && TO_DIR_CONN(conn)->is_blocked_on_or_conn) failed; aborting.
> >>
> >>Does anyone know what caused this?  I can still switch back to 0.1.2.16 if
> >>need be.
> >
> >     It just did it again after being up only a few minutes.  I've now reverted
> >to 0.1.2.16 and will stay with that until the next release comes out.  Sigh.
> 
>      I can't believe this!  My 0.1.2.16 server just did the same thing!  And
> that is after it ran fine for quite some time before trying 0.1.2.17 (this is
> the first time 0.1.2.16 has acted up).  Here's the message:
> 
> Sep 05 02:09:33.960 [err] connection.c:2391: assert_connection_ok:
> Assertion connection_is_writing(conn) || conn->wants_to_write ||
> (conn->type == CONN_TYPE_DIR &&
> TO_DIR_CONN(conn)->is_blocked_on_or_conn) failed; aborting.

On further consideration, this looks exactly like Bug 406 on the bug
tracker.

  ( http://bugs.noreply.org/flyspray/index.php?do=details&id=406 )

This is a tricky one; something to do with the way we handle "linked"[*]
directory connections on 0.1.2.x servers seems to be broken; I'll try
to track it down.  (It seems like we're mis-managing the
blocked_on_or_conn field somehow; see bug report for more details.)

As a workaround, I believe that this bug doesn't appear in the
0.2.0.x-alpha series so far; if you want to try one of those, it may
work better for you.  On the other hand, it might do worse; it _is_ an
alpha after all. :/

[*] (We used to call these internal directory connections "bridged"
  instead of "linked", but we changed the word when we introduced
  "bridge servers" in 0.2.0.x, because we wanted to avoid confusing
  people.)

yrs,
-- 
Nick Mathewson

Attachment: pgpFKvhMIdZjF.pgp
Description: PGP signature