[issue43185] AssertRaises() causes core dump in handling recursion

2021-11-19 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> out of date stage: -> resolved status: open -> closed superseder: -> Cannot Recover From StackOverflow in 3.9 Tests ___ Python tracker

[issue43185] AssertRaises() causes core dump in handling recursion

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: #43186, #43187 also have recursive code that fails in 3.9 and recovers in 3.10. Am closing them in favor of this. Also suspect #43188, #43189, #43190 are duplicates. Yang, recheck after Mark does the backport here. --

[issue43185] AssertRaises() causes core dump in handling recursion

2021-02-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg386896 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43185] AssertRaises() causes core dump in handling recursion

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: #43185 has other recursive code that has a 'fatal Python error' in 3.9 and recovers in 3.10. Am closing it in favor of this. -- nosy: +terry.reedy ___ Python tracker _

[issue43185] AssertRaises() causes core dump in handling recursion

2021-02-10 Thread Mark Shannon
Change by Mark Shannon : -- assignee: -> Mark.Shannon components: +Interpreter Core -Library (Lib) versions: -Python 3.10 ___ Python tracker ___ _

[issue43185] AssertRaises() causes core dump in handling recursion

2021-02-10 Thread Mark Shannon
Mark Shannon added the comment: I think this was fixed by https://github.com/python/cpython/pull/23568 The root cause seems to be the same as #42500, so I'm going to backport https://github.com/python/cpython/pull/23568 to 3.9 -- ___ Python tracke

[issue43185] AssertRaises() causes core dump in handling recursion

2021-02-10 Thread Irit Katriel
Irit Katriel added the comment: Yang - no secret really, just trial and error. Mark - right I wasn't on master, sorry. -- ___ Python tracker ___ __

[issue43185] AssertRaises() causes core dump in handling recursion

2021-02-10 Thread Mark Shannon
Mark Shannon added the comment: 3.9 crashes. On master, I'm not seeing a crash, just a RecursionError. >>> import unittest >>> >>> def f(): ... raise TypeError ... >>> class TestAudioop(unittest.TestCase): ... def test_invalid_adpcm_state(self): ... self.assertRaises(TypeErr

[issue43185] AssertRaises() causes core dump in handling recursion

2021-02-10 Thread Yang Feng
Yang Feng added the comment: Could you please tell me your secret method of getting the minimal script? I will try to provide minimal ones in our following work. -- ___ Python tracker ___

[issue43185] AssertRaises() causes core dump in handling recursion

2021-02-10 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue43185] AssertRaises() causes core dump in handling recursion

2021-02-10 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on master as well. Simplified script: -- import unittest def f(): raise TypeError class TestAudioop(unittest.TestCase): def test_invalid_adpcm_state(self): self.assertRaises(TypeError, f)

[issue43185] AssertRaises() causes core dump in handling recursion

2021-02-10 Thread Yang Feng
New submission from Yang Feng : Seeing the following program, in the second assertRaises(), function "test_invalid_adpcm_state()" is recursively called. Then a fatal Python error shows up and the Python interpreter crashes. ++ import unittest import audio