Author Ivan
Recipients Ivan, jeff.allen
Date 2017-07-24.20:17:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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):

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

fails with error

  File "d:\temp\deleteme\", line 7, in process_json
  File "D:\jython2.7.1\Lib\json\", line 338, in loads
    return _default_decoder.decode(s)
  File "D:\jython2.7.1\Lib\json\", 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:28Ivansetmessageid: <>
2017-07-24 20:17:28Ivansetrecipients: + Ivan, jeff.allen
2017-07-24 20:17:28Ivanlinkissue2609 messages
2017-07-24 20:17:27Ivancreate