[issue18469] PyStructSequence does not handle exceptions correctly

2013-07-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset af18829a7754 by Victor Stinner in branch 'default': Close #18469: Replace PyDict_GetItemString() with _PyDict_GetItemId() in structseq.c http://hg.python.org/cpython/rev/af18829a7754 -- nosy: +python-dev resolution: -> fixed stage: -> com

[issue18469] PyStructSequence does not handle exceptions correctly

2013-07-15 Thread STINNER Victor
STINNER Victor added the comment: This issue is common in test_datetime and test_import tests using failmalloc, especially if _PyErr_BadInternalCall() fails immedialy with an assertion error. -- ___ Python tracker

[issue18469] PyStructSequence does not handle exceptions correctly

2013-07-15 Thread STINNER Victor
New submission from STINNER Victor: Using pyfailmalloc (*) (see issue #18408), I found bugs in the PyStructSequence API. The following macros in Objects/structseq.c does not check for exceptions: #define VISIBLE_SIZE(op) Py_SIZE(op) #define VISIBLE_SIZE_TP(tp) PyLong_AsLong( \