[issue42827] Multiline eval with assignment to function call segfaults

2021-01-04 Thread STINNER Victor
STINNER Victor added the comment: Reproducer as a single line: compile("[file for str(file) in []\n]", "string", "exec") -- components: +Interpreter Core keywords: +3.9regression nosy: +lys.nikolaou, vstinner versions: +Python 3.9 ___ Python tracke

[issue42827] Multiline eval with assignment to function call segfaults

2021-01-04 Thread Julien Palard
New submission from Julien Palard : 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)' fai