[issue40555] pegen (PEP 617): bug in error handling
STINNER Victor
report at bugs.python.org
Thu May 7 19:48:56 EDT 2020
New submission from STINNER Victor <vstinner at python.org>:
autopep8 test suite does crash on Python 3.9.0a6. The bug can be reproduced with:
Python 3.9.0a6+ (heads/master:b7a78ca74a, May 8 2020, 01:46:01)
[GCC 10.0.1 20200430 (Red Hat 10.0.1-0.14)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> compile('"\\xhh" \\', '<string>', 'exec', dont_inherit=True)
python: Objects/typeobject.c:984: type_call: Assertion `!_PyErr_Occurred(tstate)' failed.
Abandon (core dumped)
It seems like p->error_condition should be checked more often in Parser/pegen/parse.c.
----------
components: Interpreter Core
messages: 368391
nosy: gvanrossum, lys.nikolaou, pablogsal, vstinner
priority: normal
severity: normal
status: open
title: pegen (PEP 617): bug in error handling
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40555>
_______________________________________
More information about the Python-bugs-list
mailing list