Skip to content

Signal safe demangling #221

Open
Open
@tmandry

Description

@tmandry

It would be very useful if we could use cpp_demangle in signal handlers, where allocation is not allowed, for handling things like segfaults and aborts in C++ code. This is usually achieved by printing demangled text directly to stderr.

Given that the crate requires alloc today, I assume this is not currently supported. Is adding support a possibility?

EDIT: Also see discussion in rust-lang/rust#72981 (comment)

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