Skip to content
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

Bug with not-perf(local_unwinding) #101

Open
nuttert opened this issue Dec 14, 2022 · 3 comments
Open

Bug with not-perf(local_unwinding) #101

nuttert opened this issue Dec 14, 2022 · 3 comments

Comments

@nuttert
Copy link

nuttert commented Dec 14, 2022

thread '<unnamed>' panicked at 'index out of bounds: the len is 256 but the index is 18446744073709551615', /home/user/.cargo/git/checkouts/not-perf-af1a46759dd83df9/911723c/nwind/src/local_unwinding.rs:455:26
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted

I got the error(unfortunately I can't attach the code), there is some problem with index calculations.

I can only say that we are using memory mapping of a huge file (150 GB), while I do not access this memory, everything is ok, I believe that the problems begin immediately when accessing(but that's just a hypothesis).

Linux version 5.15.0-1026-aws gcc (Ubuntu ~20.04.1) 9.4.0, x86_64


stack backtrace:
   0: rust_begin_unwind
             at /rustc/d0dc9efff14ac0a1eeceffd1e605e37eeb8362a0/library/std/src/panicking.rs:575:5
   1: core::panicking::panic_fmt
             at /rustc/d0dc9efff14ac0a1eeceffd1e605e37eeb8362a0/library/core/src/panicking.rs:64:14
   2: core::panicking::panic_bounds_check
             at /rustc/d0dc9efff14ac0a1eeceffd1e605e37eeb8362a0/library/core/src/panicking.rs:147:5
   3: nwind::local_unwinding::ShadowStack::push
             at /home/user/.cargo/git/checkouts/not-perf-af1a46759dd83df9/911723c/nwind/src/local_unwinding.rs:455:26
   4: nwind::local_unwinding::LocalAddressSpace::unwind_through_fresh_frames
             at /home/user/.cargo/git/checkouts/not-perf-af1a46759dd83df9/911723c/nwind/src/local_unwinding.rs:905:27
   5: bytehound::unwind::grab_with_unwind_state
             at /home/user/bytehound/preload/src/unwind.rs:393:31
   6: nwind_ret_trampoline_start
             at /home/user/cargo/git/checkouts/not-perf-af1a46759dd83df9/911723c/nwind/src/arch/amd64_trampoline.s:17

I see amd64_trampoline here, is it ok(I use x86)?

@nuttert
Copy link
Author

nuttert commented Dec 20, 2022

The problem in the commit Update nwind to 20e4ddc @koute

@nuttert
Copy link
Author

nuttert commented Jan 4, 2023

Hey guys, is anyone alive? 😅
@koute, or may be @CsatariGergely ...

@preslavle
Copy link

preslavle commented Aug 28, 2023

I am hitting this too. Running on AWS Graviton

stack backtrace:
   0:     0xffffafd10368 - std::backtrace_rs::backtrace::libunwind::trace::h14c7f950a9fbd0fb
                               at /rustc/c0983a9aac889d16722a12602ac678051e62c3fb/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   1:     0xffffafd10368 - std::backtrace_rs::backtrace::trace_unsynchronized::h9f22adb7e822c7cc
                               at /rustc/c0983a9aac889d16722a12602ac678051e62c3fb/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0xffffafd10368 - std::sys_common::backtrace::_print_fmt::he29650cef1baf79b
                               at /rustc/c0983a9aac889d16722a12602ac678051e62c3fb/library/std/src/sys_common/backtrace.rs:66:5
   3:     0xffffafd10368 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h86dca612c56e965d
                               at /rustc/c0983a9aac889d16722a12602ac678051e62c3fb/library/std/src/sys_common/backtrace.rs:45:22
   4:     0xffffafcc85f8 - core::fmt::write::hf53eafa31f33ff33
                               at /rustc/c0983a9aac889d16722a12602ac678051e62c3fb/library/core/src/fmt/mod.rs:1209:17
   5:     0xffffafcf4290 - std::io::Write::write_fmt::h3d0aa180e3a1924e
                               at /rustc/c0983a9aac889d16722a12602ac678051e62c3fb/library/std/src/io/mod.rs:1680:15
   6:     0xffffafd10e6c - std::sys_common::backtrace::_print::h65ae785b2839811f
                               at /rustc/c0983a9aac889d16722a12602ac678051e62c3fb/library/std/src/sys_common/backtrace.rs:48:5
   7:     0xffffafd10e6c - std::sys_common::backtrace::print::h5094d9b652e55b51
                               at /rustc/c0983a9aac889d16722a12602ac678051e62c3fb/library/std/src/sys_common/backtrace.rs:35:9
   8:     0xffffafd10e6c - std::panicking::default_hook::{{closure}}::h9cf17da72539362b
                               at /rustc/c0983a9aac889d16722a12602ac678051e62c3fb/library/std/src/panicking.rs:267:22
   9:     0xffffafd114d4 - std::panicking::default_hook::h60aadb13955e21f5
                               at /rustc/c0983a9aac889d16722a12602ac678051e62c3fb/library/std/src/panicking.rs:286:9
  10:     0xffffafd114d4 - std::panicking::rust_panic_with_hook::hcb6c786f4d42ec43
                               at /rustc/c0983a9aac889d16722a12602ac678051e62c3fb/library/std/src/panicking.rs:688:13
  11:     0xffffafd111f4 - std::panicking::begin_panic_handler::{{closure}}::ha5a0a21a8d71d9aa
                               at /rustc/c0983a9aac889d16722a12602ac678051e62c3fb/library/std/src/panicking.rs:579:13
  12:     0xffffafd11168 - std::sys_common::backtrace::__rust_end_short_backtrace::h259a79fe3a411d52
                               at /rustc/c0983a9aac889d16722a12602ac678051e62c3fb/library/std/src/sys_common/backtrace.rs:138:18
  13:     0xffffafd11144 - rust_begin_unwind
                               at /rustc/c0983a9aac889d16722a12602ac678051e62c3fb/library/std/src/panicking.rs:575:5
  14:     0xffffafc6dfec - core::panicking::panic_fmt::h46030d397fa08c3c
                               at /rustc/c0983a9aac889d16722a12602ac678051e62c3fb/library/core/src/panicking.rs:65:14
  15:     0xffffafc6e038 - core::panicking::panic_bounds_check::h403420092da262ff
                               at /rustc/c0983a9aac889d16722a12602ac678051e62c3fb/library/core/src/panicking.rs:151:5
  16:     0xffffafc98d90 - nwind::local_unwinding::ShadowStack::push::hecf859428c553613
                               at /cache/cargo/git/checkouts/not-perf-af1a46759dd83df9/911723c/nwind/src/local_unwinding.rs:455:26
  17:     0xffffafc98d90 - nwind::local_unwinding::LocalAddressSpace::unwind_through_fresh_frames::hef42f2bd7a59ce74
                               at /convex/bytehound/preload/src/unwind.rs:393:31
  18:     0xffffafc98d90 - bytehound::unwind::grab_with_unwind_state::hebf000e283895c43
                               at /convex/bytehound/preload/src/unwind.rs:393:31
  19:     0xffffafd79df4 - nwind_ret_trampoline_start
                               at /cache/cargo/git/checkouts/not-perf-af1a46759dd83df9/911723c/nwind/src/arch/aarch64_trampoline.s:15
  20:                0x0 - <unknown>

@nuttert did you find a workaround? Do versions prior to the problem commit above work? Seems pretty old commit to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants