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 lys.nikolaou
Recipients Barro, lys.nikolaou, vstinner
Date 2018-07-12.18:20:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531419648.07.0.56676864532.issue34088@psf.upfronthosting.co.za>
In-reply-to
Content
Upon checking to see where the RuntimeError is coming from, I noticed that there is some notorious behaviour in chunk.py. If one runs python with the exact same parameters as Jussi Judin did in their first case and after stepping through the call stack until Chunk/skip is reached, there is a call to Chunk/seek. On the time of the call size_read has the value 16, whereas within the seek method it has the value 28. Is this intended? If so, where is that implemented? I cannot figure out why this is happening. 

The following is my pdb output.

> cpython/Lib/chunk.py(160)skip()
-> self.file.seek(n, 1)
(Pdb) p self.size_read
16
(Pdb) s
--Call--
> cpython/Lib/chunk.py(98)seek()
-> def seek(self, pos, whence=0):
(Pdb) p self.size_read
28
History
Date User Action Args
2018-07-12 18:20:48lys.nikolaousetrecipients: + lys.nikolaou, vstinner, Barro
2018-07-12 18:20:48lys.nikolaousetmessageid: <1531419648.07.0.56676864532.issue34088@psf.upfronthosting.co.za>
2018-07-12 18:20:48lys.nikolaoulinkissue34088 messages
2018-07-12 18:20:48lys.nikolaoucreate