[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X

STINNER Victor report at bugs.python.org
Fri Oct 21 21:53:20 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

It is a compiler bug in GCC 4.2.1 with -O3. Try to compile attached unicode.c program with gcc -O3. The correct result is:

$ gcc -O3 unicode.c -o unicode && ./unicode
is ascii? 0
is compact? 1
is compact ascii? 0
_PyUnicode_COMPACT_DATA: 88 vs 88
PyUnicode_DATA: 88 vs 88
explicit cast: 88 vs 88

With gcc 4.2.1 and -O3, you get "is compact ascii? 1".

----------
nosy: +haypo
Added file: http://bugs.python.org/file23490/unicode.c

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13241>
_______________________________________


More information about the Python-bugs-list mailing list