[issue42057] pytest case which catch exceptions become segfault

2020-10-19 Thread Inada Naoki
Inada Naoki added the comment: I confirmed fix42057.patch fix the assertion failure. But I don't know where and how to write test yet. -- keywords: +patch Added file: https://bugs.python.org/file49527/fix42057.patch ___ Python tracker

[issue42057] pytest case which catch exceptions become segfault

2020-10-19 Thread Inada Naoki
Inada Naoki added the comment: I confirmed the issue. The simple version of the reproducer is: ``` def callee(): raise Exception def caller(): try: callee() except Exception or Exception: pass caller() ``` I can see assertion failure consisntently, when I use pyt

[issue42057] pytest case which catch exceptions become segfault

2020-10-19 Thread Mark Shannon
Mark Shannon added the comment: The test example has no reference to pytest in it. How are you running it? Can you produce a segmentation fault when run without pytest? -- ___ Python tracker ___

[issue42057] pytest case which catch exceptions become segfault

2020-10-17 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue42057] pytest case which catch exceptions become segfault

2020-10-16 Thread Hiroshi Miura
Hiroshi Miura added the comment: A test code does not always reproduce the issue. Please try it in several times. It seems to be happened when multiple threads try execute a same function which produces an exception, and both callers try to catch the exception at the same time. --

[issue42057] pytest case which catch exceptions become segfault

2020-10-16 Thread Hiroshi Miura
Hiroshi Miura added the comment: FYI: A following commit fixes the issue in 3.10 development branch. 6e8128f02e ("bpo-41323: Perform 'peephole' optimizations directly on the CFG. (GH-21517)", 2020-07-30) -- nosy: +Mark.Shannon ___ Python tracker

[issue42057] pytest case which catch exceptions become segfault

2020-10-16 Thread Hiroshi Miura
Hiroshi Miura added the comment: Here is a result of running pytest on python 3.9.0 with gdb. test session starts platform linux -- Python 3.9.0, pytest-4.6.9, py-1.8.1, pluggy-0.13.0 roo

[issue42057] pytest case which catch exceptions become segfault

2020-10-16 Thread Hiroshi Miura
Change by Hiroshi Miura : Added file: https://bugs.python.org/file49523/gdb_backtrace.txt ___ Python tracker ___ ___ Python-bugs-list mailin

[issue42057] pytest case which catch exceptions become segfault

2020-10-16 Thread Hiroshi Miura
Change by Hiroshi Miura : Added file: https://bugs.python.org/file49522/py_stacktrace.txt ___ Python tracker ___ ___ Python-bugs-list mailin

[issue42057] pytest case which catch exceptions become segfault

2020-10-16 Thread Hiroshi Miura
New submission from Hiroshi Miura : I've observed that pytest becomes segmentation fault on python 3.9.0 with attached case. I've tested the case with several python versions; python 3.9.0a2 - good python 3.9.0a3, 3.9.0-final - bad python 3.10.0a1 - good - OS: Mint Linux 20, Linux kerne