Skip to content

Add some track_caller info to precondition panics #129658

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

saethlin
Copy link
Member

r? @ghost

Thought of this while looking at #129642 (comment)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Aug 27, 2024
@rust-log-analyzer

This comment has been minimized.

@saethlin
Copy link
Member Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Aug 27, 2024
@bors
Copy link
Collaborator

bors commented Aug 27, 2024

⌛ Trying commit 18e2a95 with merge 7798f9b...

bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 27, 2024
Add some track_caller info to precondition panics

r? `@ghost`

Thought of this while looking at rust-lang#129642 (comment)
@bors
Copy link
Collaborator

bors commented Aug 27, 2024

☀️ Try build successful - checks-actions
Build commit: 7798f9b (7798f9b35d0cd727f26631c015620e3dfe62e1f6)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (7798f9b): comparison URL.

Overall result: no relevant changes - no action needed

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

@bors rollup=never
@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results (secondary -2.7%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-2.7% [-3.1%, -2.3%] 2
All ❌✅ (primary) - - 0

Cycles

This benchmark run did not return any relevant results for this metric.

Binary size

Results (primary 0.1%, secondary 0.1%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.1% [0.0%, 0.6%] 47
Regressions ❌
(secondary)
0.1% [0.0%, 0.4%] 35
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.1% [0.0%, 0.6%] 47

Bootstrap: 749.925s -> 752.783s (0.38%)
Artifact size: 338.74 MiB -> 338.79 MiB (0.02%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Aug 27, 2024
@saethlin
Copy link
Member Author

That looks possibly acceptable. Let's just see how bad this becomes?

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Aug 27, 2024
@bors
Copy link
Collaborator

bors commented Aug 27, 2024

⌛ Trying commit 197c7b3 with merge 0e77a71...

bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 27, 2024
Add some track_caller info to precondition panics

r? `@ghost`

Thought of this while looking at rust-lang#129642 (comment)
@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Collaborator

bors commented Aug 27, 2024

☀️ Try build successful - checks-actions
Build commit: 0e77a71 (0e77a71199b6b2f7fac064cdf0b55e84d7ccca61)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (0e77a71): comparison URL.

Overall result: ❌✅ regressions and improvements - ACTION NEEDED

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.2% [0.2%, 0.2%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.3% [-0.3%, -0.3%] 6
All ❌✅ (primary) 0.2% [0.2%, 0.2%] 1

Max RSS (memory usage)

This benchmark run did not return any relevant results for this metric.

Cycles

This benchmark run did not return any relevant results for this metric.

Binary size

Results (primary 0.3%, secondary 0.1%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.3% [0.0%, 1.4%] 65
Regressions ❌
(secondary)
0.1% [0.0%, 0.5%] 35
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.3% [0.0%, 1.4%] 65

Bootstrap: 749.925s -> 751.312s (0.18%)
Artifact size: 338.74 MiB -> 338.81 MiB (0.02%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Aug 27, 2024
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Collaborator

bors commented Jan 21, 2025

☔ The latest upstream changes (presumably #134286) made this pull request unmergeable. Please resolve the merge conflicts.

@bors
Copy link
Collaborator

bors commented Feb 3, 2025

☔ The latest upstream changes (presumably #136481) made this pull request unmergeable. Please resolve the merge conflicts.

@saethlin saethlin force-pushed the spare-a-crumb branch 2 times, most recently from 3b5907d to aef18dd Compare February 4, 2025 22:17
@bors
Copy link
Collaborator

bors commented Feb 14, 2025

☔ The latest upstream changes (presumably #134633) made this pull request unmergeable. Please resolve the merge conflicts.

@rust-log-analyzer

This comment has been minimized.

@saethlin
Copy link
Member Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Feb 14, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 14, 2025
Add some track_caller info to precondition panics

r? `@ghost`

Thought of this while looking at rust-lang#129642 (comment)
@bors
Copy link
Collaborator

bors commented Feb 14, 2025

⌛ Trying commit b45b561 with merge 16510aa...

@bors
Copy link
Collaborator

bors commented Feb 14, 2025

☀️ Try build successful - checks-actions
Build commit: 16510aa (16510aa153539b45d265e4c5030971d50eaa9b08)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (16510aa): comparison URL.

Overall result: ❌ regressions - please read the text below

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +perf-regression

Instruction count

This is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.

mean range count
Regressions ❌
(primary)
2.1% [0.2%, 7.4%] 4
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 2.1% [0.2%, 7.4%] 4

Max RSS (memory usage)

Results (primary 6.4%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
6.4% [3.1%, 9.8%] 2
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 6.4% [3.1%, 9.8%] 2

Cycles

Results (primary 9.7%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
9.7% [9.7%, 9.7%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 9.7% [9.7%, 9.7%] 1

Binary size

Results (primary 0.4%, secondary 0.2%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.4% [0.0%, 1.4%] 67
Regressions ❌
(secondary)
0.2% [0.0%, 0.6%] 31
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.4% [0.0%, 1.4%] 67

Bootstrap: 789.427s -> 790.091s (0.08%)
Artifact size: 347.75 MiB -> 347.78 MiB (0.01%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Feb 14, 2025
@bors
Copy link
Collaborator

bors commented Mar 15, 2025

☔ The latest upstream changes (presumably #138379) made this pull request unmergeable. Please resolve the merge conflicts.

@bors
Copy link
Collaborator

bors commented Apr 10, 2025

☔ The latest upstream changes (presumably #137412) made this pull request unmergeable. Please resolve the merge conflicts.

@bors
Copy link
Collaborator

bors commented Apr 24, 2025

☔ The latest upstream changes (presumably #140256) made this pull request unmergeable. Please resolve the merge conflicts.

@saethlin saethlin force-pushed the spare-a-crumb branch 2 times, most recently from cf2928e to 4d35e24 Compare April 25, 2025 22:37
@rust-log-analyzer
Copy link
Collaborator

The job x86_64-gnu-tools failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
tests/fail/function_calls/exported_symbol_bad_unwind2.rs (revision `definition`) ... FAILED
tests/fail/function_calls/exported_symbol_bad_unwind2.rs (revision `both`) ... FAILED

FAILED TEST: tests/fail/intrinsics/uninit_uninhabited_type.rs
command: MIRI_ENV_VAR_TEST="0" MIRI_TEMP="/tmp/miri-uitest-crWDme" RUST_BACKTRACE="1" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/miri" "--error-format=json" "--sysroot=/checkout/obj/build/x86_64-unknown-linux-gnu/miri-sysroot" "-Dwarnings" "-Dunused" "-Ainternal_features" "-Zui-testing" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools/miri_ui/0/tests/fail/intrinsics" "tests/fail/intrinsics/uninit_uninhabited_type.rs" "--edition" "2021"

error: actual output differed from expected
Execute `./miri test --bless` to update `tests/fail/intrinsics/uninit_uninhabited_type.stderr` to the actual output
--- tests/fail/intrinsics/uninit_uninhabited_type.stderr
+++ <stderr output>
 
-thread 'main' panicked at tests/fail/intrinsics/uninit_uninhabited_type.rs:LL:CC:
+thread 'main' panicked at RUSTLIB/core/src/panicking.rs:LL:CC:
 aborted execution: attempted to instantiate uninhabited type `!`
 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
... 12 lines skipped ...
    = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at RUSTLIB/std/src/sys/backtrace.rs:LL:CC
    = note: inside `std::panicking::begin_panic_handler` at RUSTLIB/std/src/panicking.rs:LL:CC
+   = note: inside `core::panicking::panic_nounwind` at RUSTLIB/core/src/panicking.rs:LL:CC
 note: inside `main`
   --> tests/fail/intrinsics/uninit_uninhabited_type.rs:LL:CC
... 6 lines skipped ...
---

thread 'main' panicked at /checkout/library/core/src/panicking.rs:218:5:
aborted execution: attempted to instantiate uninhabited type `!`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
note: in Miri, you may have to set `MIRIFLAGS=-Zmiri-env-forward=RUST_BACKTRACE` for the environment variable to have an effect
thread caused non-unwinding panic. aborting.
error: abnormal termination: the program aborted execution
##[error]  --> /checkout/library/std/src/sys/pal/unix/mod.rs:366:14
   |
LL |     unsafe { libc::abort() }
   |              ^^^^^^^^^^^^^ the program aborted execution
   |
   = note: BACKTRACE:
   = note: inside `std::sys::pal::unix::abort_internal` at /checkout/library/std/src/sys/pal/unix/mod.rs:366:14: 366:27
   = note: inside `std::panicking::rust_panic_with_hook` at /checkout/library/std/src/panicking.rs:855:9: 855:37
   = note: inside closure at /checkout/library/std/src/panicking.rs:699:13: 704:14
   = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at /checkout/library/std/src/sys/backtrace.rs:168:18: 168:21
   = note: inside `std::panicking::begin_panic_handler` at /checkout/library/std/src/panicking.rs:697:5: 713:7
   = note: inside `core::panicking::panic_nounwind` at /checkout/library/core/src/panicking.rs:218:5: 218:91
note: inside `main`
  --> tests/fail/intrinsics/uninit_uninhabited_type.rs:10:22
   |
LL |     let _ = unsafe { std::mem::uninitialized::<!>() };
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

error: aborting due to 1 previous error
---

thread 'main' panicked at /checkout/library/core/src/panicking.rs:218:5:
aborted execution: attempted to instantiate uninhabited type `!`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
note: in Miri, you may have to set `MIRIFLAGS=-Zmiri-env-forward=RUST_BACKTRACE` for the environment variable to have an effect
thread caused non-unwinding panic. aborting.
error: abnormal termination: the program aborted execution
##[error]  --> /checkout/library/std/src/sys/pal/unix/mod.rs:366:14
   |
LL |     unsafe { libc::abort() }
   |              ^^^^^^^^^^^^^ the program aborted execution
   |
   = note: BACKTRACE:
   = note: inside `std::sys::pal::unix::abort_internal` at /checkout/library/std/src/sys/pal/unix/mod.rs:366:14: 366:27
   = note: inside `std::panicking::rust_panic_with_hook` at /checkout/library/std/src/panicking.rs:855:9: 855:37
   = note: inside closure at /checkout/library/std/src/panicking.rs:699:13: 704:14
   = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at /checkout/library/std/src/sys/backtrace.rs:168:18: 168:21
   = note: inside `std::panicking::begin_panic_handler` at /checkout/library/std/src/panicking.rs:697:5: 713:7
   = note: inside `core::panicking::panic_nounwind` at /checkout/library/core/src/panicking.rs:218:5: 218:91
note: inside `main`
  --> tests/fail/intrinsics/uninit_uninhabited_type.rs:10:22
   |
LL |     let _ = unsafe { std::mem::uninitialized::<!>() };
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

error: aborting due to 1 previous error


full stdout:



FAILED TEST: tests/fail/intrinsics/zero_fn_ptr.rs
command: MIRI_ENV_VAR_TEST="0" MIRI_TEMP="/tmp/miri-uitest-crWDme" RUST_BACKTRACE="1" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/miri" "--error-format=json" "--sysroot=/checkout/obj/build/x86_64-unknown-linux-gnu/miri-sysroot" "-Dwarnings" "-Dunused" "-Ainternal_features" "-Zui-testing" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools/miri_ui/0/tests/fail/intrinsics" "tests/fail/intrinsics/zero_fn_ptr.rs" "--edition" "2021"

error: actual output differed from expected
Execute `./miri test --bless` to update `tests/fail/intrinsics/zero_fn_ptr.stderr` to the actual output
--- tests/fail/intrinsics/zero_fn_ptr.stderr
+++ <stderr output>
 
-thread 'main' panicked at tests/fail/intrinsics/zero_fn_ptr.rs:LL:CC:
+thread 'main' panicked at RUSTLIB/core/src/panicking.rs:LL:CC:
 aborted execution: attempted to zero-initialize type `fn()`, which is invalid
 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
... 12 lines skipped ...
    = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at RUSTLIB/std/src/sys/backtrace.rs:LL:CC
    = note: inside `std::panicking::begin_panic_handler` at RUSTLIB/std/src/panicking.rs:LL:CC
+   = note: inside `core::panicking::panic_nounwind` at RUSTLIB/core/src/panicking.rs:LL:CC
 note: inside `main`
   --> tests/fail/intrinsics/zero_fn_ptr.rs:LL:CC
... 6 lines skipped ...
---

thread 'main' panicked at /checkout/library/core/src/panicking.rs:218:5:
aborted execution: attempted to zero-initialize type `fn()`, which is invalid
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
note: in Miri, you may have to set `MIRIFLAGS=-Zmiri-env-forward=RUST_BACKTRACE` for the environment variable to have an effect
thread caused non-unwinding panic. aborting.
error: abnormal termination: the program aborted execution
##[error]  --> /checkout/library/std/src/sys/pal/unix/mod.rs:366:14
   |
LL |     unsafe { libc::abort() }
   |              ^^^^^^^^^^^^^ the program aborted execution
   |
   = note: BACKTRACE:
   = note: inside `std::sys::pal::unix::abort_internal` at /checkout/library/std/src/sys/pal/unix/mod.rs:366:14: 366:27
   = note: inside `std::panicking::rust_panic_with_hook` at /checkout/library/std/src/panicking.rs:855:9: 855:37
   = note: inside closure at /checkout/library/std/src/panicking.rs:699:13: 704:14
   = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at /checkout/library/std/src/sys/backtrace.rs:168:18: 168:21
   = note: inside `std::panicking::begin_panic_handler` at /checkout/library/std/src/panicking.rs:697:5: 713:7
   = note: inside `core::panicking::panic_nounwind` at /checkout/library/core/src/panicking.rs:218:5: 218:91
note: inside `main`
  --> tests/fail/intrinsics/zero_fn_ptr.rs:9:22
   |
LL |     let _ = unsafe { std::mem::zeroed::<fn()>() };
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^

note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

error: aborting due to 1 previous error
---

thread 'main' panicked at /checkout/library/core/src/panicking.rs:218:5:
aborted execution: attempted to zero-initialize type `fn()`, which is invalid
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
note: in Miri, you may have to set `MIRIFLAGS=-Zmiri-env-forward=RUST_BACKTRACE` for the environment variable to have an effect
thread caused non-unwinding panic. aborting.
error: abnormal termination: the program aborted execution
##[error]  --> /checkout/library/std/src/sys/pal/unix/mod.rs:366:14
   |
LL |     unsafe { libc::abort() }
   |              ^^^^^^^^^^^^^ the program aborted execution
   |
   = note: BACKTRACE:
   = note: inside `std::sys::pal::unix::abort_internal` at /checkout/library/std/src/sys/pal/unix/mod.rs:366:14: 366:27
   = note: inside `std::panicking::rust_panic_with_hook` at /checkout/library/std/src/panicking.rs:855:9: 855:37
   = note: inside closure at /checkout/library/std/src/panicking.rs:699:13: 704:14
   = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at /checkout/library/std/src/sys/backtrace.rs:168:18: 168:21
   = note: inside `std::panicking::begin_panic_handler` at /checkout/library/std/src/panicking.rs:697:5: 713:7
   = note: inside `core::panicking::panic_nounwind` at /checkout/library/core/src/panicking.rs:218:5: 218:91
note: inside `main`
  --> tests/fail/intrinsics/zero_fn_ptr.rs:9:22
   |
LL |     let _ = unsafe { std::mem::zeroed::<fn()>() };
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^

note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

error: aborting due to 1 previous error


full stdout:



FAILED TEST: tests/fail/terminate-terminator.rs
command: MIRI_ENV_VAR_TEST="0" MIRI_TEMP="/tmp/miri-uitest-crWDme" RUST_BACKTRACE="1" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/miri" "--error-format=json" "--sysroot=/checkout/obj/build/x86_64-unknown-linux-gnu/miri-sysroot" "-Dwarnings" "-Dunused" "-Ainternal_features" "-Zui-testing" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools/miri_ui/0/tests/fail" "tests/fail/terminate-terminator.rs" "-Zmir-opt-level=3" "-Zinline-mir-hint-threshold=1000" "--edition" "2021"

error: actual output differed from expected
Execute `./miri test --bless` to update `tests/fail/terminate-terminator.stderr` to the actual output
--- tests/fail/terminate-terminator.stderr
+++ <stderr output>
 warning: You have explicitly enabled MIR optimizations, overriding Miri's default which is to completely disable them. Any optimizations may hide UB that Miri would otherwise detect, and it is not necessarily possible to predict what kind of UB will be missed. If you are enabling optimizations to make Miri run faster, we advise using cfg(miri) to shrink your workload instead. The performance benefit of enabling MIR optimizations is usually marginal at best.
 
... 20 lines skipped ...
    = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at RUSTLIB/std/src/sys/backtrace.rs:LL:CC
    = note: inside `std::panicking::begin_panic_handler` at RUSTLIB/std/src/panicking.rs:LL:CC
+   = note: inside `core::panicking::panic_nounwind` at RUSTLIB/core/src/panicking.rs:LL:CC
    = note: inside `core::panicking::panic_cannot_unwind` at RUSTLIB/core/src/panicking.rs:LL:CC
 note: inside `has_cleanup`
... 20 lines skipped ...
 error: aborting due to 1 previous error; 1 warning emitted
 

Full unnormalized output:
warning: You have explicitly enabled MIR optimizations, overriding Miri's default which is to completely disable them. Any optimizations may hide UB that Miri would otherwise detect, and it is not necessarily possible to predict what kind of UB will be missed. If you are enabling optimizations to make Miri run faster, we advise using cfg(miri) to shrink your workload instead. The performance benefit of enabling MIR optimizations is usually marginal at best.


thread 'main' panicked at tests/fail/terminate-terminator.rs:19:5:
explicit panic
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
note: in Miri, you may have to set `MIRIFLAGS=-Zmiri-env-forward=RUST_BACKTRACE` for the environment variable to have an effect

thread 'main' panicked at /checkout/library/core/src/panicking.rs:218:5:
panic in a function that cannot unwind
stack backtrace:
   0:           0xfa9edc - std::backtrace_rs::backtrace::miri::trace_unsynchronized::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:108:9
   1:           0xfa9a2e - std::backtrace_rs::backtrace::miri::trace::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:65:14
   2:           0xfa81c9 - std::backtrace_rs::backtrace::trace_unsynchronized::<{closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   3:           0xee18e0 - std::sys::backtrace::_print_fmt
                               at /checkout/library/std/src/sys/backtrace.rs:66:9
   4:           0xee14c3 - <std::sys::backtrace::BacktraceLock<'_>::print::DisplayBacktrace as std::fmt::Display>::fmt
                               at /checkout/library/std/src/sys/backtrace.rs:39:26
---
  12:           0x1d633b - std::panicking::rust_panic_with_hook
                               at /checkout/library/std/src/panicking.rs:833:13
  13:           0x1d4ef4 - std::panicking::begin_panic_handler::{closure#0}
                               at /checkout/library/std/src/panicking.rs:699:13
  14:           0xee2781 - std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>
                               at /checkout/library/std/src/sys/backtrace.rs:168:18
  15:           0x1d4e98 - std::panicking::begin_panic_handler
                               at /checkout/library/std/src/panicking.rs:697:5
  16:           0x19a761 - core::panicking::panic_nounwind_fmt::runtime
                               at /checkout/library/core/src/panicking.rs:117:22
  17:           0x3aca8c - core::panicking::panic_nounwind_fmt
---
  28:            0x9bb58 - std::panic::catch_unwind::<&dyn std::ops::Fn() -> i32 + std::marker::Sync + std::panic::RefUnwindSafe, i32>
                               at /checkout/library/std/src/panic.rs:359:14
  29:           0x1b39f2 - std::rt::lang_start_internal::{closure#0}
                               at /checkout/library/std/src/rt.rs:168:24
  30:           0x1d40dc - std::panicking::r#try::do_call::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panicking.rs:589:40
  31:           0x1d3a57 - std::panicking::r#try::<isize, {closure@std::rt::lang_start_internal::{closure#0}}>
                               at /checkout/library/std/src/panicking.rs:552:19
  32:            0x9bb7d - std::panic::catch_unwind::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panic.rs:359:14
  33:           0x1b3978 - std::rt::lang_start_internal
                               at /checkout/library/std/src/rt.rs:164:5
  34:           0x1b3e30 - std::rt::lang_start::<()>
                               at /checkout/library/std/src/rt.rs:198:5
---
   = note: BACKTRACE:
   = note: inside `std::sys::pal::unix::abort_internal` at /checkout/library/std/src/sys/pal/unix/mod.rs:366:14: 366:27
   = note: inside `std::panicking::rust_panic_with_hook` at /checkout/library/std/src/panicking.rs:855:9: 855:37
   = note: inside closure at /checkout/library/std/src/panicking.rs:699:13: 704:14
   = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at /checkout/library/std/src/sys/backtrace.rs:168:18: 168:21
   = note: inside `std::panicking::begin_panic_handler` at /checkout/library/std/src/panicking.rs:697:5: 713:7
   = note: inside `core::panicking::panic_nounwind` at /checkout/library/core/src/panicking.rs:218:5: 218:91
   = note: inside `core::panicking::panic_cannot_unwind` at /checkout/library/core/src/panicking.rs:323:5: 323:61
note: inside `has_cleanup`
  --> tests/fail/terminate-terminator.rs:17:1
---



full stderr:
warning: You have explicitly enabled MIR optimizations, overriding Miri's default which is to completely disable them. Any optimizations may hide UB that Miri would otherwise detect, and it is not necessarily possible to predict what kind of UB will be missed. If you are enabling optimizations to make Miri run faster, we advise using cfg(miri) to shrink your workload instead. The performance benefit of enabling MIR optimizations is usually marginal at best.


thread 'main' panicked at tests/fail/terminate-terminator.rs:19:5:
explicit panic
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
note: in Miri, you may have to set `MIRIFLAGS=-Zmiri-env-forward=RUST_BACKTRACE` for the environment variable to have an effect

thread 'main' panicked at /checkout/library/core/src/panicking.rs:218:5:
panic in a function that cannot unwind
stack backtrace:
   0:           0xfa9edc - std::backtrace_rs::backtrace::miri::trace_unsynchronized::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:108:9
   1:           0xfa9a2e - std::backtrace_rs::backtrace::miri::trace::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:65:14
   2:           0xfa81c9 - std::backtrace_rs::backtrace::trace_unsynchronized::<{closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   3:           0xee18e0 - std::sys::backtrace::_print_fmt
                               at /checkout/library/std/src/sys/backtrace.rs:66:9
   4:           0xee14c3 - <std::sys::backtrace::BacktraceLock<'_>::print::DisplayBacktrace as std::fmt::Display>::fmt
                               at /checkout/library/std/src/sys/backtrace.rs:39:26
---
  12:           0x1d633b - std::panicking::rust_panic_with_hook
                               at /checkout/library/std/src/panicking.rs:833:13
  13:           0x1d4ef4 - std::panicking::begin_panic_handler::{closure#0}
                               at /checkout/library/std/src/panicking.rs:699:13
  14:           0xee2781 - std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>
                               at /checkout/library/std/src/sys/backtrace.rs:168:18
  15:           0x1d4e98 - std::panicking::begin_panic_handler
                               at /checkout/library/std/src/panicking.rs:697:5
  16:           0x19a761 - core::panicking::panic_nounwind_fmt::runtime
                               at /checkout/library/core/src/panicking.rs:117:22
  17:           0x3aca8c - core::panicking::panic_nounwind_fmt
---
  28:            0x9bb58 - std::panic::catch_unwind::<&dyn std::ops::Fn() -> i32 + std::marker::Sync + std::panic::RefUnwindSafe, i32>
                               at /checkout/library/std/src/panic.rs:359:14
  29:           0x1b39f2 - std::rt::lang_start_internal::{closure#0}
                               at /checkout/library/std/src/rt.rs:168:24
  30:           0x1d40dc - std::panicking::r#try::do_call::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panicking.rs:589:40
  31:           0x1d3a57 - std::panicking::r#try::<isize, {closure@std::rt::lang_start_internal::{closure#0}}>
                               at /checkout/library/std/src/panicking.rs:552:19
  32:            0x9bb7d - std::panic::catch_unwind::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panic.rs:359:14
  33:           0x1b3978 - std::rt::lang_start_internal
                               at /checkout/library/std/src/rt.rs:164:5
  34:           0x1b3e30 - std::rt::lang_start::<()>
                               at /checkout/library/std/src/rt.rs:198:5
---
   = note: BACKTRACE:
   = note: inside `std::sys::pal::unix::abort_internal` at /checkout/library/std/src/sys/pal/unix/mod.rs:366:14: 366:27
   = note: inside `std::panicking::rust_panic_with_hook` at /checkout/library/std/src/panicking.rs:855:9: 855:37
   = note: inside closure at /checkout/library/std/src/panicking.rs:699:13: 704:14
   = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at /checkout/library/std/src/sys/backtrace.rs:168:18: 168:21
   = note: inside `std::panicking::begin_panic_handler` at /checkout/library/std/src/panicking.rs:697:5: 713:7
   = note: inside `core::panicking::panic_nounwind` at /checkout/library/core/src/panicking.rs:218:5: 218:91
   = note: inside `core::panicking::panic_cannot_unwind` at /checkout/library/core/src/panicking.rs:323:5: 323:61
note: inside `has_cleanup`
  --> tests/fail/terminate-terminator.rs:17:1
---



FAILED TEST: tests/fail/unwind-action-terminate.rs
command: MIRI_ENV_VAR_TEST="0" MIRI_TEMP="/tmp/miri-uitest-crWDme" RUST_BACKTRACE="1" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/miri" "--error-format=json" "--sysroot=/checkout/obj/build/x86_64-unknown-linux-gnu/miri-sysroot" "-Dwarnings" "-Dunused" "-Ainternal_features" "-Zui-testing" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools/miri_ui/0/tests/fail" "tests/fail/unwind-action-terminate.rs" "--edition" "2021"

error: actual output differed from expected
Execute `./miri test --bless` to update `tests/fail/unwind-action-terminate.stderr` to the actual output
--- tests/fail/unwind-action-terminate.stderr
+++ <stderr output>
 
 thread 'main' panicked at tests/fail/unwind-action-terminate.rs:LL:CC:
... 18 lines skipped ...
    = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at RUSTLIB/std/src/sys/backtrace.rs:LL:CC
    = note: inside `std::panicking::begin_panic_handler` at RUSTLIB/std/src/panicking.rs:LL:CC
+   = note: inside `core::panicking::panic_nounwind` at RUSTLIB/core/src/panicking.rs:LL:CC
    = note: inside `core::panicking::panic_cannot_unwind` at RUSTLIB/core/src/panicking.rs:LL:CC
 note: inside `panic_abort`
... 14 lines skipped ...
---

thread 'main' panicked at tests/fail/unwind-action-terminate.rs:7:5:
explicit panic
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
note: in Miri, you may have to set `MIRIFLAGS=-Zmiri-env-forward=RUST_BACKTRACE` for the environment variable to have an effect

thread 'main' panicked at /checkout/library/core/src/panicking.rs:218:5:
panic in a function that cannot unwind
stack backtrace:
   0:           0xfa93c2 - std::backtrace_rs::backtrace::miri::trace_unsynchronized::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:108:9
   1:           0xfa8f06 - std::backtrace_rs::backtrace::miri::trace::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:65:14
   2:           0xfa769f - std::backtrace_rs::backtrace::trace_unsynchronized::<{closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   3:           0xee0db2 - std::sys::backtrace::_print_fmt
                               at /checkout/library/std/src/sys/backtrace.rs:66:9
   4:           0xee099b - <std::sys::backtrace::BacktraceLock<'_>::print::DisplayBacktrace as std::fmt::Display>::fmt
                               at /checkout/library/std/src/sys/backtrace.rs:39:26
---
  12:           0x1d580c - std::panicking::rust_panic_with_hook
                               at /checkout/library/std/src/panicking.rs:833:13
  13:           0x1d43be - std::panicking::begin_panic_handler::{closure#0}
                               at /checkout/library/std/src/panicking.rs:699:13
  14:           0xee1c46 - std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>
                               at /checkout/library/std/src/sys/backtrace.rs:168:18
  15:           0x1d435f - std::panicking::begin_panic_handler
                               at /checkout/library/std/src/panicking.rs:697:5
  16:           0x199c27 - core::panicking::panic_nounwind_fmt::runtime
                               at /checkout/library/core/src/panicking.rs:117:22
  17:           0x3abf4d - core::panicking::panic_nounwind_fmt
---
  28:            0x9b019 - std::panic::catch_unwind::<&dyn std::ops::Fn() -> i32 + std::marker::Sync + std::panic::RefUnwindSafe, i32>
                               at /checkout/library/std/src/panic.rs:359:14
  29:           0x1b2eb1 - std::rt::lang_start_internal::{closure#0}
                               at /checkout/library/std/src/rt.rs:168:24
  30:           0x1d359b - std::panicking::r#try::do_call::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panicking.rs:589:40
  31:           0x1d2f1f - std::panicking::r#try::<isize, {closure@std::rt::lang_start_internal::{closure#0}}>
                               at /checkout/library/std/src/panicking.rs:552:19
  32:            0x9b03c - std::panic::catch_unwind::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panic.rs:359:14
  33:           0x1b2e35 - std::rt::lang_start_internal
                               at /checkout/library/std/src/rt.rs:164:5
  34:           0x1b32ea - std::rt::lang_start::<()>
                               at /checkout/library/std/src/rt.rs:198:5
---
   = note: BACKTRACE:
   = note: inside `std::sys::pal::unix::abort_internal` at /checkout/library/std/src/sys/pal/unix/mod.rs:366:14: 366:27
   = note: inside `std::panicking::rust_panic_with_hook` at /checkout/library/std/src/panicking.rs:855:9: 855:37
   = note: inside closure at /checkout/library/std/src/panicking.rs:699:13: 704:14
   = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at /checkout/library/std/src/sys/backtrace.rs:168:18: 168:21
   = note: inside `std::panicking::begin_panic_handler` at /checkout/library/std/src/panicking.rs:697:5: 713:7
   = note: inside `core::panicking::panic_nounwind` at /checkout/library/core/src/panicking.rs:218:5: 218:91
   = note: inside `core::panicking::panic_cannot_unwind` at /checkout/library/core/src/panicking.rs:323:5: 323:61
note: inside `panic_abort`
  --> tests/fail/unwind-action-terminate.rs:6:1
---

thread 'main' panicked at tests/fail/unwind-action-terminate.rs:7:5:
explicit panic
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
note: in Miri, you may have to set `MIRIFLAGS=-Zmiri-env-forward=RUST_BACKTRACE` for the environment variable to have an effect

thread 'main' panicked at /checkout/library/core/src/panicking.rs:218:5:
panic in a function that cannot unwind
stack backtrace:
   0:           0xfa93c2 - std::backtrace_rs::backtrace::miri::trace_unsynchronized::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:108:9
   1:           0xfa8f06 - std::backtrace_rs::backtrace::miri::trace::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:65:14
   2:           0xfa769f - std::backtrace_rs::backtrace::trace_unsynchronized::<{closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   3:           0xee0db2 - std::sys::backtrace::_print_fmt
                               at /checkout/library/std/src/sys/backtrace.rs:66:9
   4:           0xee099b - <std::sys::backtrace::BacktraceLock<'_>::print::DisplayBacktrace as std::fmt::Display>::fmt
                               at /checkout/library/std/src/sys/backtrace.rs:39:26
---
  12:           0x1d580c - std::panicking::rust_panic_with_hook
                               at /checkout/library/std/src/panicking.rs:833:13
  13:           0x1d43be - std::panicking::begin_panic_handler::{closure#0}
                               at /checkout/library/std/src/panicking.rs:699:13
  14:           0xee1c46 - std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>
                               at /checkout/library/std/src/sys/backtrace.rs:168:18
  15:           0x1d435f - std::panicking::begin_panic_handler
                               at /checkout/library/std/src/panicking.rs:697:5
  16:           0x199c27 - core::panicking::panic_nounwind_fmt::runtime
                               at /checkout/library/core/src/panicking.rs:117:22
  17:           0x3abf4d - core::panicking::panic_nounwind_fmt
---
  28:            0x9b019 - std::panic::catch_unwind::<&dyn std::ops::Fn() -> i32 + std::marker::Sync + std::panic::RefUnwindSafe, i32>
                               at /checkout/library/std/src/panic.rs:359:14
  29:           0x1b2eb1 - std::rt::lang_start_internal::{closure#0}
                               at /checkout/library/std/src/rt.rs:168:24
  30:           0x1d359b - std::panicking::r#try::do_call::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panicking.rs:589:40
  31:           0x1d2f1f - std::panicking::r#try::<isize, {closure@std::rt::lang_start_internal::{closure#0}}>
                               at /checkout/library/std/src/panicking.rs:552:19
  32:            0x9b03c - std::panic::catch_unwind::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panic.rs:359:14
  33:           0x1b2e35 - std::rt::lang_start_internal
                               at /checkout/library/std/src/rt.rs:164:5
  34:           0x1b32ea - std::rt::lang_start::<()>
                               at /checkout/library/std/src/rt.rs:198:5
---
   = note: BACKTRACE:
   = note: inside `std::sys::pal::unix::abort_internal` at /checkout/library/std/src/sys/pal/unix/mod.rs:366:14: 366:27
   = note: inside `std::panicking::rust_panic_with_hook` at /checkout/library/std/src/panicking.rs:855:9: 855:37
   = note: inside closure at /checkout/library/std/src/panicking.rs:699:13: 704:14
   = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at /checkout/library/std/src/sys/backtrace.rs:168:18: 168:21
   = note: inside `std::panicking::begin_panic_handler` at /checkout/library/std/src/panicking.rs:697:5: 713:7
   = note: inside `core::panicking::panic_nounwind` at /checkout/library/core/src/panicking.rs:218:5: 218:91
   = note: inside `core::panicking::panic_cannot_unwind` at /checkout/library/core/src/panicking.rs:323:5: 323:61
note: inside `panic_abort`
  --> tests/fail/unwind-action-terminate.rs:6:1
---



FAILED TEST: tests/fail/panic/double_panic.rs
command: MIRI_ENV_VAR_TEST="0" MIRI_TEMP="/tmp/miri-uitest-crWDme" RUST_BACKTRACE="1" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/miri" "--error-format=json" "--sysroot=/checkout/obj/build/x86_64-unknown-linux-gnu/miri-sysroot" "-Dwarnings" "-Dunused" "-Ainternal_features" "-Zui-testing" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools/miri_ui/0/tests/fail/panic" "tests/fail/panic/double_panic.rs" "--edition" "2021"

error: actual output differed from expected
Execute `./miri test --bless` to update `tests/fail/panic/double_panic.stderr` to the actual output
--- tests/fail/panic/double_panic.stderr
+++ <stderr output>
 
 thread 'main' panicked at tests/fail/panic/double_panic.rs:LL:CC:
... 21 lines skipped ...
    = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at RUSTLIB/std/src/sys/backtrace.rs:LL:CC
    = note: inside `std::panicking::begin_panic_handler` at RUSTLIB/std/src/panicking.rs:LL:CC
+   = note: inside `core::panicking::panic_nounwind_nobacktrace` at RUSTLIB/core/src/panicking.rs:LL:CC
    = note: inside `core::panicking::panic_in_cleanup` at RUSTLIB/core/src/panicking.rs:LL:CC
 note: inside `main`
... 10 lines skipped ...
---

thread 'main' panicked at tests/fail/panic/double_panic.rs:15:5:
first
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
note: in Miri, you may have to set `MIRIFLAGS=-Zmiri-env-forward=RUST_BACKTRACE` for the environment variable to have an effect

thread 'main' panicked at tests/fail/panic/double_panic.rs:10:9:
second
stack backtrace:
   0:           0xfa4cbb - std::backtrace_rs::backtrace::miri::trace_unsynchronized::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:108:9
   1:           0xfa480e - std::backtrace_rs::backtrace::miri::trace::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:65:14
   2:           0xfa2fac - std::backtrace_rs::backtrace::trace_unsynchronized::<{closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   3:           0xedcc98 - std::sys::backtrace::_print_fmt
                               at /checkout/library/std/src/sys/backtrace.rs:66:9
   4:           0xedc87f - <std::sys::backtrace::BacktraceLock<'_>::print::DisplayBacktrace as std::fmt::Display>::fmt
                               at /checkout/library/std/src/sys/backtrace.rs:39:26
---
  12:           0xdbbe47 - std::panicking::rust_panic_with_hook
                               at /checkout/library/std/src/panicking.rs:833:13
  13:           0xdbaa02 - std::panicking::begin_panic_handler::{closure#0}
                               at /checkout/library/std/src/panicking.rs:699:13
  14:           0xeddb3a - std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>
                               at /checkout/library/std/src/sys/backtrace.rs:168:18
  15:           0xdba9a3 - std::panicking::begin_panic_handler
                               at /checkout/library/std/src/panicking.rs:697:5
  16:           0x1953bc - std::rt::panic_fmt
                               at /checkout/library/core/src/panicking.rs:75:14
  17:            0x42b7c - <Foo as std::ops::Drop>::drop
---
  26:            0x96ef5 - std::panic::catch_unwind::<&dyn std::ops::Fn() -> i32 + std::marker::Sync + std::panic::RefUnwindSafe, i32>
                               at /checkout/library/std/src/panic.rs:359:14
  27:           0x1c7408 - std::rt::lang_start_internal::{closure#0}
                               at /checkout/library/std/src/rt.rs:168:24
  28:           0xdb9bc8 - std::panicking::r#try::do_call::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panicking.rs:589:40
  29:           0xdb9546 - std::panicking::r#try::<isize, {closure@std::rt::lang_start_internal::{closure#0}}>
                               at /checkout/library/std/src/panicking.rs:552:19
  30:            0x96f1c - std::panic::catch_unwind::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panic.rs:359:14
  31:           0x1c738d - std::rt::lang_start_internal
                               at /checkout/library/std/src/rt.rs:164:5
  32:           0x1c784b - std::rt::lang_start::<()>
                               at /checkout/library/std/src/rt.rs:198:5
---
   = note: BACKTRACE:
   = note: inside `std::sys::pal::unix::abort_internal` at /checkout/library/std/src/sys/pal/unix/mod.rs:366:14: 366:27
   = note: inside `std::panicking::rust_panic_with_hook` at /checkout/library/std/src/panicking.rs:855:9: 855:37
   = note: inside closure at /checkout/library/std/src/panicking.rs:699:13: 704:14
   = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at /checkout/library/std/src/sys/backtrace.rs:168:18: 168:21
   = note: inside `std::panicking::begin_panic_handler` at /checkout/library/std/src/panicking.rs:697:5: 713:7
   = note: inside `core::panicking::panic_nounwind_nobacktrace` at /checkout/library/core/src/panicking.rs:226:5: 226:90
   = note: inside `core::panicking::panic_in_cleanup` at /checkout/library/core/src/panicking.rs:339:5: 339:71
note: inside `main`
  --> tests/fail/panic/double_panic.rs:13:1
---

thread 'main' panicked at tests/fail/panic/double_panic.rs:15:5:
first
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
note: in Miri, you may have to set `MIRIFLAGS=-Zmiri-env-forward=RUST_BACKTRACE` for the environment variable to have an effect

thread 'main' panicked at tests/fail/panic/double_panic.rs:10:9:
second
stack backtrace:
   0:           0xfa4cbb - std::backtrace_rs::backtrace::miri::trace_unsynchronized::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:108:9
   1:           0xfa480e - std::backtrace_rs::backtrace::miri::trace::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:65:14
   2:           0xfa2fac - std::backtrace_rs::backtrace::trace_unsynchronized::<{closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   3:           0xedcc98 - std::sys::backtrace::_print_fmt
                               at /checkout/library/std/src/sys/backtrace.rs:66:9
   4:           0xedc87f - <std::sys::backtrace::BacktraceLock<'_>::print::DisplayBacktrace as std::fmt::Display>::fmt
                               at /checkout/library/std/src/sys/backtrace.rs:39:26
---
  12:           0xdbbe47 - std::panicking::rust_panic_with_hook
                               at /checkout/library/std/src/panicking.rs:833:13
  13:           0xdbaa02 - std::panicking::begin_panic_handler::{closure#0}
                               at /checkout/library/std/src/panicking.rs:699:13
  14:           0xeddb3a - std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>
                               at /checkout/library/std/src/sys/backtrace.rs:168:18
  15:           0xdba9a3 - std::panicking::begin_panic_handler
                               at /checkout/library/std/src/panicking.rs:697:5
  16:           0x1953bc - std::rt::panic_fmt
                               at /checkout/library/core/src/panicking.rs:75:14
  17:            0x42b7c - <Foo as std::ops::Drop>::drop
---
  26:            0x96ef5 - std::panic::catch_unwind::<&dyn std::ops::Fn() -> i32 + std::marker::Sync + std::panic::RefUnwindSafe, i32>
                               at /checkout/library/std/src/panic.rs:359:14
  27:           0x1c7408 - std::rt::lang_start_internal::{closure#0}
                               at /checkout/library/std/src/rt.rs:168:24
  28:           0xdb9bc8 - std::panicking::r#try::do_call::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panicking.rs:589:40
  29:           0xdb9546 - std::panicking::r#try::<isize, {closure@std::rt::lang_start_internal::{closure#0}}>
                               at /checkout/library/std/src/panicking.rs:552:19
  30:            0x96f1c - std::panic::catch_unwind::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panic.rs:359:14
  31:           0x1c738d - std::rt::lang_start_internal
                               at /checkout/library/std/src/rt.rs:164:5
  32:           0x1c784b - std::rt::lang_start::<()>
                               at /checkout/library/std/src/rt.rs:198:5
---
   = note: BACKTRACE:
   = note: inside `std::sys::pal::unix::abort_internal` at /checkout/library/std/src/sys/pal/unix/mod.rs:366:14: 366:27
   = note: inside `std::panicking::rust_panic_with_hook` at /checkout/library/std/src/panicking.rs:855:9: 855:37
   = note: inside closure at /checkout/library/std/src/panicking.rs:699:13: 704:14
   = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at /checkout/library/std/src/sys/backtrace.rs:168:18: 168:21
   = note: inside `std::panicking::begin_panic_handler` at /checkout/library/std/src/panicking.rs:697:5: 713:7
   = note: inside `core::panicking::panic_nounwind_nobacktrace` at /checkout/library/core/src/panicking.rs:226:5: 226:90
   = note: inside `core::panicking::panic_in_cleanup` at /checkout/library/core/src/panicking.rs:339:5: 339:71
note: inside `main`
  --> tests/fail/panic/double_panic.rs:13:1
---



FAILED TEST: tests/fail/panic/abort_unwind.rs
command: MIRI_ENV_VAR_TEST="0" MIRI_TEMP="/tmp/miri-uitest-crWDme" RUST_BACKTRACE="1" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/miri" "--error-format=json" "--sysroot=/checkout/obj/build/x86_64-unknown-linux-gnu/miri-sysroot" "-Dwarnings" "-Dunused" "-Ainternal_features" "-Zui-testing" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools/miri_ui/0/tests/fail/panic" "tests/fail/panic/abort_unwind.rs" "--edition" "2021"

error: actual output differed from expected
Execute `./miri test --bless` to update `tests/fail/panic/abort_unwind.stderr` to the actual output
--- tests/fail/panic/abort_unwind.stderr
+++ <stderr output>
 
 thread 'main' panicked at tests/fail/panic/abort_unwind.rs:LL:CC:
... 18 lines skipped ...
    = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at RUSTLIB/std/src/sys/backtrace.rs:LL:CC
    = note: inside `std::panicking::begin_panic_handler` at RUSTLIB/std/src/panicking.rs:LL:CC
+   = note: inside `core::panicking::panic_nounwind` at RUSTLIB/core/src/panicking.rs:LL:CC
    = note: inside `core::panicking::panic_cannot_unwind` at RUSTLIB/core/src/panicking.rs:LL:CC
    = note: inside `std::panic::abort_unwind::<{closure@tests/fail/panic/abort_unwind.rs:LL:CC}, ()>` at RUSTLIB/core/src/panic.rs:LL:CC
... 8 lines skipped ...
 error: aborting due to 1 previous error
 

Full unnormalized output:

thread 'main' panicked at tests/fail/panic/abort_unwind.rs:10:33:
PANIC!!!
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
note: in Miri, you may have to set `MIRIFLAGS=-Zmiri-env-forward=RUST_BACKTRACE` for the environment variable to have an effect

thread 'main' panicked at /checkout/library/core/src/panicking.rs:218:5:
panic in a function that cannot unwind
stack backtrace:
   0:           0xfa59c9 - std::backtrace_rs::backtrace::miri::trace_unsynchronized::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:108:9
   1:           0xfa551a - std::backtrace_rs::backtrace::miri::trace::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:65:14
   2:           0xfa3cbc - std::backtrace_rs::backtrace::trace_unsynchronized::<{closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   3:           0xedd9a9 - std::sys::backtrace::_print_fmt
                               at /checkout/library/std/src/sys/backtrace.rs:66:9
   4:           0xedd593 - <std::sys::backtrace::BacktraceLock<'_>::print::DisplayBacktrace as std::fmt::Display>::fmt
                               at /checkout/library/std/src/sys/backtrace.rs:39:26
---
  12:           0x1eb014 - std::panicking::rust_panic_with_hook
                               at /checkout/library/std/src/panicking.rs:833:13
  13:           0x1e9bd3 - std::panicking::begin_panic_handler::{closure#0}
                               at /checkout/library/std/src/panicking.rs:699:13
  14:           0xede86a - std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>
                               at /checkout/library/std/src/sys/backtrace.rs:168:18
  15:           0x1e9b71 - std::panicking::begin_panic_handler
                               at /checkout/library/std/src/panicking.rs:697:5
  16:           0x19684f - core::panicking::panic_nounwind_fmt::runtime
                               at /checkout/library/core/src/panicking.rs:117:22
  17:           0x3c1768 - core::panicking::panic_nounwind_fmt
                               at /checkout/library/core/src/intrinsics/mod.rs:3196:9
  18:           0x197efd - core::panicking::panic_nounwind
                               at /checkout/library/core/src/panicking.rs:218:5
  19:           0x198fbd - core::panicking::panic_cannot_unwind
                               at /checkout/library/core/src/panicking.rs:323:5
  20:            0xcf095 - std::panic::abort_unwind::<{closure@tests/fail/panic/abort_unwind.rs:10:30: 10:32}, ()>
                               at /checkout/library/core/src/panic.rs:164:1
  21:            0x438f7 - main
                               at tests/fail/panic/abort_unwind.rs:10:5
  22:           0x129418 - <fn() as std::ops::FnOnce<()>>::call_once - shim(fn())
                               at /checkout/library/core/src/ops/function.rs:250:5
---
  28:            0x97c43 - std::panic::catch_unwind::<&dyn std::ops::Fn() -> i32 + std::marker::Sync + std::panic::RefUnwindSafe, i32>
                               at /checkout/library/std/src/panic.rs:359:14
  29:           0x1ca150 - std::rt::lang_start_internal::{closure#0}
                               at /checkout/library/std/src/rt.rs:168:24
  30:           0x1e8db0 - std::panicking::r#try::do_call::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panicking.rs:589:40
  31:           0x1e8735 - std::panicking::r#try::<isize, {closure@std::rt::lang_start_internal::{closure#0}}>
                               at /checkout/library/std/src/panicking.rs:552:19
  32:            0x97c6a - std::panic::catch_unwind::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panic.rs:359:14
  33:           0x1ca0d8 - std::rt::lang_start_internal
                               at /checkout/library/std/src/rt.rs:164:5
  34:           0x1ca599 - std::rt::lang_start::<()>
                               at /checkout/library/std/src/rt.rs:198:5
---
   = note: BACKTRACE:
   = note: inside `std::sys::pal::unix::abort_internal` at /checkout/library/std/src/sys/pal/unix/mod.rs:366:14: 366:27
   = note: inside `std::panicking::rust_panic_with_hook` at /checkout/library/std/src/panicking.rs:855:9: 855:37
   = note: inside closure at /checkout/library/std/src/panicking.rs:699:13: 704:14
   = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at /checkout/library/std/src/sys/backtrace.rs:168:18: 168:21
   = note: inside `std::panicking::begin_panic_handler` at /checkout/library/std/src/panicking.rs:697:5: 713:7
   = note: inside `core::panicking::panic_nounwind` at /checkout/library/core/src/panicking.rs:218:5: 218:91
   = note: inside `core::panicking::panic_cannot_unwind` at /checkout/library/core/src/panicking.rs:323:5: 323:61
   = note: inside `std::panic::abort_unwind::<{closure@tests/fail/panic/abort_unwind.rs:10:30: 10:32}, ()>` at /checkout/library/core/src/panic.rs:164:1: 166:2
note: inside `main`
  --> tests/fail/panic/abort_unwind.rs:10:5
   |
LL |     std::panic::abort_unwind(|| panic!("PANIC!!!"));
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

error: aborting due to 1 previous error
---

thread 'main' panicked at tests/fail/panic/abort_unwind.rs:10:33:
PANIC!!!
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
note: in Miri, you may have to set `MIRIFLAGS=-Zmiri-env-forward=RUST_BACKTRACE` for the environment variable to have an effect

thread 'main' panicked at /checkout/library/core/src/panicking.rs:218:5:
panic in a function that cannot unwind
stack backtrace:
   0:           0xfa59c9 - std::backtrace_rs::backtrace::miri::trace_unsynchronized::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:108:9
   1:           0xfa551a - std::backtrace_rs::backtrace::miri::trace::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:65:14
   2:           0xfa3cbc - std::backtrace_rs::backtrace::trace_unsynchronized::<{closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   3:           0xedd9a9 - std::sys::backtrace::_print_fmt
                               at /checkout/library/std/src/sys/backtrace.rs:66:9
   4:           0xedd593 - <std::sys::backtrace::BacktraceLock<'_>::print::DisplayBacktrace as std::fmt::Display>::fmt
                               at /checkout/library/std/src/sys/backtrace.rs:39:26
---
  12:           0x1eb014 - std::panicking::rust_panic_with_hook
                               at /checkout/library/std/src/panicking.rs:833:13
  13:           0x1e9bd3 - std::panicking::begin_panic_handler::{closure#0}
                               at /checkout/library/std/src/panicking.rs:699:13
  14:           0xede86a - std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>
                               at /checkout/library/std/src/sys/backtrace.rs:168:18
  15:           0x1e9b71 - std::panicking::begin_panic_handler
                               at /checkout/library/std/src/panicking.rs:697:5
  16:           0x19684f - core::panicking::panic_nounwind_fmt::runtime
                               at /checkout/library/core/src/panicking.rs:117:22
  17:           0x3c1768 - core::panicking::panic_nounwind_fmt
                               at /checkout/library/core/src/intrinsics/mod.rs:3196:9
  18:           0x197efd - core::panicking::panic_nounwind
                               at /checkout/library/core/src/panicking.rs:218:5
  19:           0x198fbd - core::panicking::panic_cannot_unwind
                               at /checkout/library/core/src/panicking.rs:323:5
  20:            0xcf095 - std::panic::abort_unwind::<{closure@tests/fail/panic/abort_unwind.rs:10:30: 10:32}, ()>
                               at /checkout/library/core/src/panic.rs:164:1
  21:            0x438f7 - main
                               at tests/fail/panic/abort_unwind.rs:10:5
  22:           0x129418 - <fn() as std::ops::FnOnce<()>>::call_once - shim(fn())
                               at /checkout/library/core/src/ops/function.rs:250:5
---
  28:            0x97c43 - std::panic::catch_unwind::<&dyn std::ops::Fn() -> i32 + std::marker::Sync + std::panic::RefUnwindSafe, i32>
                               at /checkout/library/std/src/panic.rs:359:14
  29:           0x1ca150 - std::rt::lang_start_internal::{closure#0}
                               at /checkout/library/std/src/rt.rs:168:24
  30:           0x1e8db0 - std::panicking::r#try::do_call::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panicking.rs:589:40
  31:           0x1e8735 - std::panicking::r#try::<isize, {closure@std::rt::lang_start_internal::{closure#0}}>
                               at /checkout/library/std/src/panicking.rs:552:19
  32:            0x97c6a - std::panic::catch_unwind::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panic.rs:359:14
  33:           0x1ca0d8 - std::rt::lang_start_internal
                               at /checkout/library/std/src/rt.rs:164:5
  34:           0x1ca599 - std::rt::lang_start::<()>
                               at /checkout/library/std/src/rt.rs:198:5
---
   = note: BACKTRACE:
   = note: inside `std::sys::pal::unix::abort_internal` at /checkout/library/std/src/sys/pal/unix/mod.rs:366:14: 366:27
   = note: inside `std::panicking::rust_panic_with_hook` at /checkout/library/std/src/panicking.rs:855:9: 855:37
   = note: inside closure at /checkout/library/std/src/panicking.rs:699:13: 704:14
   = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at /checkout/library/std/src/sys/backtrace.rs:168:18: 168:21
   = note: inside `std::panicking::begin_panic_handler` at /checkout/library/std/src/panicking.rs:697:5: 713:7
   = note: inside `core::panicking::panic_nounwind` at /checkout/library/core/src/panicking.rs:218:5: 218:91
   = note: inside `core::panicking::panic_cannot_unwind` at /checkout/library/core/src/panicking.rs:323:5: 323:61
   = note: inside `std::panic::abort_unwind::<{closure@tests/fail/panic/abort_unwind.rs:10:30: 10:32}, ()>` at /checkout/library/core/src/panic.rs:164:1: 166:2
note: inside `main`
  --> tests/fail/panic/abort_unwind.rs:10:5
   |
LL |     std::panic::abort_unwind(|| panic!("PANIC!!!"));
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

error: aborting due to 1 previous error


full stdout:



FAILED TEST: tests/fail/function_calls/exported_symbol_bad_unwind2.rs (revision `definition`)
command: MIRI_ENV_VAR_TEST="0" MIRI_TEMP="/tmp/miri-uitest-crWDme" RUST_BACKTRACE="1" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/miri" "--error-format=json" "--sysroot=/checkout/obj/build/x86_64-unknown-linux-gnu/miri-sysroot" "-Dwarnings" "-Dunused" "-Ainternal_features" "-Zui-testing" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools/miri_ui/0/tests/fail/function_calls" "tests/fail/function_calls/exported_symbol_bad_unwind2.rs" "--edition" "2021" "--cfg=definition" "-Cextra-filename=definition"

error: actual output differed from expected
Execute `./miri test --bless` to update `tests/fail/function_calls/exported_symbol_bad_unwind2.definition.stderr` to the actual output
--- tests/fail/function_calls/exported_symbol_bad_unwind2.definition.stderr
+++ <stderr output>
 
 thread 'main' panicked at tests/fail/function_calls/exported_symbol_bad_unwind2.rs:LL:CC:
... 18 lines skipped ...
    = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at RUSTLIB/std/src/sys/backtrace.rs:LL:CC
    = note: inside `std::panicking::begin_panic_handler` at RUSTLIB/std/src/panicking.rs:LL:CC
+   = note: inside `core::panicking::panic_nounwind` at RUSTLIB/core/src/panicking.rs:LL:CC
    = note: inside `core::panicking::panic_cannot_unwind` at RUSTLIB/core/src/panicking.rs:LL:CC
 note: inside `nounwind`
... 14 lines skipped ...
---

thread 'main' panicked at tests/fail/function_calls/exported_symbol_bad_unwind2.rs:12:5:
explicit panic
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
note: in Miri, you may have to set `MIRIFLAGS=-Zmiri-env-forward=RUST_BACKTRACE` for the environment variable to have an effect

thread 'main' panicked at /checkout/library/core/src/panicking.rs:218:5:
panic in a function that cannot unwind
stack backtrace:
   0:           0xfa962b - std::backtrace_rs::backtrace::miri::trace_unsynchronized::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:108:9
   1:           0xfa9175 - std::backtrace_rs::backtrace::miri::trace::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:65:14
   2:           0xfa7910 - std::backtrace_rs::backtrace::trace_unsynchronized::<{closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   3:           0xee1027 - std::sys::backtrace::_print_fmt
                               at /checkout/library/std/src/sys/backtrace.rs:66:9
   4:           0xee0c07 - <std::sys::backtrace::BacktraceLock<'_>::print::DisplayBacktrace as std::fmt::Display>::fmt
                               at /checkout/library/std/src/sys/backtrace.rs:39:26
---
  12:           0x1d5a72 - std::panicking::rust_panic_with_hook
                               at /checkout/library/std/src/panicking.rs:833:13
  13:           0x1d4622 - std::panicking::begin_panic_handler::{closure#0}
                               at /checkout/library/std/src/panicking.rs:699:13
  14:           0xee1eb4 - std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>
                               at /checkout/library/std/src/sys/backtrace.rs:168:18
  15:           0x1d45c6 - std::panicking::begin_panic_handler
                               at /checkout/library/std/src/panicking.rs:697:5
  16:           0x199e91 - core::panicking::panic_nounwind_fmt::runtime
                               at /checkout/library/core/src/panicking.rs:117:22
  17:           0x3ac1c1 - core::panicking::panic_nounwind_fmt
---
  28:            0x9b290 - std::panic::catch_unwind::<&dyn std::ops::Fn() -> i32 + std::marker::Sync + std::panic::RefUnwindSafe, i32>
                               at /checkout/library/std/src/panic.rs:359:14
  29:           0x1b3125 - std::rt::lang_start_internal::{closure#0}
                               at /checkout/library/std/src/rt.rs:168:24
  30:           0x1d380e - std::panicking::r#try::do_call::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panicking.rs:589:40
  31:           0x1d318e - std::panicking::r#try::<isize, {closure@std::rt::lang_start_internal::{closure#0}}>
                               at /checkout/library/std/src/panicking.rs:552:19
  32:            0x9b2b1 - std::panic::catch_unwind::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panic.rs:359:14
  33:           0x1b309f - std::rt::lang_start_internal
                               at /checkout/library/std/src/rt.rs:164:5
  34:           0x1b3558 - std::rt::lang_start::<()>
                               at /checkout/library/std/src/rt.rs:198:5
---
   = note: BACKTRACE:
   = note: inside `std::sys::pal::unix::abort_internal` at /checkout/library/std/src/sys/pal/unix/mod.rs:366:14: 366:27
   = note: inside `std::panicking::rust_panic_with_hook` at /checkout/library/std/src/panicking.rs:855:9: 855:37
   = note: inside closure at /checkout/library/std/src/panicking.rs:699:13: 704:14
   = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at /checkout/library/std/src/sys/backtrace.rs:168:18: 168:21
   = note: inside `std::panicking::begin_panic_handler` at /checkout/library/std/src/panicking.rs:697:5: 713:7
   = note: inside `core::panicking::panic_nounwind` at /checkout/library/core/src/panicking.rs:218:5: 218:91
   = note: inside `core::panicking::panic_cannot_unwind` at /checkout/library/core/src/panicking.rs:323:5: 323:61
note: inside `nounwind`
  --> tests/fail/function_calls/exported_symbol_bad_unwind2.rs:11:1
   |
LL | / extern "C-unwind" fn nounwind() {
LL | |     panic!();
LL | | }
   | |_^
note: inside `main`
  --> tests/fail/function_calls/exported_symbol_bad_unwind2.rs:20:14
---

thread 'main' panicked at tests/fail/function_calls/exported_symbol_bad_unwind2.rs:12:5:
explicit panic
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
note: in Miri, you may have to set `MIRIFLAGS=-Zmiri-env-forward=RUST_BACKTRACE` for the environment variable to have an effect

thread 'main' panicked at /checkout/library/core/src/panicking.rs:218:5:
panic in a function that cannot unwind
stack backtrace:
   0:           0xfa962b - std::backtrace_rs::backtrace::miri::trace_unsynchronized::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:108:9
   1:           0xfa9175 - std::backtrace_rs::backtrace::miri::trace::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:65:14
   2:           0xfa7910 - std::backtrace_rs::backtrace::trace_unsynchronized::<{closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   3:           0xee1027 - std::sys::backtrace::_print_fmt
                               at /checkout/library/std/src/sys/backtrace.rs:66:9
   4:           0xee0c07 - <std::sys::backtrace::BacktraceLock<'_>::print::DisplayBacktrace as std::fmt::Display>::fmt
                               at /checkout/library/std/src/sys/backtrace.rs:39:26
---
  12:           0x1d5a72 - std::panicking::rust_panic_with_hook
                               at /checkout/library/std/src/panicking.rs:833:13
  13:           0x1d4622 - std::panicking::begin_panic_handler::{closure#0}
                               at /checkout/library/std/src/panicking.rs:699:13
  14:           0xee1eb4 - std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>
                               at /checkout/library/std/src/sys/backtrace.rs:168:18
  15:           0x1d45c6 - std::panicking::begin_panic_handler
                               at /checkout/library/std/src/panicking.rs:697:5
  16:           0x199e91 - core::panicking::panic_nounwind_fmt::runtime
                               at /checkout/library/core/src/panicking.rs:117:22
  17:           0x3ac1c1 - core::panicking::panic_nounwind_fmt
---
  28:            0x9b290 - std::panic::catch_unwind::<&dyn std::ops::Fn() -> i32 + std::marker::Sync + std::panic::RefUnwindSafe, i32>
                               at /checkout/library/std/src/panic.rs:359:14
  29:           0x1b3125 - std::rt::lang_start_internal::{closure#0}
                               at /checkout/library/std/src/rt.rs:168:24
  30:           0x1d380e - std::panicking::r#try::do_call::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panicking.rs:589:40
  31:           0x1d318e - std::panicking::r#try::<isize, {closure@std::rt::lang_start_internal::{closure#0}}>
                               at /checkout/library/std/src/panicking.rs:552:19
  32:            0x9b2b1 - std::panic::catch_unwind::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panic.rs:359:14
  33:           0x1b309f - std::rt::lang_start_internal
                               at /checkout/library/std/src/rt.rs:164:5
  34:           0x1b3558 - std::rt::lang_start::<()>
                               at /checkout/library/std/src/rt.rs:198:5
---
   = note: BACKTRACE:
   = note: inside `std::sys::pal::unix::abort_internal` at /checkout/library/std/src/sys/pal/unix/mod.rs:366:14: 366:27
   = note: inside `std::panicking::rust_panic_with_hook` at /checkout/library/std/src/panicking.rs:855:9: 855:37
   = note: inside closure at /checkout/library/std/src/panicking.rs:699:13: 704:14
   = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at /checkout/library/std/src/sys/backtrace.rs:168:18: 168:21
   = note: inside `std::panicking::begin_panic_handler` at /checkout/library/std/src/panicking.rs:697:5: 713:7
   = note: inside `core::panicking::panic_nounwind` at /checkout/library/core/src/panicking.rs:218:5: 218:91
   = note: inside `core::panicking::panic_cannot_unwind` at /checkout/library/core/src/panicking.rs:323:5: 323:61
note: inside `nounwind`
  --> tests/fail/function_calls/exported_symbol_bad_unwind2.rs:11:1
   |
LL | / extern "C-unwind" fn nounwind() {
LL | |     panic!();
LL | | }
   | |_^
note: inside `main`
  --> tests/fail/function_calls/exported_symbol_bad_unwind2.rs:20:14
---



FAILED TEST: tests/fail/function_calls/exported_symbol_bad_unwind2.rs (revision `both`)
command: MIRI_ENV_VAR_TEST="0" MIRI_TEMP="/tmp/miri-uitest-crWDme" RUST_BACKTRACE="1" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/miri" "--error-format=json" "--sysroot=/checkout/obj/build/x86_64-unknown-linux-gnu/miri-sysroot" "-Dwarnings" "-Dunused" "-Ainternal_features" "-Zui-testing" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools/miri_ui/0/tests/fail/function_calls" "tests/fail/function_calls/exported_symbol_bad_unwind2.rs" "--edition" "2021" "--cfg=both" "-Cextra-filename=both"

error: actual output differed from expected
Execute `./miri test --bless` to update `tests/fail/function_calls/exported_symbol_bad_unwind2.both.stderr` to the actual output
--- tests/fail/function_calls/exported_symbol_bad_unwind2.both.stderr
+++ <stderr output>
 
 thread 'main' panicked at tests/fail/function_calls/exported_symbol_bad_unwind2.rs:LL:CC:
... 18 lines skipped ...
    = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at RUSTLIB/std/src/sys/backtrace.rs:LL:CC
    = note: inside `std::panicking::begin_panic_handler` at RUSTLIB/std/src/panicking.rs:LL:CC
+   = note: inside `core::panicking::panic_nounwind` at RUSTLIB/core/src/panicking.rs:LL:CC
    = note: inside `core::panicking::panic_cannot_unwind` at RUSTLIB/core/src/panicking.rs:LL:CC
 note: inside `nounwind`
... 14 lines skipped ...
---

thread 'main' panicked at tests/fail/function_calls/exported_symbol_bad_unwind2.rs:12:5:
explicit panic
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
note: in Miri, you may have to set `MIRIFLAGS=-Zmiri-env-forward=RUST_BACKTRACE` for the environment variable to have an effect

thread 'main' panicked at /checkout/library/core/src/panicking.rs:218:5:
panic in a function that cannot unwind
stack backtrace:
   0:           0xfa962b - std::backtrace_rs::backtrace::miri::trace_unsynchronized::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:108:9
   1:           0xfa9175 - std::backtrace_rs::backtrace::miri::trace::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:65:14
   2:           0xfa7910 - std::backtrace_rs::backtrace::trace_unsynchronized::<{closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   3:           0xee1027 - std::sys::backtrace::_print_fmt
                               at /checkout/library/std/src/sys/backtrace.rs:66:9
   4:           0xee0c07 - <std::sys::backtrace::BacktraceLock<'_>::print::DisplayBacktrace as std::fmt::Display>::fmt
                               at /checkout/library/std/src/sys/backtrace.rs:39:26
---
  12:           0x1d5a72 - std::panicking::rust_panic_with_hook
                               at /checkout/library/std/src/panicking.rs:833:13
  13:           0x1d4622 - std::panicking::begin_panic_handler::{closure#0}
                               at /checkout/library/std/src/panicking.rs:699:13
  14:           0xee1eb4 - std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>
                               at /checkout/library/std/src/sys/backtrace.rs:168:18
  15:           0x1d45c6 - std::panicking::begin_panic_handler
                               at /checkout/library/std/src/panicking.rs:697:5
  16:           0x199e91 - core::panicking::panic_nounwind_fmt::runtime
                               at /checkout/library/core/src/panicking.rs:117:22
  17:           0x3ac1c1 - core::panicking::panic_nounwind_fmt
---
  28:            0x9b290 - std::panic::catch_unwind::<&dyn std::ops::Fn() -> i32 + std::marker::Sync + std::panic::RefUnwindSafe, i32>
                               at /checkout/library/std/src/panic.rs:359:14
  29:           0x1b3125 - std::rt::lang_start_internal::{closure#0}
                               at /checkout/library/std/src/rt.rs:168:24
  30:           0x1d380e - std::panicking::r#try::do_call::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panicking.rs:589:40
  31:           0x1d318e - std::panicking::r#try::<isize, {closure@std::rt::lang_start_internal::{closure#0}}>
                               at /checkout/library/std/src/panicking.rs:552:19
  32:            0x9b2b1 - std::panic::catch_unwind::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panic.rs:359:14
  33:           0x1b309f - std::rt::lang_start_internal
                               at /checkout/library/std/src/rt.rs:164:5
  34:           0x1b3558 - std::rt::lang_start::<()>
                               at /checkout/library/std/src/rt.rs:198:5
---
   = note: BACKTRACE:
   = note: inside `std::sys::pal::unix::abort_internal` at /checkout/library/std/src/sys/pal/unix/mod.rs:366:14: 366:27
   = note: inside `std::panicking::rust_panic_with_hook` at /checkout/library/std/src/panicking.rs:855:9: 855:37
   = note: inside closure at /checkout/library/std/src/panicking.rs:699:13: 704:14
   = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at /checkout/library/std/src/sys/backtrace.rs:168:18: 168:21
   = note: inside `std::panicking::begin_panic_handler` at /checkout/library/std/src/panicking.rs:697:5: 713:7
   = note: inside `core::panicking::panic_nounwind` at /checkout/library/core/src/panicking.rs:218:5: 218:91
   = note: inside `core::panicking::panic_cannot_unwind` at /checkout/library/core/src/panicking.rs:323:5: 323:61
note: inside `nounwind`
  --> tests/fail/function_calls/exported_symbol_bad_unwind2.rs:11:1
   |
LL | / extern "C-unwind" fn nounwind() {
LL | |     panic!();
LL | | }
   | |_^
note: inside `main`
  --> tests/fail/function_calls/exported_symbol_bad_unwind2.rs:20:14
---

thread 'main' panicked at tests/fail/function_calls/exported_symbol_bad_unwind2.rs:12:5:
explicit panic
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
note: in Miri, you may have to set `MIRIFLAGS=-Zmiri-env-forward=RUST_BACKTRACE` for the environment variable to have an effect

thread 'main' panicked at /checkout/library/core/src/panicking.rs:218:5:
panic in a function that cannot unwind
stack backtrace:
   0:           0xfa962b - std::backtrace_rs::backtrace::miri::trace_unsynchronized::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:108:9
   1:           0xfa9175 - std::backtrace_rs::backtrace::miri::trace::<&mut {closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/miri.rs:65:14
   2:           0xfa7910 - std::backtrace_rs::backtrace::trace_unsynchronized::<{closure@std::sys::backtrace::_print_fmt::{closure#1}}>
                               at /checkout/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   3:           0xee1027 - std::sys::backtrace::_print_fmt
                               at /checkout/library/std/src/sys/backtrace.rs:66:9
   4:           0xee0c07 - <std::sys::backtrace::BacktraceLock<'_>::print::DisplayBacktrace as std::fmt::Display>::fmt
                               at /checkout/library/std/src/sys/backtrace.rs:39:26
---
  12:           0x1d5a72 - std::panicking::rust_panic_with_hook
                               at /checkout/library/std/src/panicking.rs:833:13
  13:           0x1d4622 - std::panicking::begin_panic_handler::{closure#0}
                               at /checkout/library/std/src/panicking.rs:699:13
  14:           0xee1eb4 - std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>
                               at /checkout/library/std/src/sys/backtrace.rs:168:18
  15:           0x1d45c6 - std::panicking::begin_panic_handler
                               at /checkout/library/std/src/panicking.rs:697:5
  16:           0x199e91 - core::panicking::panic_nounwind_fmt::runtime
                               at /checkout/library/core/src/panicking.rs:117:22
  17:           0x3ac1c1 - core::panicking::panic_nounwind_fmt
---
  28:            0x9b290 - std::panic::catch_unwind::<&dyn std::ops::Fn() -> i32 + std::marker::Sync + std::panic::RefUnwindSafe, i32>
                               at /checkout/library/std/src/panic.rs:359:14
  29:           0x1b3125 - std::rt::lang_start_internal::{closure#0}
                               at /checkout/library/std/src/rt.rs:168:24
  30:           0x1d380e - std::panicking::r#try::do_call::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panicking.rs:589:40
  31:           0x1d318e - std::panicking::r#try::<isize, {closure@std::rt::lang_start_internal::{closure#0}}>
                               at /checkout/library/std/src/panicking.rs:552:19
  32:            0x9b2b1 - std::panic::catch_unwind::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>
                               at /checkout/library/std/src/panic.rs:359:14
  33:           0x1b309f - std::rt::lang_start_internal
                               at /checkout/library/std/src/rt.rs:164:5
  34:           0x1b3558 - std::rt::lang_start::<()>
                               at /checkout/library/std/src/rt.rs:198:5
---
   = note: BACKTRACE:
   = note: inside `std::sys::pal::unix::abort_internal` at /checkout/library/std/src/sys/pal/unix/mod.rs:366:14: 366:27
   = note: inside `std::panicking::rust_panic_with_hook` at /checkout/library/std/src/panicking.rs:855:9: 855:37
   = note: inside closure at /checkout/library/std/src/panicking.rs:699:13: 704:14
   = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at /checkout/library/std/src/sys/backtrace.rs:168:18: 168:21
   = note: inside `std::panicking::begin_panic_handler` at /checkout/library/std/src/panicking.rs:697:5: 713:7
   = note: inside `core::panicking::panic_nounwind` at /checkout/library/core/src/panicking.rs:218:5: 218:91
   = note: inside `core::panicking::panic_cannot_unwind` at /checkout/library/core/src/panicking.rs:323:5: 323:61
note: inside `nounwind`
  --> tests/fail/function_calls/exported_symbol_bad_unwind2.rs:11:1
   |
LL | / extern "C-unwind" fn nounwind() {
LL | |     panic!();
LL | | }
   | |_^
note: inside `main`
  --> tests/fail/function_calls/exported_symbol_bad_unwind2.rs:20:14
---

Location:
   /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ui_test-0.29.2/src/lib.rs:369

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
error: test failed, to rerun pass `--test ui`

Caused by:
  process didn't exit successfully: `/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools/x86_64-unknown-linux-gnu/release/deps/ui-2c4f1065bc64e3d9` (exit status: 1)
Command has failed. Rerun with -v to see more details.
Build completed unsuccessfully in 0:04:34
  local time: Fri Apr 25 23:26:51 UTC 2025
  network time: Fri, 25 Apr 2025 23:26:51 GMT
##[error]Process completed with exit code 1.
Post job cleanup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf-regression Performance regression. S-experimental Status: Ongoing experiment that does not require reviewing and won't be merged in its current state. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants