Message11498
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. |
|
Date |
User |
Action |
Args |
2017-07-24 20:17:28 | Ivan | set | messageid: <1500927448.04.0.764477033501.issue2609@psf.upfronthosting.co.za> |
2017-07-24 20:17:28 | Ivan | set | recipients:
+ Ivan, jeff.allen |
2017-07-24 20:17:28 | Ivan | link | issue2609 messages |
2017-07-24 20:17:27 | Ivan | create | |
|