[New-bugs-announce] [issue32368] Segfault when compiling many conditional expressions

Stefan Nordhausen report at bugs.python.org
Mon Dec 18 11:29:24 EST 2017


New submission from Stefan Nordhausen <stefan.nordhausen at solarisbank.de>:

The following code reproducibly segfaults in version 2.7.13, 3.6.3 and the current git master (3.7.0a3+):


code = "42 if True else 43\n" * 200000
compile(code, "foobar", "exec")


This issue was originally found because the Jinja templating engine internally produces large tuples with many conditional expressions, thus triggering this bug (see https://github.com/pallets/jinja/issues/784 ).

----------
components: Interpreter Core
messages: 308573
nosy: snordhausen
priority: normal
severity: normal
status: open
title: Segfault when compiling many conditional expressions
type: crash
versions: Python 2.7, Python 3.6, Python 3.7

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


More information about the New-bugs-announce mailing list