[New-bugs-announce] [issue39091] CPython Segfault in 5 lines of code

Sebastian Krause report at bugs.python.org
Wed Dec 18 13:45:15 EST 2019


New submission from Sebastian Krause <sebastian at realpath.org>:

The following lines trigger a segmentation fault:

class E(BaseException):
    def __new__(cls, *args, **kwargs):
        return cls
def a(): yield
a().throw(E)

Source with a bit more explanation: https://gist.github.com/coolreader18/6dbe0be2ae2192e90e1a809f1624c694 (I'm not the author of that gist, just reporting it here).

----------
components: Interpreter Core
messages: 358639
nosy: skrause
priority: normal
severity: normal
status: open
title: CPython Segfault in 5 lines of code
type: crash
versions: Python 3.6, Python 3.7, Python 3.8

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


More information about the New-bugs-announce mailing list