Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLDB tests fail with windows-gnu #77744

Open
mati865 opened this issue Oct 9, 2020 · 0 comments
Open

LLDB tests fail with windows-gnu #77744

mati865 opened this issue Oct 9, 2020 · 0 comments
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) A-testsuite Area: The testsuite used to check the correctness of rustc C-bug Category: This is a bug. E-needs-investigation Call for partcipation: This issues needs some investigation to determine current status O-windows-gnu Toolchain: GNU, Operating system: Windows T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@mati865
Copy link
Contributor

mati865 commented Oct 9, 2020

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:
------------------------------------------

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

@mati865 mati865 added the C-bug Category: This is a bug. label Oct 9, 2020
@jonas-schievink jonas-schievink added A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) A-testsuite Area: The testsuite used to check the correctness of rustc O-windows-gnu Toolchain: GNU, Operating system: Windows labels Oct 9, 2020
@Noratrieb Noratrieb added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Apr 5, 2023
@jieyouxu jieyouxu added the E-needs-investigation Call for partcipation: This issues needs some investigation to determine current status label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) A-testsuite Area: The testsuite used to check the correctness of rustc C-bug Category: This is a bug. E-needs-investigation Call for partcipation: This issues needs some investigation to determine current status O-windows-gnu Toolchain: GNU, Operating system: Windows T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants