[tor-bugs] #33886 [Circumvention/BridgeDB]: bridges at torproject.org Don't respond to gmail

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Apr 13 17:13:06 UTC 2020


#33886: bridges at torproject.org Don't respond to gmail
------------------------------------+--------------------------
 Reporter:  mh828                   |          Owner:  phw
     Type:  defect                  |         Status:  assigned
 Priority:  Medium                  |      Milestone:
Component:  Circumvention/BridgeDB  |        Version:
 Severity:  Normal                  |     Resolution:
 Keywords:  bridgedb-reportbug      |  Actual Points:
Parent ID:                          |         Points:
 Reviewer:                          |        Sponsor:
------------------------------------+--------------------------
Changes (by phw):

 * owner:  (none) => phw
 * status:  new => assigned


Comment:

 Thanks for your bug report! This may be caused by the following exception
 that BridgeDB occasionally raises:
 {{{
 Unhandled Error
 Traceback (most recent call last):
   File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
 packages/twisted/python/log.py", line 103, in callWithLogger
     return callWithContext({"system": lp}, func, *args, **kw)
   File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
 packages/twisted/python/log.py", line 86, in callWithContext
     return context.call({ILogContext: newCtx}, func, *args, **kw)
   File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
 packages/twisted/python/context.py", line 122, in callWithContext
     return self.currentContext().callWithContext(ctx, func, *args, **kw)
   File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
 packages/twisted/python/context.py", line 85, in callWithContext
     return func(*args,**kw)
 --- <exception caught here> ---
   File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
 packages/twisted/internet/posixbase.py", line 614, in _doReadOrWrite
     why = selectable.doRead()
   File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
 packages/twisted/internet/tcp.py", line 243, in doRead
     return self._dataReceived(data)
   File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
 packages/twisted/internet/tcp.py", line 249, in _dataReceived
     rval = self.protocol.dataReceived(data)
   File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
 packages/twisted/protocols/basic.py", line 454, in dataReceived
     self.lineReceived(line)
   File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
 packages/twisted/mail/smtp.py", line 445, in lineReceived
     return getattr(self, 'state_' + self.mode)(line)
   File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
 packages/twisted/mail/smtp.py", line 705, in dataLineReceived
     m.eomReceived() for m in self.__messages
   File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
 packages/twisted/mail/smtp.py", line 705, in <listcomp>
     m.eomReceived() for m in self.__messages
   File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
 packages/bridgedb-0.10.0+9.g208b49cd.dirty-
 py3.7.egg/bridgedb/distributors/email/server.py", line 240, in eomReceived
     self.responder.reply()
   File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
 packages/bridgedb-0.10.0+9.g208b49cd.dirty-
 py3.7.egg/bridgedb/distributors/email/autoresponder.py", line 603, in
 reply
     response = self.getMailData()
   File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
 packages/bridgedb-0.10.0+9.g208b49cd.dirty-
 py3.7.egg/bridgedb/distributors/email/autoresponder.py", line 420, in
 getMailData
     client, lang)
   File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
 packages/bridgedb-0.10.0+9.g208b49cd.dirty-
 py3.7.egg/bridgedb/distributors/email/autoresponder.py", line 102, in
 createResponseBody
     bridges = context.distributor.getBridges(bridgeRequest, interval)
   File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
 packages/bridgedb-0.10.0+9.g208b49cd.dirty-
 py3.7.egg/bridgedb/distributors/email/distributor.py", line 149, in
 getBridges
     with bridgedb.Storage.getDB() as db:
   File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
 packages/bridgedb-0.10.0+9.g208b49cd.dirty-py3.7.egg/bridgedb/Storage.py",
 line 352, in __enter__
     return next(self.gen)
   File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
 packages/bridgedb-0.10.0+9.g208b49cd.dirty-py3.7.egg/bridgedb/Storage.py",
 line 472, in getDB
     assert _REFCOUNT == 0
 builtins.AssertionError:
 }}}

 Hmm, I wonder if our recent port to Python 3 broke our context manager.
 Email distribution did work in the recent past, so the issue is probably a
 bit more nuanced.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/33886#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list