[issue17645] assert fails in _Py_Mangle

2013-04-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: The crash is very obscure, I don't think we want to bother with a unit test for that (it took 14 seconds to crash or pass here). > This might help notice that comparing an integer of type Py_ssize_t to > check if it's greater than PY_SSIZE_T_MAX is bogus in C

[issue17645] assert fails in _Py_Mangle

2013-04-07 Thread Armin Rigo
Armin Rigo added the comment: You may want to add a test. This might help notice that comparing an integer of type Py_ssize_t to check if it's greater than PY_SSIZE_T_MAX is bogus in C :-( -- resolution: fixed -> stage: committed/rejected -> test needed

[issue17645] assert fails in _Py_Mangle

2013-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: This should be fixed now, thank you! -- nosy: +pitrou resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.3, Python 3.4 ___ Python tracker

[issue17645] assert fails in _Py_Mangle

2013-04-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 72f0fd0c4d90 by Antoine Pitrou in branch '3.3': Issue #17645: convert an assert() into a proper exception in _Py_Mangle(). http://hg.python.org/cpython/rev/72f0fd0c4d90 New changeset 6e7c6c06f3ba by Antoine Pitrou in branch 'default': Issue #17645:

[issue17645] assert fails in _Py_Mangle

2013-04-06 Thread Armin Rigo
Armin Rigo added the comment: Modified the example to run in only 1+GB of RAM, so that it crashes also on 32-bit versions of the Python 2.7 interpreter in Windows (the most common around, I suppose). -- Added file: http://bugs.python.org/file29689/mem2x.py

[issue17645] assert fails in _Py_Mangle

2013-04-06 Thread Armin Rigo
Changes by Armin Rigo : -- components: +Interpreter Core type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue17645] assert fails in _Py_Mangle

2013-04-06 Thread Armin Rigo
New submission from Armin Rigo: Run this example on a 32-bit machine with more than 2GB of addressable RAM (e.g. by default, more or less anything but Windows). On Python 2.7 it raises "SystemError: Negative size passed to PyString_FromStringAndSize". On a debug version, it causes an assert i