This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients pitrou, vstinner
Date 2009-03-18.01:59:28
SpamBayes Score 4.0311292e-08
Marked as misclassified No
Message-id <1237341574.15.0.571117961578.issue5502@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2009-03-18 01:59:34vstinnersetrecipients: + vstinner, pitrou
2009-03-18 01:59:34vstinnersetmessageid: <1237341574.15.0.571117961578.issue5502@psf.upfronthosting.co.za>
2009-03-18 01:59:31vstinnerlinkissue5502 messages
2009-03-18 01:59:30vstinnercreate