[issue44719] Incorrect callable object crashes Python 3.11.0a0

Dennis Sweeney report at bugs.python.org
Fri Jul 23 14:57:03 EDT 2021


Dennis Sweeney <sweeney.dennis650 at gmail.com> added the comment:

### Simplified crasher

from weakref import ref

def f():
    ref(lambda: 0, [])
    f()

f()

########################


Running this in debug mode, I got a failed assertion at traceback.c,
line 746, `assert(source_line);`. 
If that assertion is commented out, a null pointer is dereferenced in
_PyPegen_byte_offset_to_character_offset()

----------
nosy: +Dennis Sweeney

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44719>
_______________________________________


More information about the Python-bugs-list mailing list