[issue32421] Keeping an exception in cache can segfault the interpreter

Julien Palard report at bugs.python.org
Tue Dec 26 06:26:31 EST 2017


Julien Palard <julien+python at palard.fr> added the comment:

Tested with:

    @memoize()
    def foo(x):
        raise Exception("From foo")


    for _ ∈ range(5):
        try:
            foo(42)
        except Exception as err:
            print(err)

using a python 3.5.4, 3.6.4, and master(13a6c09), and was unable to reproduce it, which version of Python are you using? How are you reproducing it?

----------
nosy: +mdk

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


More information about the Python-bugs-list mailing list