Add some track_caller info to precondition panics by saethlin · Pull Request #129658 · rust-lang/rust (original) (raw)
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:📑: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:📑: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:📑: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:📑: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:📑: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:📑: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:📑: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:📑: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:📑: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:📑: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:📑: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:📑: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.