[New-bugs-announce] [issue42827] Multiline eval with assignment to function call segfaults
Julien Palard
report at bugs.python.org
Mon Jan 4 15:48:09 EST 2021
New submission from Julien Palard <julien+python at palard.fr>:
Tested in 3.9.0 and master (127dde5916):
$ cat test.py
eval(
"""[file for str(file) in []
]
"""
)
$ ./python test.py
python: Parser/pegen.c:149: byte_offset_to_character_offset: Assertion `col_offset >= 0 && (unsigned long)col_offset <= strlen(str)' failed.
Fatal Python error: Aborted
Current thread 0x00007f6454cfe280 (most recent call first):
File "/home/mdk/clones/python/cpython/test.py", line 1 in <module>
Aborted (core dumped)
(Adding Guido and Pablo to nosy as, IIRC, you're interested in parser things :))
----------
messages: 384348
nosy: gvanrossum, mdk, pablogsal
priority: normal
severity: normal
status: open
title: Multiline eval with assignment to function call segfaults
type: crash
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42827>
_______________________________________
More information about the New-bugs-announce
mailing list