# Crash report ### What happened? ```pycon >>> import _testcapi >>> _testcapi.Py_CompileStringExFlags(b"def a(f=8,#type: \x80\n\x80", "<test>", 256, 0x0800 | 0x1000) python: Objects/typeobject.c:2440: type_call: Assertion `!_PyErr_Occurred(tstate)' failed. Aborted (core dumped) ./python ``` In `_PyPegen_name_default_pair`, we call: https://github.com/python/cpython/blob/a95ee3a21d97afdbe6bd2ce4cd8343a36cd13b02/Parser/action_helpers.c#L437 but don't check if it failed (and returned `NULL`). ### CPython versions tested on: CPython main branch ### Operating systems tested on: _No response_ ### Output from running 'python -VV' on the command line: _No response_ <!-- gh-linked-prs --> ### Linked PRs * gh-148158 * gh-148162 * gh-148163 <!-- /gh-linked-prs -->
Crash report
What happened?
In
_PyPegen_name_default_pair, we call:cpython/Parser/action_helpers.c
Line 437 in a95ee3a
but don't check if it failed (and returned
NULL).CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Output from running 'python -VV' on the command line:
No response
Linked PRs
_PyPegen_add_type_comment_to_argfail in_PyPegen_name_default_pair#148158_PyPegen_add_type_comment_to_argfail in_PyPegen_name_default_pair(GH-148158) #148162_PyPegen_add_type_comment_to_argfail in_PyPegen_name_default_pair(GH-148158) #148163