summaryrefslogtreecommitdiff
path: root/src/tools/miri/tests/fail/panic/double_panic.stderr
blob: f04dfab36cad8e46755a8e624a787971c738076d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
thread 'main' panicked at 'first', $DIR/double_panic.rs:LL:CC
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'second', $DIR/double_panic.rs:LL:CC
stack backtrace:
   0: std::backtrace_rs::backtrace::miri::trace_unsynchronized
 at RUSTLIB/std/src/../../backtrace/src/backtrace/miri.rs:LL:CC
   1: std::backtrace_rs::backtrace::miri::trace
 at RUSTLIB/std/src/../../backtrace/src/backtrace/miri.rs:LL:CC
   2: std::backtrace_rs::backtrace::trace_unsynchronized
 at RUSTLIB/std/src/../../backtrace/src/backtrace/mod.rs:LL:CC
   3: std::sys_common::backtrace::_print_fmt
 at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
   4: <std::sys_common::backtrace::_print::DisplayBacktrace as std::fmt::Display>::fmt
 at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
   5: core::fmt::rt::Argument::fmt
 at RUSTLIB/core/src/fmt/rt.rs:LL:CC
   6: std::fmt::write
 at RUSTLIB/core/src/fmt/mod.rs:LL:CC
   7: <std::sys::PLATFORM::stdio::Stderr as std::io::Write>::write_fmt
 at RUSTLIB/std/src/io/mod.rs:LL:CC
   8: std::sys_common::backtrace::_print
 at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
   9: std::sys_common::backtrace::print
 at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
  10: std::panicking::default_hook::{closure#1}
 at RUSTLIB/std/src/panicking.rs:LL:CC
  11: std::panicking::default_hook
 at RUSTLIB/std/src/panicking.rs:LL:CC
  12: std::panicking::rust_panic_with_hook
 at RUSTLIB/std/src/panicking.rs:LL:CC
  13: std::rt::begin_panic::{closure#0}
 at RUSTLIB/std/src/panicking.rs:LL:CC
  14: std::sys_common::backtrace::__rust_end_short_backtrace
 at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
  15: std::rt::begin_panic
 at RUSTLIB/std/src/panicking.rs:LL:CC
  16: <Foo as std::ops::Drop>::drop
 at $DIR/double_panic.rs:LL:CC
  17: std::ptr::drop_in_place - shim(Some(Foo))
 at RUSTLIB/core/src/ptr/mod.rs:LL:CC
  18: main
 at $DIR/double_panic.rs:LL:CC
  19: <fn() as std::ops::FnOnce<()>>::call_once - shim(fn())
 at RUSTLIB/core/src/ops/function.rs:LL:CC
  20: std::sys_common::backtrace::__rust_begin_short_backtrace
 at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
  21: std::rt::lang_start::{closure#0}
 at RUSTLIB/std/src/rt.rs:LL:CC
  22: std::ops::function::impls::call_once
 at RUSTLIB/core/src/ops/function.rs:LL:CC
  23: std::panicking::r#try::do_call
 at RUSTLIB/std/src/panicking.rs:LL:CC
  24: std::panicking::r#try
 at RUSTLIB/std/src/panicking.rs:LL:CC
  25: std::panic::catch_unwind
 at RUSTLIB/std/src/panic.rs:LL:CC
  26: std::rt::lang_start_internal::{closure#2}
 at RUSTLIB/std/src/rt.rs:LL:CC
  27: std::panicking::r#try::do_call
 at RUSTLIB/std/src/panicking.rs:LL:CC
  28: std::panicking::r#try
 at RUSTLIB/std/src/panicking.rs:LL:CC
  29: std::panic::catch_unwind
 at RUSTLIB/std/src/panic.rs:LL:CC
  30: std::rt::lang_start_internal
 at RUSTLIB/std/src/rt.rs:LL:CC
  31: std::rt::lang_start
 at RUSTLIB/std/src/rt.rs:LL:CC
thread panicked while panicking. aborting.
error: abnormal termination: the program aborted execution
  --> RUSTLIB/std/src/sys/PLATFORM/mod.rs:LL:CC
   |
LL |     ABORT();
   | ^ the program aborted execution
   |
   = note: inside `std::sys::PLATFORM::abort_internal` at RUSTLIB/std/src/sys/PLATFORM/mod.rs:LL:CC
   = note: inside `std::panicking::rust_panic_with_hook` at RUSTLIB/std/src/panicking.rs:LL:CC
   = note: inside closure at RUSTLIB/std/src/panicking.rs:LL:CC
   = note: inside `std::sys_common::backtrace::__rust_end_short_backtrace::<[closure@std::rt::begin_panic<&str>::{closure#0}], !>` at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
note: inside `<Foo as std::ops::Drop>::drop`
  --> $DIR/double_panic.rs:LL:CC
   |
LL |         panic!("second");
   | ^
   = note: inside `std::ptr::drop_in_place::<Foo> - shim(Some(Foo))` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
note: inside `main`
  --> $DIR/double_panic.rs:LL:CC
   |
LL | }
   | ^
   = note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)

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

error: aborting due to previous error