Eric Snow added the comment:

It's starting to look like this is threading-related.  There's a single 
requests.Session defined as a module global in pywikibot.comms.http which is 
shared by all threads handling requests.  requests.Session uses OrderedDict for 
an LRU cache for redirects.  That's where we're running into trouble.

So it seems that I missed a spot that is susceptible to issues with threading 
(not necessarily in pop/popitem).  The catch is that it's not very racy.  The 
failure is reproducing quite consistently.

I'm going to continue investigating and constructing a simple reproducer.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24667>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to