Tokio crash on macOS with "Top Functions" view
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- macos, rust
- Domain
- desktop, performance
Research direction
Start by reproducing the crash on macOS Tahoe with the Top Functions view open. Inspect devfiler::ui::tabs::top_funcs::query_top_funcs at top_funcs.rs:351, the frame identified in the crash report, and trace the failing Tokio worker path. Done means the reported Top Functions workflow no longer crashes.
Written by the indexing model from the issue text.
Description
devfiler is crashing on macOS (Tahoe 26.3.1) in what seems to be a null pointer dereference in a Tokio worker thread:
Triggered by Thread: 23 tokio-runtime-worker
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: UNKNOWN_0xD at 0x0000000000000000
Exception Codes: 0x000000000000000d, 0x0000000000000000
Termination Reason: Namespace SIGNAL, Code 11, Segmentation fault: 11
Terminating Process: exc handler [89142]
Thread 23 Crashed:: tokio-runtime-worker
0 devfiler 0x10289e020 devfiler::ui::tabs::top_funcs::query_top_funcs::_$u7b$$u7b$closure$u7d$$u7d$::he6feae051a32a4e2 + 416 (top_funcs.rs:351) [inlined]
1 devfiler 0x10289e020 _$LT$tokio..runtime..blocking..task..BlockingTask$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::h731dac7e2cd87dd2 + 528 (task.rs:42)
2 devfiler 0x102855ce6 tokio::runtime::task::core::Core$LT$T$C$S$GT$::poll::_$u7b$$u7b$closure$u7d$$u7d$::h0eb8a7fd47735f11 + 29 (core.rs:331) [inlined]
3 devfiler 0x102855ce6 tokio::loom::std::unsafe_cell::UnsafeCell$LT$T$GT$::with_mut::hcdb61f0a3209e039 + 29 (unsafe_cell.rs:16) [inlined]
4 devfiler 0x102855ce6 tokio::runtime::task::core::Core$LT$T$C$S$GT$::poll::hf076a201589d0dd3 + 29 (core.rs:320) [inlined]
5 devfiler 0x102855ce6 tokio::runtime::task::harness::poll_future::_$u7b$$u7b$closure$u7d$$u7d$::h77b90c48af23508d + 29 (harness.rs:499) [inlined]
6 devfiler 0x102855ce6 _$LT$core..panic..unwind_safe..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::h5f07ed0338524133 + 29 (unwind_safe.rs:272) [inlined]
7 devfiler 0x102855ce6 std::panicking::try::do_call::hed534c9cb12b1efa + 29 (panicking.rs:589) [inlined]
8 devfiler 0x102855ce6 std::panicking::try::hfa99f32d1aef35e2 + 29 (panicking.rs:552) [inlined]
9 devfiler 0x102855ce6 std::panic::catch_unwind::hf7d663814caafbfa + 29 (panic.rs:359) [inlined]
10 devfiler 0x102855ce6 tokio::runtime::task::harness::poll_future::h0f7713133ec0739d + 29 (harness.rs:487) [inlined]
11 devfiler 0x102855ce6 tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll_inner::hc3db93efab6897bf + 102 (harness.rs:209) [inlined]
12 devfiler 0x102855ce6 tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll::heb064cfaec1bf704 + 118 (harness.rs:154)
13 devfiler 0x1032f768d tokio::runtime::blocking::pool::Inner::run::h2650d2cb3a87b969 + 285
14 devfiler 0x103301dc0 std::sys::backtrace::__rust_begin_short_backtrace::he1ca7edd5a1f80fa + 96
15 devfiler 0x1033035f2 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h5964362f7a142a02 + 226
16 devfiler 0x103340d1b std::sys::pal::unix::thread::Thread::new::thread_start::h110981749b5ebcd9 + 43
17 libsystem_pthread.dylib 0x7ff815beae4d _pthread_start + 115
18 libsystem_pthread.dylib 0x7ff815be6857 thread_start + 15
Note that this is not a new issue, it just took me a while to trigger as I almost never use "Top Functions" view.
- Dominant language
- Rust
- Stars
- 131
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from elastic/devfiler
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
Dependency Dashboard Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
All issues in elastic/devfiler
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100