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 martin.panter
Recipients Ramin Farajpour Cami, benjamin.peterson, gvanrossum, martin.panter, paul.moore, serhiy.storchaka, steve.dower, terry.reedy, tim.golden, vstinner, zach.ware
Date 2016-01-16.20:49:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452977347.35.0.0285563027176.issue26059@psf.upfronthosting.co.za>
In-reply-to
Content
Looking at the 2.7.11 code, I think it should fail properly at this line <https://hg.python.org/cpython/file/v2.7.11/Modules/stropmodule.c#l1113>, which checks if the change in size of all the replacements overflows. Is there a way to get a stack trace or similar on Windows?

Your video only shows the operation taking a long time or hanging as far as I can tell, not the Python program crashing. I would expect the call to raise MemoryError fairly quickly, after it has counted all 0xEAAA bytes to replace (but not actually replaced them).
History
Date User Action Args
2016-01-16 20:49:07martin.pantersetrecipients: + martin.panter, gvanrossum, terry.reedy, paul.moore, vstinner, tim.golden, benjamin.peterson, zach.ware, serhiy.storchaka, steve.dower, Ramin Farajpour Cami
2016-01-16 20:49:07martin.pantersetmessageid: <1452977347.35.0.0285563027176.issue26059@psf.upfronthosting.co.za>
2016-01-16 20:49:07martin.panterlinkissue26059 messages
2016-01-16 20:49:07martin.pantercreate