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 Aaron1011, ezio.melotti, martin.panter, serhiy.storchaka, vstinner
Date 2015-07-15.23:00:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437001254.98.0.366204839153.issue23247@psf.upfronthosting.co.za>
In-reply-to
Content
> Happens for all the multibyte codecs: (...)

All these codecs share the same C implementation: the "CJK" codecs.

The bug was introduced in Python 3.4 by my huge changeset d621bdaed7c3: Issue "#17693: CJK encoders now use the new Unicode API (PEP 393)".

It looks like there was no test for this specific bug :-/ Calling reset() just after creating a StreamReader object.

Attached patch should fix the crash.

@Aaron1011: Can you please try to write a patch adding a unit test to test_codecs reproducing the crash?
History
Date User Action Args
2015-07-15 23:00:55vstinnersetrecipients: + vstinner, ezio.melotti, martin.panter, serhiy.storchaka, Aaron1011
2015-07-15 23:00:54vstinnersetmessageid: <1437001254.98.0.366204839153.issue23247@psf.upfronthosting.co.za>
2015-07-15 23:00:54vstinnerlinkissue23247 messages
2015-07-15 23:00:54vstinnercreate