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

Crash with debugging clang++/llvm18 #11991

Open
sbromberger opened this issue Nov 3, 2024 · 0 comments
Open

Crash with debugging clang++/llvm18 #11991

sbromberger opened this issue Nov 3, 2024 · 0 comments
Labels
C-bug Category: This is a bug

Comments

@sbromberger
Copy link
Contributor

Summary

I'm trying to debug a file built with clang++18. Helix crashes with no entry found for key.

This might be related to #11483.

Reproduction Steps

I tried this:

  1. hx
  2. (set breakpoint)
  3. launch debug target / binary / testmv
    I expected this to happen:

Debugger to launch

Instead, this happened:

Helix crashed.

Helix log

Backtrace:

$ RUST_BACKTRACE=full hx mvmap.hpp testmvmap.cpp                                                                                                                         

thread 'main' panicked at /home/seth/build/helix/helix-view/src/handlers/dap.rs:40:38:
no entry found for key
stack backtrace:
   0:     0x55a455e37c61 - std::backtrace_rs::backtrace::libunwind::trace::h67a838aed1f4d6ec
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/../../backtrace/src/backtra
ce/libunwind.rs:93:5
   1:     0x55a455e37c61 - std::backtrace_rs::backtrace::trace_unsynchronized::h1d1786bb1962baf8
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/../../backtrace/src/backtra
ce/mod.rs:66:5
   2:     0x55a455e37c61 - std::sys_common::backtrace::_print_fmt::h5a0b1f807a002d23
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/sys_common/backtrace.rs:67:
5
   3:     0x55a455e37c61 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hf84ab6ad0b9178
4c
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/sys_common/backtrace.rs:44:
22
   4:     0x55a45506f40c - core::fmt::rt::Argument::fmt::h28f463bd1fdabed5
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/fmt/rt.rs:138:9
   5:     0x55a45506f40c - core::fmt::write::ha37c23b175e921b3
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/fmt/mod.rs:1114:21
   6:     0x55a455e3397e - std::io::Write::write_fmt::haa1b000741bcbbe1
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/io/mod.rs:1763:15
   7:     0x55a455e37a44 - std::sys_common::backtrace::_print::h1ff1030b04dfb157
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/sys_common/backtrace.rs:47:
5
   8:     0x55a455e37a44 - std::sys_common::backtrace::print::hb982056c6f29541c
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/sys_common/backtrace.rs:34:
9
   9:     0x55a455e39dd3 - std::panicking::default_hook::{{closure}}::h11f92f82c62fbd68
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:272:22
  10:     0x55a455e39b11 - std::panicking::default_hook::hb8810fe276772c66
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:292:9
  11:     0x55a455e3a414 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h87b887549356728a
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/alloc/src/boxed.rs:2021:9
  12:     0x55a455e3a414 - std::panicking::rust_panic_with_hook::hd2f0efd2fec86cb0
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:735:13
  13:     0x55a455e3a1be - std::panicking::begin_panic_handler::{{closure}}::h3651b7fc4f61d784
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:609:13
  14:     0x55a455e38136 - std::sys_common::backtrace::__rust_end_short_backtrace::hbc468e4b98c7ae04
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/sys_common/backtrace.rs:170
:18
  15:     0x55a455e39f62 - rust_begin_unwind
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:597:5
  16:     0x55a454f73415 - core::panicking::panic_fmt::h979245e2fdb2fabd
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/panicking.rs:72:14
  17:     0x55a454f733d3 - core::panicking::panic_display::h9b355c58fd35af38
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/panicking.rs:168:5
  18:     0x55a454f733d3 - core::panicking::panic_str::h187a5146d72e7d2f
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/panicking.rs:152:5
  19:     0x55a454f733d3 - core::option::expect_failed::h7cdfa49208a82a89
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/option.rs:1988:5
  20:     0x55a455ba88b3 - helix_view::handlers::dap::select_thread_id::{{closure}}::h7934e7aa124afa99
  21:     0x55a455bb0108 - helix_view::handlers::dap::<impl helix_view::editor::Editor>::handle_debugger_message::{{closure}}
::h683e33e92375908f
  22:     0x55a455ba5e76 - helix_term::application::Application::run::{{closure}}::h8107c506a7af6db4
  23:     0x55a455bba9fd - tokio::runtime::park::CachedParkThread::block_on::h0836cae991203320
  24:     0x55a455c4c2d4 - tokio::runtime::context::runtime::enter_runtime::h3006f787a4f146ff
  25:     0x55a455c2d48c - hx::main::hbf939fe5bc0a9dbd
1984]
  26:     0x55a455c44803 - std::sys_common::backtrace::__rust_begin_short_backtrace::h142415f0f159a29c
  27:     0x55a455c4481d - std::rt::lang_start::{{closure}}::h68b1f3b4237372ab
  28:     0x55a455e2b5bf - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::hf9057cfaeeb2
52e2
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/ops/function.rs:284:13
  29:     0x55a455e2b5bf - std::panicking::try::do_call::h629e203a624883e4
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:504:40
  30:     0x55a455e2b5bf - std::panicking::try::h7b61614724d6a4f1
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:468:19
  31:     0x55a455e2b5bf - std::panic::catch_unwind::h354ac1c0268491d8
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panic.rs:142:14
  32:     0x55a455e2b5bf - std::rt::lang_start_internal::{{closure}}::h919fee3c5ba8f617
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/rt.rs:148:48
  33:     0x55a455e2b5bf - std::panicking::try::do_call::h54583f67455bff32
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:504:40
  34:     0x55a455e2b5bf - std::panicking::try::hb0e12c4e01d39dc2
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:468:19
  35:     0x55a455e2b5bf - std::panic::catch_unwind::h367b6339e3ca9a3b
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panic.rs:142:14
  36:     0x55a455e2b5bf - std::rt::lang_start_internal::ha5ce8533eaa0fda8
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/rt.rs:148:20
  37:     0x55a455c2d6c5 - main
  38:     0x7f352e09fc4c - __libc_start_call_main
                               at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
  39:     0x7f352e09fd05 - __libc_start_main_impl
                               at ./csu/../csu/libc-start.c:360:3
  40:     0x55a454feb601 - _start
                               at /builddir/glibc-2.39/csu/../sysdeps/x86_64/start.S:115
  41:                0x0 - <unknown>

Platform

Void linux

Terminal Emulator

blink.sh via mosh w/ tmux

Installation Method

source

Helix Version

helix 24.7 (cfe6076a)

@sbromberger sbromberger added the C-bug Category: This is a bug label Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

1 participant