rust-lang / rust-lang/rust

`tests/debuginfo/function-call.rs` + gdb is flaky

Open
#159,073 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-debuggers A-debuggers-gdb A-testsuite C-bug I-flaky-test T-compiler
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

See:

PR CI failure comment (web) (plain enhanced) CPU model
#158931 https://github.com/rust-lang/rust/pull/158931#issuecomment-4928017274 https://github.com/rust-lang/rust/actions/runs/29035046402/job/86177925841 https://triage.rust-lang.org/gha-logs/rust-lang/rust/86177925841 INTEL(R) XEON(R) PLATINUM 8573C
#159047 https://github.com/rust-lang/rust/pull/159047#issuecomment-4932720064 https://github.com/rust-lang/rust/actions/runs/29071035393/job/86292465103 https://triage.rust-lang.org/gha-logs/rust-lang/rust/86292465103 INTEL(R) XEON(R) PLATINUM 8573C
#159293 https://github.com/rust-lang/rust/pull/159293#issuecomment-4973707752 https://github.com/rust-lang/rust/actions/runs/29362295249/job/87185362318 https://triage.rust-lang.org/gha-logs/rust-lang/rust/87185362318 INTEL(R) XEON(R) PLATINUM 8573C
#159276 https://github.com/rust-lang/rust/pull/159276#issuecomment-4967833600 https://github.com/rust-lang/rust/actions/runs/29320620909/job/87045006147 https://triage.rust-lang.org/gha-logs/rust-lang/rust/87045006147 Intel(R) Xeon(R) 6973P-C
#159072 https://github.com/rust-lang/rust/pull/159072#issuecomment-4967314389 https://github.com/rust-lang/rust/actions/runs/29316199333/job/87030877498 https://triage.rust-lang.org/gha-logs/rust-lang/rust/87030877498 INTEL(R) XEON(R) PLATINUM 8573C
#159222 https://github.com/rust-lang/rust/pull/159222#issuecomment-4964083208 https://github.com/rust-lang/rust/actions/runs/29292232498/job/86958237691 https://triage.rust-lang.org/gha-logs/rust-lang/rust/86958237691 INTEL(R) XEON(R) PLATINUM 8573C
#159170 https://github.com/rust-lang/rust/pull/159170#issuecomment-4950674865 https://github.com/rust-lang/rust/actions/runs/29185777587/job/86631555877 https://triage.rust-lang.org/gha-logs/rust-lang/rust/86631555877 INTEL(R) XEON(R) PLATINUM 8573C
#159132 https://github.com/rust-lang/rust/pull/159132#issuecomment-4947468745 https://github.com/rust-lang/rust/actions/runs/29156939126/job/86555558952 https://triage.rust-lang.org/gha-logs/rust-lang/rust/86555558952 INTEL(R) XEON(R) PLATINUM 8573C
#159148 https://github.com/rust-lang/rust/pull/159148#issuecomment-4949308978 https://github.com/rust-lang/rust/actions/runs/29172128652/job/86594996763 https://triage.rust-lang.org/gha-logs/rust-lang/rust/86594996763 INTEL(R) XEON(R) PLATINUM 8573C
#159095 https://github.com/rust-lang/rust/pull/159095#issuecomment-4938980383 https://github.com/rust-lang/rust/actions/runs/29115859212/job/86439098730 https://triage.rust-lang.org/gha-logs/rust-lang/rust/86439098730 INTEL(R) XEON(R) PLATINUM 8573C
#157690 https://github.com/rust-lang/rust/pull/157690#issuecomment-4926232740 https://github.com/rust-lang/rust/actions/runs/29021418152/job/86129496546 https://triage.rust-lang.org/gha-logs/rust-lang/rust/86129496546 INTEL(R) XEON(R) PLATINUM 8573C
#158141 https://github.com/rust-lang/rust/pull/158141#issuecomment-4757730372 https://github.com/rust-lang/rust/actions/runs/27869740006/job/82479691238 https://triage.rust-lang.org/gha-logs/rust-lang/rust/82479691238 Intel(R) Xeon(R) 6973P-C
#158239 https://github.com/rust-lang/rust/pull/158239#issuecomment-4789752508 https://github.com/rust-lang/rust/actions/runs/28097621973/job/83191135546 https://triage.rust-lang.org/gha-logs/rust-lang/rust/83191135546 INTEL(R) XEON(R) PLATINUM 8573C
#158141 https://github.com/rust-lang/rust/pull/158141#issuecomment-4757730372 https://github.com/rust-lang/rust/actions/runs/27869740006/job/82479691238 https://triage.rust-lang.org/gha-logs/rust-lang/rust/82479691238 Intel(R) Xeon(R) 6973P-C
#158524 https://github.com/rust-lang/rust/pull/158524#issuecomment-4826599783 https://github.com/rust-lang/rust/actions/runs/28325715773/job/83915335941 https://triage.rust-lang.org/gha-logs/rust-lang/rust/83915335941 INTEL(R) XEON(R) PLATINUM 8573C
#158335 https://github.com/rust-lang/rust/pull/158335#issuecomment-4784998736 https://github.com/rust-lang/rust/actions/runs/28065824248/job/83089884985 https://triage.rust-lang.org/gha-logs/rust-lang/rust/83089884985 INTEL(R) XEON(R) PLATINUM 8573C
#158720 https://github.com/rust-lang/rust/pull/158720#issuecomment-4968504239 https://github.com/rust-lang/rust/actions/runs/29325361078/job/87060438014 https://triage.rust-lang.org/gha-logs/rust-lang/rust/87060438014 Intel(R) Xeon(R) 6973P-C
#158871 https://github.com/rust-lang/rust/pull/158871#issuecomment-4916869119 https://github.com/rust-lang/rust/actions/runs/28954719693/job/85910877152 https://triage.rust-lang.org/gha-logs/rust-lang/rust/85910877152 INTEL(R) XEON(R) PLATINUM 8573C
#158899 https://github.com/rust-lang/rust/pull/158899#issuecomment-4930959469 https://github.com/rust-lang/rust/actions/runs/29058702880/job/86255757993 https://triage.rust-lang.org/gha-logs/rust-lang/rust/86255757993 INTEL(R) XEON(R) PLATINUM 8573C
#158931 https://github.com/rust-lang/rust/pull/158931#issuecomment-4928017274 https://github.com/rust-lang/rust/actions/runs/29035046402/job/86177925841 https://triage.rust-lang.org/gha-logs/rust-lang/rust/86177925841 INTEL(R) XEON(R) PLATINUM 8573C
#158945 https://github.com/rust-lang/rust/pull/158945#issuecomment-4940698704 https://github.com/rust-lang/rust/actions/runs/29130006949/job/86483485337 https://triage.rust-lang.org/gha-logs/rust-lang/rust/86483485337 INTEL(R) XEON(R) PLATINUM 8573C
/checkout/obj/build/x86_64-unknown-linux-gnu/test/debuginfo/function-call.gdb/function-call.debugger.script:11: Error in sourced command file:
Couldn't write extended state status: Bad address.
Log
---- [debuginfo-gdb] tests/debuginfo/function-call.rs stdout ----
NOTE: compiletest thinks it is using GDB version 12001000
------gdb stdout------------------------------
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04.2) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Breakpoint 1 at 0x1b42: file /checkout/tests/debuginfo/function-call.rs, line 36.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Breakpoint 1, function_call::main () at /checkout/tests/debuginfo/function-call.rs:36
36	    zzz(); // #break
------gdb stderr------------------------------
/checkout/obj/build/x86_64-unknown-linux-gnu/test/debuginfo/function-call.gdb/function-call.debugger.script:11: Error in sourced command file:
Couldn't write extended state status: Bad address.
------------------------------------------
error: gdb failed to execute
status: exit status: 1
command: PYTHONPATH="/checkout/src/etc" "/usr/bin/gdb" "-quiet" "-batch" "-nx" "-command=/checkout/obj/build/x86_64-unknown-linux-gnu/test/debuginfo/function-call.gdb/function-call.debugger.script"
--- stdout -------------------------------
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04.2) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Breakpoint 1 at 0x1b42: file /checkout/tests/debuginfo/function-call.rs, line 36.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Breakpoint 1, function_call::main () at /checkout/tests/debuginfo/function-call.rs:36
36	    zzz(); // #break
------------------------------------------
--- stderr -------------------------------
/checkout/obj/build/x86_64-unknown-linux-gnu/test/debuginfo/function-call.gdb/function-call.debugger.script:11: Error in sourced command file:
Couldn't write extended state status: Bad address.
------------------------------------------
---- [debuginfo-gdb] tests/debuginfo/function-call.rs stdout end ----
failures:
    [debuginfo-gdb] tests/debuginfo/function-call.rs
test result: FAILED. 148 passed; 1 failed; 24 ignored; 0 measured; 0 filtered out; finished in 9.02s
Some tests failed in compiletest suite=debuginfo mode=debuginfo host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu
Bootstrap failed while executing `--stage 2 test`
Build completed unsuccessfully in 0:34:52

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with tests/debuginfo/function-call.rs and the generated function-call.debugger.script, especially line 11, then reproduce the debuginfo-gdb failure using the logged GDB command. Compare the listed CI failures and CPU models to determine the conditions behind “Couldn't write extended state status: Bad address”; done means the test no longer fails intermittently in the affected configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.