[issue32368] Segfault when compiling many conditional expressions

2018-02-06 Thread Stefan Nordhausen
Stefan Nordhausen added the comment: The fix for https://bugs.python.org/issue31113 also fixed this issue. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue32368] Segfault when compiling many conditional expressions

2017-12-19 Thread Stefan Nordhausen
Stefan Nordhausen added the comment: I tried out PR 3015 of Serhiy and this fixes the segfaults. So it seems to be a duplicate. As for backporting the fix: Is this a 'reliable' segfault (i.e. it always segfaults when the limit is exceeded) or could there be

[issue32368] Segfault when compiling many conditional expressions

2017-12-18 Thread Christian Heimes
Christian Heimes added the comment: I think so, too. -- ___ Python tracker ___ ___

[issue32368] Segfault when compiling many conditional expressions

2017-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Duplicate of issue31113? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue32368] Segfault when compiling many conditional expressions

2017-12-18 Thread Christian Heimes
Christian Heimes added the comment: Looks like 174,565 stack frames are a bit too much :) (gdb) bt #0 dfs (c=0x7fffcbe0, b=0x7fffea076d60, a=0x7fffcb50) at Python/compile.c:4903 #1 0x004e47a2 in dfs (c=0x7fffcbe0, b=0x7fffea076db0, a=0x7fffcb50) at

[issue32368] Segfault when compiling many conditional expressions

2017-12-18 Thread Stefan Nordhausen
New submission from Stefan Nordhausen : 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" * 20 compile(code, "foobar", "exec") This issue was originally found because