Skip to content

Raising a user-defined class from itself causes interpreter crashing #2779

@xiaxinmeng

Description

@xiaxinmeng

In the following example, we define a class error, and instance it. When we execute raise e from e, Rust Python crashes.

test.py

class Error(Exception):
	pass

e = Error()
raise e from e

Actual output:

Segmentation fault (core dumped)

System:

Ubuntu 16.04
Rust Python 0.1.2 interpreter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions