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

Re: tor server died after only a few hours

     On Thu, 6 Sep 2007 12:32:17 -0400 Nick Mathewson <nickm@xxxxxxxxxxxxx>

>On Wed, Sep 05, 2007 at 02:28:27AM -0500, Scott Bennett wrote:
>> >     I wrote:
>> >>     I switched from to this morning.  About 5 hrs. 2=
>> >>minutes later, tor wrote the following message to the notice log and ex=
>> >>
>> >>Sep 04 14:06:29.140 [err] connection.c:2387: assert_connection_ok: Asse=
>rtion connection_is_writing(conn) || conn->wants_to_write || (conn->type =
>=3D=3D CONN_TYPE_DIR && TO_DIR_CONN(conn)->is_blocked_on_or_conn) failed; a=
>> >>
>> >>Does anyone know what caused this?  I can still switch back to
> if
>> >>need be.
>> >
>> >     It just did it again after being up only a few minutes.  I've now r=
>> >to and will stay with that until the next release comes out.  S=
>>      I can't believe this!  My server just did the same thing!  =
>> that is after it ran fine for quite some time before trying (thi=
>s is
>> the first time 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 =3D=3D 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
>  ( http://bugs.noreply.org/flyspray/index.php?do=3Ddetails&id=3D406 )
>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.)

     Thanks very much, Nick.  A core file is still available if you
need it, but now that has blown up, the file will be from that
version rather than the newer one.  I'll hang onto it for a week or two
in case you want it.
>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

     That's interesting.  Would a comparison of the differences between
0.2.* and[67] in that section of code reveal any clues then?

>work better for you.  On the other hand, it might do worse; it _is_ an
>alpha after all. :/

     Actually, it's a beta, regardless of how it's labeled.  Alphas are
only tested in house.  Betas are released to the brave and/or foolish in
the outside user community.  Either way, your point is well taken and is
how I tend to see that sort of thing, too.  It's a gamble.  I spend enough
time babysitting the interaction of tor and my flaky-by-ISP's-design ADSL
link that I've been avoiding the "development" releases so far.  However,
if the "stable" releases are going to be acting up like this, it may not
make a difference, i.e., similar time commitments for the two lines of
released versions may be required.
>[*] (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.)
     Ah.  Thanks for that tidbit. :-)

                                  Scott Bennett, Comm. ASMELG, CFIAG
* Internet:       bennett at cs.niu.edu                              *
* "A well regulated and disciplined militia, is at all times a good  *
* objection to the introduction of that bane of all free governments *
* -- a standing army."                                               *
*    -- Gov. John Hancock, New York Journal, 28 January 1790         *