Message11491
And here is the script to reproduce the original problem (run it several times to catch an exception). The bug is obviously due to regexp object shared somewhere between threads:
import thread
import re
import datetime
import time
def printtime(time):
print datetime.datetime.strptime(time, '%Y-%m-%dT%H:%M:%S')
thread.start_new_thread(printtime, ('2017-07-01T11:11:11',))
thread.start_new_thread(printtime, ('2017-07-01T11:11:11',))
thread.start_new_thread(printtime, ('2017-07-01T11:11:11',))
thread.start_new_thread(printtime, ('2017-07-01T11:11:11',))
thread.start_new_thread(printtime, ('2017-07-01T11:11:11',))
thread.start_new_thread(printtime, ('2017-07-01T11:11:11',))
thread.start_new_thread(printtime, ('2017-07-01T11:11:11',))
thread.start_new_thread(printtime, ('2017-07-01T11:11:11',))
thread.start_new_thread(printtime, ('2017-07-01T11:11:11',))
thread.start_new_thread(printtime, ('2017-07-01T11:11:11',))
thread.start_new_thread(printtime, ('2017-07-01T11:11:11',))
thread.start_new_thread(printtime, ('2017-07-01T11:11:11',))
time.sleep(1) |
|
Date |
User |
Action |
Args |
2017-07-21 17:26:32 | Ivan | set | messageid: <1500657992.09.0.744284536554.issue2609@psf.upfronthosting.co.za> |
2017-07-21 17:26:32 | Ivan | set | recipients:
+ Ivan |
2017-07-21 17:26:32 | Ivan | link | issue2609 messages |
2017-07-21 17:26:31 | Ivan | create | |
|