Skip to content

Stack traces / backtraces in Windows show everything in "main" #20351

Closed
@sivadeilra

Description

@sivadeilra

When RUST_BACKTRACE=1 is set and a panic occurs on Windows, the stack trace shows everything in main. Example:

thread '<main>' panicked at 'assertion failed: *start <= *end', C:\bot\slave\nightly-win-64\build\src\libcore\slice.rs:459
stack backtrace:
   1:           0x493d28 - main
   2:           0x4a6080 - main
   3:           0x42d718 - main
   4:           0x42dc0c - main
   5:           0x4a587e - main
   6:           0x4bb4bd - main
   7:           0x4b946f - main
   8:           0x40b58f - main
   9:           0x403af7
  10:           0x4a781c - main
  11:           0x4a77f9 - main
  12:           0x4a688a - main
  13:           0x4013b5
  14:           0x4014e8
  15:     0x7fff44c116ad - BaseThreadInitThunk

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)O-windowsOperating system: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions