Skip to content

LLDB tests fail with windows-gnu #77744

Open
@mati865

Description

@mati865

I tried this code:

./x.py test src/test/debuginfo/ --stage 2

I expected to see this happen: Passing tests.

Instead, this happened: 59 tests failed, they all contain debuginfo-lldb.

Meta

rustc --version --verbose:

rustc 1.49.0-dev
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-pc-windows-gnu
release: 1.49.0-dev
LLVM version: 11.0
Example of the failure:

---- [debuginfo-lldb] debuginfo\borrowed-basic.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1000
NOTE: compiletest thinks it is using LLDB without native rust support

error: line not found in debugger output: [...]$0 = true
status: exit code: 0
command: "D:/msys64/mingw64/bin/python.exe" "D:\\Projekty\\rust\\src/etc/lldb_batchmode.py" "D:\\Projekty\\rust\\build\\x86_64-pc-windows-gnu\\test\\debuginfo\\borrowed-basic.lldb\\a.exe" "D:\\Projekty\\rust\\build\\x86_64-pc-windows-gnu\\test\\debuginfo\\borrowed-basic.lldb\\borrowed-basic.debugger.script"
stdout:
------------------------------------------
LLDB batch-mode script
----------------------
Debugger commands script is 'D:\Projekty\rust\build\x86_64-pc-windows-gnu\test\debuginfo\borrowed-basic.lldb\borrowed-basic.debugger.script'.
Target executable is 'D:\Projekty\rust\build\x86_64-pc-windows-gnu\test\debuginfo\borrowed-basic.lldb\a.exe'.
Current working directory is 'D:/Projekty/rust'
Creating a target for 'D:\Projekty\rust\build\x86_64-pc-windows-gnu\test\debuginfo\borrowed-basic.lldb\a.exe'
settings set auto-confirm true

version
lldb version 10.0.1 clang revision 94b687508346d10cec7e8c769785f73da18b4e54 llvm revision 94b687508346d10cec7e8c769785f73da18b4e54
command script import D:\Projekty\rust\./src/etc/lldb_lookup.py
type synthetic add -l lldb_lookup.synthetic_lookup -x '.*' --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h '^(alloc::([a-z_]+::)+)String$' --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h '^&str$' --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h '^&\[.+\]$' --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h '^(std::ffi::([a-z_]+::)+)OsString$' --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h '^(alloc::([a-z_]+::)+)Vec<.+>$' --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h '^(alloc::([a-z_]+::)+)VecDeque<.+>$' --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h '^(alloc::([a-z_]+::)+)BTreeSet<.+>$' --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h '^(alloc::([a-z_]+::)+)BTreeMap<.+>$' --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h '^(std::collections::([a-z_]+::)+)HashMap<.+>$' --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h '^(std::collections::([a-z_]+::)+)HashSet<.+>$' --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h '^(alloc::([a-z_]+::)+)Rc<.+>$' --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h '^(alloc::([a-z_]+::)+)Arc<.+>$' --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h '^(core::([a-z_]+::)+)Cell<.+>$' --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h '^(core::([a-z_]+::)+)Ref<.+>$' --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h '^(core::([a-z_]+::)+)RefMut<.+>$' --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h '^(core::([a-z_]+::)+)RefCell<.+>$' --category Rust
type category enable Rust

breakpoint set --file 'borrowed-basic.rs' --line 162
Breakpoint 1: where = a.exe`borrowed_basic::main::h04d20991bc34b178 + 303 at borrowed-basic.rs:162:5, address = 0x000000014000174f
Error while trying to register breakpoint callback, id = 1
run
error: process launch failed: unknown error

print *bool_ref
error: <user expression 0>:1:2: use of undeclared identifier 'bool_ref'
*bool_ref
 ^

print *int_ref
error: <user expression 1>:1:2: use of undeclared identifier 'int_ref'
*int_ref
 ^

print *i8_ref
error: <user expression 2>:1:2: use of undeclared identifier 'i8_ref'
*i8_ref
 ^

print *i16_ref
error: <user expression 3>:1:2: use of undeclared identifier 'i16_ref'
*i16_ref
 ^

print *i32_ref
error: <user expression 4>:1:2: use of undeclared identifier 'i32_ref'
*i32_ref
 ^

print *i64_ref
error: <user expression 5>:1:2: use of undeclared identifier 'i64_ref'
*i64_ref
 ^

print *uint_ref
error: <user expression 6>:1:2: use of undeclared identifier 'uint_ref'
*uint_ref
 ^

print *u8_ref
error: <user expression 7>:1:2: use of undeclared identifier 'u8_ref'
*u8_ref
 ^

print *u16_ref
error: <user expression 8>:1:2: use of undeclared identifier 'u16_ref'
*u16_ref
 ^

print *u32_ref
error: <user expression 9>:1:2: use of undeclared identifier 'u32_ref'
*u32_ref
 ^

print *u64_ref
error: <user expression 10>:1:2: use of undeclared identifier 'u64_ref'
*u64_ref
 ^

print *f32_ref
error: <user expression 11>:1:2: use of undeclared identifier 'f32_ref'
*f32_ref
 ^

print *f64_ref
error: <user expression 12>:1:2: use of undeclared identifier 'f64_ref'
*f64_ref
 ^

quit


------------------------------------------
stderr:
------------------------------------------

------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)A-testsuiteArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.E-needs-investigationCall for partcipation: This issues needs some investigation to determine current statusO-windows-gnuToolchain: GNU, Operating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions