Skip to content

No namespaces in backtraces on windows #32481

Closed
@nikomatsakis

Description

@nikomatsakis

The src/test/run-pass/backtrace test exposed a difference in how windows backtraces handle namespacing. Here is what I wrote in a fixme:

    // FIXME(#32481)
    //
    // On windows, we read the function name from debuginfo using some
    // system APIs. For whatever reason, these APIs seem to use the
    // "name" field, which is only the "relative" name, not the full
    // name with namespace info, so we just see `foo` and not
    // `backtrace::foo` as we see on linux (which uses the linkage
    // name).

My hypothesis then is that backtraces on windows never show module information, only the name of the fn which failed. Perhaps @retep998 you can confirm?

cc @michaelwoerister @alexcrichton

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-windowsOperating system: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions