Skip to content

Backtracing pretty print regression? #64507

Description

@steveklabnik

I was investigating some backtracing stuff, and I noticed that backtraces look like this:

stack backtrace:
   0: backtrace::backtrace::trace_unsynchronized
             at C:\Users\VssAdministrator\.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.37\src\backtrace\mod.rs:66
   1: std::sys_common::backtrace::_print_fmt
             at /rustc/96d07e0ac9f0c56b95a2561c6cedac0b23a5d2a3\/src\libstd\sys_common\backtrace.rs:77
   2: std::sys_common::backtrace::_print::{{impl}}::fmt
             at /rustc/96d07e0ac9f0c56b95a2561c6cedac0b23a5d2a3\/src\libstd\sys_common\backtrace.rs:61
   3: core::fmt::write
             at /rustc/96d07e0ac9f0c56b95a2561c6cedac0b23a5d2a3\/src\libcore\fmt\mod.rs:1030

Now, they used to look like the mingw target:

   0: backtrace::backtrace::dbghelp::trace
             at C:\Users\VssAdministrator\.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.29\src\backtrace/dbghelp.rs:90
   1: backtrace::backtrace::trace_unsynchronized
             at C:\Users\VssAdministrator\.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.29\src\backtrace/mod.rs:66
   2: std::sys_common::backtrace::_print
             at src\libstd\sys_common/backtrace.rs:47
   3: std::sys_common::backtrace::print
             at src\libstd\sys_common/backtrace.rs:36

Note the lines from std; they're not showing the full path. There are still details wrong (using both \ and / for example) but I think this is a regression in pretty-printing? It's also not clear to me why the backtrace crate's full path is in there, but libstd is the nicer format.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)C-bugCategory: This is a bug.O-windows-msvcToolchain: MSVC, Operating system: WindowsT-libs-api[DEPRECATED; DO NOT USE]

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions