Skip to content

Instantly share code, notes, and snippets.

@correabuscar
Created March 21, 2024 17:40
Show Gist options
  • Save correabuscar/e81f1d790f24fc0ccd9f4f97c00e7a61 to your computer and use it in GitHub Desktop.
Save correabuscar/e81f1d790f24fc0ccd9f4f97c00e7a61 to your computer and use it in GitHub Desktop.
Running `target/debug/bisektor`
Custom panic handler starting!
Custom panic handler processing payload
Custom panic handler caught panic: not yet implemented
Panic occurred in file 'src/main.rs' at line 7
0: bisektor::main::{{closure}}
at ./src/main.rs:47:28
1: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/alloc/src/boxed.rs:1999:9
2: std::panicking::rust_panic_with_hook
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/panicking.rs:695:13
3: std::panicking::begin_panic_handler::{{closure}}
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/panicking.rs:580:13
4: std::sys_common::backtrace::__rust_end_short_backtrace
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/sys_common/backtrace.rs:151:18
5: rust_begin_unwind
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/panicking.rs:578:5
6: core::panicking::panic_fmt
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/core/src/panicking.rs:67:14
7: core::panicking::panic
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/core/src/panicking.rs:117:5
8: <bisektor::MyStruct as core::fmt::Display>::fmt
at ./src/main.rs:7:9
9: core::fmt::rt::Argument::fmt
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/core/src/fmt/rt.rs:138:9
10: core::fmt::write
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/core/src/fmt/mod.rs:1094:21
11: core::fmt::Write::write_fmt
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/core/src/fmt/mod.rs:192:9
12: std::panicking::begin_panic_handler::PanicPayload::fill::{{closure}}
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/panicking.rs:544:30
13: core::option::Option<T>::get_or_insert_with
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/core/src/option.rs:1645:26
14: std::panicking::begin_panic_handler::PanicPayload::fill
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/panicking.rs:542:13
15: <std::panicking::begin_panic_handler::PanicPayload as core::panic::BoxMeUp>::get
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/panicking.rs:560:13
16: std::panicking::rust_panic_with_hook
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/panicking.rs:694:30
17: std::panicking::begin_panic_handler::{{closure}}
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/panicking.rs:582:13
18: std::sys_common::backtrace::__rust_end_short_backtrace
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/sys_common/backtrace.rs:151:18
19: rust_begin_unwind
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/panicking.rs:578:5
20: core::panicking::panic_fmt
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/core/src/panicking.rs:67:14
21: bisektor::main
at ./src/main.rs:57:5
22: core::ops::function::FnOnce::call_once
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/core/src/ops/function.rs:250:5
23: std::sys_common::backtrace::__rust_begin_short_backtrace
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/sys_common/backtrace.rs:135:18
24: std::rt::lang_start::{{closure}}
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/rt.rs:166:18
25: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/core/src/ops/function.rs:284:13
26: std::panicking::try::do_call
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/panicking.rs:485:40
27: std::panicking::try
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/panicking.rs:449:19
28: std::panic::catch_unwind
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/panic.rs:142:14
29: std::rt::lang_start_internal::{{closure}}
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/rt.rs:148:48
30: std::panicking::try::do_call
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/panicking.rs:485:40
31: std::panicking::try
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/panicking.rs:449:19
32: std::panic::catch_unwind
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/panic.rs:142:14
33: std::rt::lang_start_internal
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/rt.rs:148:20
34: std::rt::lang_start
at /rustc/1a5f8bce74ee432f7cc3aa131bc3d6920e06de10/library/std/src/rt.rs:165:17
35: main
36: __libc_start_call_main
37: __libc_start_main@GLIBC_2.2.5
38: _start
thread panicked while panicking. aborting.
Aborted (core dumped)
@correabuscar
Copy link
Author

correabuscar commented Mar 21, 2024

code for the above is: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2024&gist=99770fa13c2aebcd47d355a4952d7584

but was run with:

$ rustc -vV
rustc 1.71.0-nightly (1a5f8bce7 2023-05-26)
binary: rustc
commit-hash: 1a5f8bce74ee432f7cc3aa131bc3d6920e06de10
commit-date: 2023-05-26
host: x86_64-unknown-linux-gnu
release: 1.71.0-nightly
LLVM version: 16.0.4


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment