`tests/debuginfo/pretty-std.rs` fails locally on Windows MSVC (cdb)
Open
Nobody has claimed this yet.
A-debuggers-cdb
A-debuginfo
A-testsuite
C-bug
E-needs-investigation
O-windows-msvc
T-compiler
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
- cdb version:
Microsoft (R) Windows Debugger Version 10.0.26100.1742 AMD64
This test is failing locally for me due to
error: check directive(s) from `X:\repos\rust\tests\debuginfo\pretty-std.rs` not found in debugger output. errors:
(pretty-std.rs:114) `os_string : "IAMA OS string [...]" [Type: std::ffi::os_str::OsString]`
(pretty-std.rs:116) ` [chars] : "IAMA OS string [...]"`
The actual cdb output is
0:000> dx os_string
os_string : "IAMA OS string 😃" [Type: std::ffi::os_str::OsString [<Raw View>] [Type: std::ffi::os_str::OsString]
[chars] : "IAMA OS string 😃0:000> dx some
some : Some [Type: enum2$<core::option::Option<i16> >]
[<Raw View>] [Type: enum2$<core::option::Option<i16> >]
[+0x002] __0 : 8 [Type: short]
(Hm, that seems to be missing a newline in between?)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with tests/debuginfo/pretty-std.rs, especially the check directives at lines 114 and 116, and reproduce the failure using Windows MSVC with the reported cdb version. Compare the directives with the shown debugger output, including the apparent missing newline. Done means the test's cdb output is handled correctly and the check directives pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 63/100