Skip to content

Unable to Obtain Current Stack Trace without a Trap #5339

@jtenner

Description

@jtenner

Hey! I am trying to obtain the current stack trace without invoking a panic, inside a linked function.

// this is awesome!
let backtrace = Backtrace::new();

I can access the stack frames using Backtrace::new() but I can't really do anything with it because all the functions that translate these into function names and strings are pub(crate) and internal to wasmtime.

Is there perhaps a safe way to obtain the current stack trace without calling a wasm function that executes an unreachable() instruction?

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