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 belopolsky
Recipients Arfrever, barry, belopolsky, ezio.melotti, jhalcrow, lemburg, loewis, pitrou, valhallasw, vstinner
Date 2010-12-16.19:35:39
SpamBayes Score 1.71274e-08
Marked as misclassified No
Message-id <1292528140.78.0.880033907483.issue10254@psf.upfronthosting.co.za>
In-reply-to
Content
Adding an assert as shown in the diff below, makes it easy to reproduce the crash in py3k branch:

$ ./python.exe  crash.py
Assertion failed: (cskipped < 20), function nfc_nfkc, file Modules/unicodedata.c, line 714.
Abort trap

I am attaching jhalcrow's code as crash.py 

===================================================================
--- Modules/unicodedata.c	(revision 87322)
+++ Modules/unicodedata.c	(working copy)
@@ -711,6 +711,7 @@
           /* Replace the original character. */
           *i = code;
           /* Mark the second character unused. */
+          assert(cskipped < 20);
           skipped[cskipped++] = i1;
           i1++;
           f = find_nfc_index(self, nfc_first, *i);
History
Date User Action Args
2010-12-16 19:35:40belopolskysetrecipients: + belopolsky, lemburg, loewis, barry, pitrou, vstinner, ezio.melotti, Arfrever, jhalcrow, valhallasw
2010-12-16 19:35:40belopolskysetmessageid: <1292528140.78.0.880033907483.issue10254@psf.upfronthosting.co.za>
2010-12-16 19:35:39belopolskylinkissue10254 messages
2010-12-16 19:35:39belopolskycreate