Skip to content

[Bug: Monitor] Unwinding into C is undefined behavior #36

@abonander

Description

@abonander

Currently if we panic in callbacks or in the FFI glue generated for each callback impl, that can cause undefined behaviour as the stack will unwind into C code. It doesn't look like we have a problem right now as panicking works just fine, but once thread::catch_panic() is stabilized (planned for 1.1 stable), we should probably try to catch panics in the FFI glue and safely exit the IUP event loop before re-panicking (or should we prefer to abort?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions