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 berker.peksag, ethan.furman, python-dev, serhiy.storchaka, vstinner
Date 2016-04-15.15:52:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1460735576.96.0.119185371569.issue26766@psf.upfronthosting.co.za>
In-reply-to
Content
> LGTM, please commit.

Ok, done.

> Why the behavior is vary in release and debug builds?

See _PyBytesWriter_Alloc(): the code is designed to detect bugs earlier in debug mode, it only uses 10 bytes of the "small buffer" (buffer allocated on the stack) rather than the full size of the smaller buffer (512 bytes).

It looks like this hack helped to find a real bug :-)
History
Date User Action Args
2016-04-15 15:52:56vstinnersetrecipients: + vstinner, ethan.furman, python-dev, berker.peksag, serhiy.storchaka
2016-04-15 15:52:56vstinnersetmessageid: <1460735576.96.0.119185371569.issue26766@psf.upfronthosting.co.za>
2016-04-15 15:52:56vstinnerlinkissue26766 messages
2016-04-15 15:52:56vstinnercreate