Message83728
I wrote a short script to test TextIOWrapper.readline() with 32
threads. After 5 seconds, I found this issue in Python trunk (2.7):
Exception in thread Thread-26:
Traceback (most recent call last):
File "/home/SHARE/SVN/python-trunk/Lib/threading.py", line 522, in
__bootstrap_inner
self.run()
File "/home/haypo/crash_textiowrapper.py", line 15, in run
line = self.file.readline()
File "/home/SHARE/SVN/python-trunk/Lib/io.py", line 1835, in
readline
self._rewind_decoded_chars(len(line) - endpos)
File "/home/SHARE/SVN/python-trunk/Lib/io.py", line 1541, in
_rewind_decoded_chars
raise AssertionError("rewind decoded_chars out of bounds")
AssertionError: rewind decoded_chars out of bounds
But it looks that py3k is stronger because it doesn't crash. Is it the
power of the GIL? |
|
Date |
User |
Action |
Args |
2009-03-18 01:59:34 | vstinner | set | recipients:
+ vstinner, pitrou |
2009-03-18 01:59:34 | vstinner | set | messageid: <1237341574.15.0.571117961578.issue5502@psf.upfronthosting.co.za> |
2009-03-18 01:59:31 | vstinner | link | issue5502 messages |
2009-03-18 01:59:30 | vstinner | create | |
|