Message11498

Author Ivan
Recipients Ivan, jeff.allen
Date 2017-07-24.20:17:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500927448.04.0.764477033501.issue2609@psf.upfronthosting.co.za>
In-reply-to
Content
I reproduce this each time I run the script on my development machine. 

But what is worse, we've got lots of these errors in production environment logs. We reverted the dependency to 2.7.1b3 which doesn't seem to be affected by this problem.

Another script to reproduce the problem:

import thread
import re
import json
import time

def process_json(str):
    json.loads(str)

for i in range(10):
    for i in range(10):
         thread.start_new_thread(process_json, ('{"a": 15, "b": 20}',))
    time.sleep(0.1)

fails with error

  File "d:\temp\deleteme\foo2.py", line 7, in process_json
    json.loads(str)
  File "D:\jython2.7.1\Lib\json\__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "D:\jython2.7.1\Lib\json\decoder.py", line 365, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
AttributeError: 'org.python.modules.sre.MatchObject' object has no attribute 'end'


That's what we have in production: regexp, strptime and json.loads calls are affected.
History
Date User Action Args
2017-07-24 20:17:28Ivansetmessageid: <1500927448.04.0.764477033501.issue2609@psf.upfronthosting.co.za>
2017-07-24 20:17:28Ivansetrecipients: + Ivan, jeff.allen
2017-07-24 20:17:28Ivanlinkissue2609 messages
2017-07-24 20:17:27Ivancreate