rust-analyzer: rust-analyzer crashes when loading tokio projects
rust-analyzer version: rust-analyzer 0.0.0 (a6603fc21 2023-02-16)
rustc version: rustc 1.67.1 (d5a82bbd2 2023-02-07)
relevant settings: Not sure if any environment variables are being set. Using helix editor.
I’ve noticed that rust-analyzer crashes when loading tokio projects. The lightest projects I’ve noticed this in only have either tokio + redis or tokio + chrono as dependencies. Here’s what I get from rust-analyzer analysis-stats .:
Database loaded: 977.68ms (metadata 737.67ms; build 135.62ms)
crates: 2, mods: 17, decls: 92, fns: 63
Item Collection: 7.50s
4/63 6% processing: test_getrust-analyzer(35815,0x1065e8600) malloc: *** error for object 0x6000146fe300: pointer being freed was not allocated
rust-analyzer(35815,0x1065e8600) malloc: *** set a breakpoint in malloc_error_break to debug
zsh: abort rust-analyzer analysis-stats .
Here’s the full crash report:
Crash Report
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: rust-analyzer [35404]
Path: /usr/local/Cellar/rust-analyzer/2023-02-20/bin/rust-analyzer
Identifier: rust-analyzer
Version: ???
Code Type: X86-64 (Native)
Parent Process: hx [35403]
Responsible: iTerm2 [1492]
User ID: 501
Date/Time: 2023-02-22 20:05:52.6678 +0000
OS Version: macOS 12.6.3 (21G419)
Report Version: 12
Bridge OS Version: 7.2 (20P3045)
Anonymous UUID: 35091721-F39F-470C-A28C-910D57315878
Sleep/Wake UUID: 619D4117-8EB2-41A1-B125-B92364719B72
Time Awake Since Boot: 57000 seconds
Time Since Wake: 3928 seconds
System Integrity Protection: enabled
Crashed Thread: 5 Worker
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
abort() called
Thread 0:: main Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x7ff81c88f0ea __ulock_wait + 10
1 libsystem_pthread.dylib 0x7ff81c8cbc95 _pthread_join + 358
2 rust-analyzer 0x10d5c1bf0 std::sys::unix::thread::Thread::join::h40594c04f82780fc + 16
3 rust-analyzer 0x10c6ce8da std::thread::JoinHandle$LT$T$GT$::join::h1f12fa40bccf7c07 + 42
4 rust-analyzer 0x10c670665 rust_analyzer::with_extra_thread::hd1942c2f5f9f3544 + 229
5 rust-analyzer 0x10c6a746f rust_analyzer::main::hadc7b696883cb6b0 + 4719
6 rust-analyzer 0x10c6cd326 std::sys_common::backtrace::__rust_begin_short_backtrace::h6756f4972932ea0f + 6
7 rust-analyzer 0x10c6d20ec std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::ha6f52560b59f130a + 12
8 rust-analyzer 0x10d5c6388 std::rt::lang_start_internal::h63aa6976ade06f50 + 40
9 rust-analyzer 0x10c6a9c1c main + 44
10 dyld 0x10f16d52e start + 462
Thread 1:: LspServer
0 libsystem_kernel.dylib 0x7ff81c88d9b6 semaphore_wait_trap + 10
1 libdispatch.dylib 0x7ff81c7137ce _dispatch_sema4_wait + 16
2 libdispatch.dylib 0x7ff81c713c9d _dispatch_semaphore_wait_slow + 98
3 rust-analyzer 0x10d5e9680 std::thread::park::h8596ea2a7a6bd2d9 + 48
4 rust-analyzer 0x10cf6e29b crossbeam_channel::context::Context::wait_until::h1bfd3775fc02423f + 811
5 rust-analyzer 0x10cf6deb1 crossbeam_channel::context::Context::with::_$u7b$$u7b$closure$u7d$$u7d$::h42c0a6ce894c0551 + 833
6 rust-analyzer 0x10cf6e4ba crossbeam_channel::select::run_select::h0e6cabbbdec70909 + 474
7 rust-analyzer 0x10c7e30d4 rust_analyzer::main_loop::_$LT$impl$u20$rust_analyzer..global_state..GlobalState$GT$::run::h8652d4b7bb188877 + 2132
8 rust-analyzer 0x10c81f694 rust_analyzer::main_loop::main_loop::h44b49150bd2d95fe + 484
9 rust-analyzer 0x10c6a9114 rust_analyzer::run_server::h1e64d412550020b1 + 4612
10 rust-analyzer 0x10c6cd319 std::sys_common::backtrace::__rust_begin_short_backtrace::h3c93dea765064fd2 + 9
11 rust-analyzer 0x10c6cf316 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h2d426602cb4e5c96 + 118
12 rust-analyzer 0x10d5c1a47 std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092 + 39
13 libsystem_pthread.dylib 0x7ff81c8ca4e1 _pthread_start + 125
14 libsystem_pthread.dylib 0x7ff81c8c5f6b thread_start + 15
Thread 2:
0 libsystem_kernel.dylib 0x7ff81c88d9b6 semaphore_wait_trap + 10
1 libdispatch.dylib 0x7ff81c7137ce _dispatch_sema4_wait + 16
2 libdispatch.dylib 0x7ff81c713c9d _dispatch_semaphore_wait_slow + 98
3 rust-analyzer 0x10d5e9680 std::thread::park::h8596ea2a7a6bd2d9 + 48
4 rust-analyzer 0x10ca1e240 crossbeam_channel::context::Context::wait_until::h1bfd3775fc02423f + 800
5 rust-analyzer 0x10ca1ec0c crossbeam_channel::context::Context::with::_$u7b$$u7b$closure$u7d$$u7d$::hb2334eaf29c5cd68 + 284
6 rust-analyzer 0x10ca1f9aa crossbeam_channel::flavors::zero::Channel$LT$T$GT$::recv::h314b607912df171c + 1114
7 rust-analyzer 0x10ca23788 crossbeam_channel::channel::Receiver$LT$T$GT$::recv::h9193a814758ca302 + 120
8 rust-analyzer 0x10ca1d75c std::sys_common::backtrace::__rust_begin_short_backtrace::h60725cd389e4e017 + 108
9 rust-analyzer 0x10ca22c24 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::he6a06ffea7588b3f + 148
10 rust-analyzer 0x10d5c1a47 std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092 + 39
11 libsystem_pthread.dylib 0x7ff81c8ca4e1 _pthread_start + 125
12 libsystem_pthread.dylib 0x7ff81c8c5f6b thread_start + 15
Thread 3:
0 libsystem_kernel.dylib 0x7ff81c88e3ba read + 10
1 rust-analyzer 0x10d5f0b23 std::io::read_until::h976776084d9fabe9 + 371
2 rust-analyzer 0x10d5ef96d std::io::append_to_string::h72576dcb4a6dce6f + 45
3 rust-analyzer 0x10d5bcdcb _$LT$std..io..stdio..StdinLock$u20$as$u20$std..io..BufRead$GT$::read_line::h43603af26cd4f812 + 27
4 rust-analyzer 0x10ca2d605 lsp_server::msg::Message::_read::hc0d2998210abc70b + 101
5 rust-analyzer 0x10ca1d497 std::sys_common::backtrace::__rust_begin_short_backtrace::h05731bf51a9bbd29 + 103
6 rust-analyzer 0x10ca229f4 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h40f66eac11c8fba8 + 148
7 rust-analyzer 0x10d5c1a47 std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092 + 39
8 libsystem_pthread.dylib 0x7ff81c8ca4e1 _pthread_start + 125
9 libsystem_pthread.dylib 0x7ff81c8c5f6b thread_start + 15
Thread 4:: VfsLoader
0 libsystem_kernel.dylib 0x7ff81c88d9b6 semaphore_wait_trap + 10
1 libdispatch.dylib 0x7ff81c7137ce _dispatch_sema4_wait + 16
2 libdispatch.dylib 0x7ff81c713c9d _dispatch_semaphore_wait_slow + 98
3 rust-analyzer 0x10d5e9680 std::thread::park::h8596ea2a7a6bd2d9 + 48
4 rust-analyzer 0x10cf6e29b crossbeam_channel::context::Context::wait_until::h1bfd3775fc02423f + 811
5 rust-analyzer 0x10cf6deb1 crossbeam_channel::context::Context::with::_$u7b$$u7b$closure$u7d$$u7d$::h42c0a6ce894c0551 + 833
6 rust-analyzer 0x10cf6e4ba crossbeam_channel::select::run_select::h0e6cabbbdec70909 + 474
7 rust-analyzer 0x10c9fe0ac vfs_notify::NotifyActor::run::h4f02e03c118455c0 + 316
8 rust-analyzer 0x10ca029bd std::sys_common::backtrace::__rust_begin_short_backtrace::h78fb6416dc20482c + 61
9 rust-analyzer 0x10c9faf5f core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h0783495701fd8aa0 + 207
10 rust-analyzer 0x10d5c1a47 std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092 + 39
11 libsystem_pthread.dylib 0x7ff81c8ca4e1 _pthread_start + 125
12 libsystem_pthread.dylib 0x7ff81c8c5f6b thread_start + 15
Thread 5 Crashed:: Worker
0 libsystem_kernel.dylib 0x7ff81c89400e __pthread_kill + 10
1 libsystem_pthread.dylib 0x7ff81c8ca1ff pthread_kill + 263
2 libsystem_c.dylib 0x7ff81c815d24 abort + 123
3 libsystem_malloc.dylib 0x7ff81c6f3357 malloc_vreport + 551
4 libsystem_malloc.dylib 0x7ff81c6f652b malloc_report + 151
5 rust-analyzer 0x10d0eca6f core::ptr::drop_in_place$LT$chalk_ir..Binders$LT$chalk_solve..rust_ir..OpaqueTyDatumBound$LT$hir_ty..interner..Interner$GT$$GT$$GT$::haa4c93c5d7024ea1 + 63
6 rust-analyzer 0x10d03bf92 alloc::sync::Arc$LT$T$GT$::drop_slow::h7676f3500110e80f + 18
7 rust-analyzer 0x10d169ab7 chalk_solve::clauses::program_clauses_that_could_match::h552f6c8170760d0c + 2759
8 rust-analyzer 0x10d020f74 chalk_recursive::solve::SolveIteration::solve_iteration::hfb761f694aff9bcb + 1684
9 rust-analyzer 0x10d0a5402 chalk_recursive::fixed_point::RecursiveContext$LT$K$C$V$GT$::solve_goal::h9dfc34972ce1ba93 + 3122
10 rust-analyzer 0x10d0a6387 chalk_recursive::fixed_point::RecursiveContext$LT$K$C$V$GT$::solve_root_goal::h81046cd9ccad88c8 + 455
11 rust-analyzer 0x10d12c00b hir_ty::traits::trait_solve_query::hc12451fa64638693 + 2699
12 rust-analyzer 0x10d1529c1 salsa::runtime::Runtime::execute_query_implementation::h509993448613ce52 + 449
13 rust-analyzer 0x10d1d48f0 salsa::derived::slot::Slot$LT$Q$C$MP$GT$::read_upgrade::hf25dc3a99e54fa21 + 2304
14 rust-analyzer 0x10d1f1afa salsa::derived::slot::Slot$LT$Q$C$MP$GT$::read::h1d81bb4fa93b4f83 + 1130
15 rust-analyzer 0x10d017e5b _$LT$salsa..derived..DerivedStorage$LT$Q$C$MP$GT$$u20$as$u20$salsa..plumbing..QueryStorageOps$LT$Q$GT$$GT$::try_fetch::h9680b0cb369360a1 + 651
16 rust-analyzer 0x10d062543 salsa::QueryTable$LT$Q$GT$::get::h8221f96701e0ef85 + 83
17 rust-analyzer 0x10d195bc9 _$LT$DB$u20$as$u20$hir_ty..db..HirDatabase$GT$::trait_solve_query::__shim::ha4908857ec224f34 + 105
18 rust-analyzer 0x10cc21aa7 _$LT$DB$u20$as$u20$hir_ty..db..HirDatabase$GT$::trait_solve_query::h48bbebd9c7d24aa4 + 55
19 rust-analyzer 0x10d193161 hir_ty::db::trait_solve_wait::h0bd5176a9282cc9f + 209
20 rust-analyzer 0x10cc21897 _$LT$DB$u20$as$u20$hir_ty..db..HirDatabase$GT$::trait_solve::h838b30557b49041a + 55
21 rust-analyzer 0x10d1a5e8d hir_ty::infer::unify::InferenceTable::register_obligation_in_env::haf85558b8841f38a + 125
22 rust-analyzer 0x10d190d0f hir_ty::infer::InferenceContext::resolve_associated_type_with_params::h2d9521c8d89d416b + 687
23 rust-analyzer 0x10d180797 hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_expr_inner::hb48053cb0b9742c8 + 8887
24 rust-analyzer 0x10d17e22d hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_expr::hcdabc53f799bc558 + 29
25 rust-analyzer 0x10d17f946 hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_expr_inner::hb48053cb0b9742c8 + 5222
26 rust-analyzer 0x10d17e35d hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_expr_coerce::h45613af2bae74a5f + 29
27 rust-analyzer 0x10d187a9e hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_block::h6871797293adf3ca + 382
28 rust-analyzer 0x10d1812fd hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_expr_inner::hb48053cb0b9742c8 + 11805
29 rust-analyzer 0x10d17e35d hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_expr_coerce::h45613af2bae74a5f + 29
30 rust-analyzer 0x10d163215 hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::with_breakable_ctx::hefd20bb51f458867 + 437
31 rust-analyzer 0x10d180185 hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_expr_inner::hb48053cb0b9742c8 + 7333
32 rust-analyzer 0x10d17e35d hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_expr_coerce::h45613af2bae74a5f + 29
33 rust-analyzer 0x10d187a9e hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_block::h6871797293adf3ca + 382
34 rust-analyzer 0x10d1812fd hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_expr_inner::hb48053cb0b9742c8 + 11805
35 rust-analyzer 0x10d17e35d hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_expr_coerce::h45613af2bae74a5f + 29
36 rust-analyzer 0x10d18def2 hir_ty::infer::infer_query::h010b19209f6de18b + 4402
37 rust-analyzer 0x10d152ead salsa::runtime::Runtime::execute_query_implementation::h55c4c9ae87a5a460 + 397
38 rust-analyzer 0x10d1afa7a salsa::derived::slot::Slot$LT$Q$C$MP$GT$::read_upgrade::h02aa9fcc22ec9927 + 2458
39 rust-analyzer 0x10d1fd233 salsa::derived::slot::Slot$LT$Q$C$MP$GT$::read::hcacd980029287713 + 995
40 rust-analyzer 0x10d019a1c _$LT$salsa..derived..DerivedStorage$LT$Q$C$MP$GT$$u20$as$u20$salsa..plumbing..QueryStorageOps$LT$Q$GT$$GT$::try_fetch::hcd7af31fe7f5e259 + 492
41 rust-analyzer 0x10d193283 _$LT$DB$u20$as$u20$hir_ty..db..HirDatabase$GT$::infer_query::__shim::haa00da28e9d5122d + 67
42 rust-analyzer 0x10cc21835 _$LT$DB$u20$as$u20$hir_ty..db..HirDatabase$GT$::infer_query::h17af69883d1d3beb + 37
43 rust-analyzer 0x10d192fb8 hir_ty::db::infer_wait::h894ac44780efe39b + 216
44 rust-analyzer 0x10cc21f75 _$LT$DB$u20$as$u20$hir_ty..db..HirDatabase$GT$::infer::h861c1fabbdaf46a1 + 37
45 rust-analyzer 0x10cf7fa3e hir::DefWithBody::diagnostics::h86a9ca69833776e9 + 2222
46 rust-analyzer 0x10cf78e59 hir::ModuleDef::diagnostics::h2e865c895448d394 + 1209
47 rust-analyzer 0x10cf79bfe hir::Module::diagnostics::h0224db5377011f5b + 942
48 rust-analyzer 0x10cf79bb8 hir::Module::diagnostics::h0224db5377011f5b + 872
49 rust-analyzer 0x10cc260dc ide_diagnostics::diagnostics::h654c3d2118b2ad37 + 860
50 rust-analyzer 0x10cbf9d37 std::panicking::try::h4abf26d66ad74357 + 39
51 rust-analyzer 0x10cc04c1a ide::Analysis::diagnostics::h57f72b68876bf4ea + 58
52 rust-analyzer 0x10c92216c rust_analyzer::handlers::publish_diagnostics::h3d12a85c61c72f77 + 588
53 rust-analyzer 0x10c7fa160 alloc::vec::in_place_collect::_$LT$impl$u20$alloc..vec..spec_from_iter..SpecFromIter$LT$T$C$I$GT$$u20$for$u20$alloc..vec..Vec$LT$T$GT$$GT$::from_iter::h6f1f9f3a954d25da + 144
54 rust-analyzer 0x10c839dad _$LT$F$u20$as$u20$threadpool..FnBox$GT$::call_box::h277b30928539717d + 141
55 rust-analyzer 0x10c9eb7bd std::sys_common::backtrace::__rust_begin_short_backtrace::h33a8c6a0d38f7b46 + 381
56 rust-analyzer 0x10c9ef748 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hdba29cbe301bff99 + 136
57 rust-analyzer 0x10d5c1a47 std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092 + 39
58 libsystem_pthread.dylib 0x7ff81c8ca4e1 _pthread_start + 125
59 libsystem_pthread.dylib 0x7ff81c8c5f6b thread_start + 15
Thread 6:: Worker
0 libsystem_kernel.dylib 0x7ff81c88fbd2 __psynch_mutexwait + 10
1 libsystem_pthread.dylib 0x7ff81c8c7e7e _pthread_mutex_firstfit_lock_wait + 76
2 libsystem_pthread.dylib 0x7ff81c8c5cbb _pthread_mutex_firstfit_lock_slow + 205
3 rust-analyzer 0x10c9eb6b5 std::sys_common::backtrace::__rust_begin_short_backtrace::h33a8c6a0d38f7b46 + 117
4 rust-analyzer 0x10c9ef748 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hdba29cbe301bff99 + 136
5 rust-analyzer 0x10d5c1a47 std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092 + 39
6 libsystem_pthread.dylib 0x7ff81c8ca4e1 _pthread_start + 125
7 libsystem_pthread.dylib 0x7ff81c8c5f6b thread_start + 15
Thread 7:: Worker
0 libsystem_kernel.dylib 0x7ff81c88fbd2 __psynch_mutexwait + 10
1 libsystem_pthread.dylib 0x7ff81c8c7e7e _pthread_mutex_firstfit_lock_wait + 76
2 libsystem_pthread.dylib 0x7ff81c8c5cbb _pthread_mutex_firstfit_lock_slow + 205
3 rust-analyzer 0x10c9eb6b5 std::sys_common::backtrace::__rust_begin_short_backtrace::h33a8c6a0d38f7b46 + 117
4 rust-analyzer 0x10c9ef748 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hdba29cbe301bff99 + 136
5 rust-analyzer 0x10d5c1a47 std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092 + 39
6 libsystem_pthread.dylib 0x7ff81c8ca4e1 _pthread_start + 125
7 libsystem_pthread.dylib 0x7ff81c8c5f6b thread_start + 15
Thread 8:: Worker
0 libsystem_kernel.dylib 0x7ff81c88fbd2 __psynch_mutexwait + 10
1 libsystem_pthread.dylib 0x7ff81c8c7e7e _pthread_mutex_firstfit_lock_wait + 76
2 libsystem_pthread.dylib 0x7ff81c8c5cbb _pthread_mutex_firstfit_lock_slow + 205
3 rust-analyzer 0x10c9eb6b5 std::sys_common::backtrace::__rust_begin_short_backtrace::h33a8c6a0d38f7b46 + 117
4 rust-analyzer 0x10c9ef748 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hdba29cbe301bff99 + 136
5 rust-analyzer 0x10d5c1a47 std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092 + 39
6 libsystem_pthread.dylib 0x7ff81c8ca4e1 _pthread_start + 125
7 libsystem_pthread.dylib 0x7ff81c8c5f6b thread_start + 15
Thread 9:: Worker
0 libsystem_kernel.dylib 0x7ff81c88fbd2 __psynch_mutexwait + 10
1 libsystem_pthread.dylib 0x7ff81c8c7e7e _pthread_mutex_firstfit_lock_wait + 76
2 libsystem_pthread.dylib 0x7ff81c8c5cbb _pthread_mutex_firstfit_lock_slow + 205
3 rust-analyzer 0x10c9eb6b5 std::sys_common::backtrace::__rust_begin_short_backtrace::h33a8c6a0d38f7b46 + 117
4 rust-analyzer 0x10c9ef748 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hdba29cbe301bff99 + 136
5 rust-analyzer 0x10d5c1a47 std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092 + 39
6 libsystem_pthread.dylib 0x7ff81c8ca4e1 _pthread_start + 125
7 libsystem_pthread.dylib 0x7ff81c8c5f6b thread_start + 15
Thread 10:: Worker
0 libsystem_kernel.dylib 0x7ff81c88d9b6 semaphore_wait_trap + 10
1 libdispatch.dylib 0x7ff81c7137ce _dispatch_sema4_wait + 16
2 libdispatch.dylib 0x7ff81c713c9d _dispatch_semaphore_wait_slow + 98
3 rust-analyzer 0x10d5e9680 std::thread::park::h8596ea2a7a6bd2d9 + 48
4 rust-analyzer 0x10c9ea036 std::sync::mpmc::context::Context::with::_$u7b$$u7b$closure$u7d$$u7d$::h382232ec2d10ae5a + 726
5 rust-analyzer 0x10c9e99ba std::sync::mpmc::list::Channel$LT$T$GT$::recv::ha5a50a5159107fed + 698
6 rust-analyzer 0x10c9eb71c std::sys_common::backtrace::__rust_begin_short_backtrace::h33a8c6a0d38f7b46 + 220
7 rust-analyzer 0x10c9ef748 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hdba29cbe301bff99 + 136
8 rust-analyzer 0x10d5c1a47 std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092 + 39
9 libsystem_pthread.dylib 0x7ff81c8ca4e1 _pthread_start + 125
10 libsystem_pthread.dylib 0x7ff81c8c5f6b thread_start + 15
Thread 11:
0 libsystem_pthread.dylib 0x7ff81c8c5f48 start_wqthread + 0
Thread 12:: Flycheck
0 libsystem_kernel.dylib 0x7ff81c88d9b6 semaphore_wait_trap + 10
1 libdispatch.dylib 0x7ff81c7137ce _dispatch_sema4_wait + 16
2 libdispatch.dylib 0x7ff81c713c9d _dispatch_semaphore_wait_slow + 98
3 rust-analyzer 0x10d5e9680 std::thread::park::h8596ea2a7a6bd2d9 + 48
4 rust-analyzer 0x10cf6e29b crossbeam_channel::context::Context::wait_until::h1bfd3775fc02423f + 811
5 rust-analyzer 0x10cf6deb1 crossbeam_channel::context::Context::with::_$u7b$$u7b$closure$u7d$$u7d$::h42c0a6ce894c0551 + 833
6 rust-analyzer 0x10cf6e4ba crossbeam_channel::select::run_select::h0e6cabbbdec70909 + 474
7 rust-analyzer 0x10ca567b0 flycheck::FlycheckActor::run::h44e6215704e8d5ae + 400
8 rust-analyzer 0x10ca674bd std::sys_common::backtrace::__rust_begin_short_backtrace::hb26202ae0cdd7d07 + 61
9 rust-analyzer 0x10ca374df core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h698fb4c34f4108f4 + 207
10 rust-analyzer 0x10d5c1a47 std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092 + 39
11 libsystem_pthread.dylib 0x7ff81c8ca4e1 _pthread_start + 125
12 libsystem_pthread.dylib 0x7ff81c8c5f6b thread_start + 15
Thread 13:: notify-rs fsevents loop
0 libsystem_kernel.dylib 0x7ff81c88d97a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x7ff81c88dce8 mach_msg + 56
2 CoreFoundation 0x7ff81c99136d __CFRunLoopServiceMachPort + 319
3 CoreFoundation 0x7ff81c98f9f8 __CFRunLoopRun + 1276
4 CoreFoundation 0x7ff81c98ee3c CFRunLoopRunSpecific + 562
5 CoreFoundation 0x7ff81ca16dcb CFRunLoopRun + 40
6 rust-analyzer 0x10ca0a782 std::sys_common::backtrace::__rust_begin_short_backtrace::h31d5e512b07465fb + 146
7 rust-analyzer 0x10ca11ff6 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h594dfc35b1c48245 + 166
8 rust-analyzer 0x10d5c1a47 std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092 + 39
9 libsystem_pthread.dylib 0x7ff81c8ca4e1 _pthread_start + 125
10 libsystem_pthread.dylib 0x7ff81c8c5f6b thread_start + 15
Thread 5 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x000070000c1e9000 rcx: 0x000070000c1e4638 rdx: 0x0000000000000000
rdi: 0x0000000000002903 rsi: 0x0000000000000006 rbp: 0x000070000c1e4660 rsp: 0x000070000c1e4638
r8: 0x0000000000000001 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000246
r12: 0x0000000000002903 r13: 0x0000000000000050 r14: 0x0000000000000006 r15: 0x0000000000000016
rip: 0x00007ff81c89400e rfl: 0x0000000000000246 cr2: 0x00007ff85e039008
Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133
Binary Images:
0x7ff81c88c000 - 0x7ff81c8c3fff libsystem_kernel.dylib (*) <e2477724-bccf-3a8c-9c75-c774c569f36e> /usr/lib/system/libsystem_kernel.dylib
0x7ff81c8c4000 - 0x7ff81c8cffff libsystem_pthread.dylib (*) <b5454e27-e8c7-3fdb-b77f-714f1e82e70b> /usr/lib/system/libsystem_pthread.dylib
0x10c65b000 - 0x10d9c6fff rust-analyzer (*) <8d7c0d59-b061-3f10-b554-3d7c184a07d2> /usr/local/Cellar/rust-analyzer/2023-02-20/bin/rust-analyzer
0x10f168000 - 0x10f1d3fff dyld (*) <006a3e6f-3cd3-34d9-b0f2-ed6bd67a95a6> /usr/lib/dyld
0x7ff81c710000 - 0x7ff81c756fff libdispatch.dylib (*) <1a04b380-76e4-3e4b-b0fc-9837533d021d> /usr/lib/system/libdispatch.dylib
0x7ff81c794000 - 0x7ff81c81cfff libsystem_c.dylib (*) <e42e9d7a-03b4-340b-b61e-dcd45fd4acc0> /usr/lib/system/libsystem_c.dylib
0x7ff81c6e4000 - 0x7ff81c70ffff libsystem_malloc.dylib (*) <47042acd-a337-322a-8db7-ecd59cc60d92> /usr/lib/system/libsystem_malloc.dylib
0x7ff81c911000 - 0x7ff81ce13fff com.apple.CoreFoundation (6.9) <93c48919-68af-367e-9a67-db4159bc962c> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=420.5M resident=0K(0%) swapped_out_or_unallocated=420.5M(100%)
Writable regions: Total=910.4M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=910.4M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Activity Tracing 256K 1
Kernel Alloc Once 8K 1
MALLOC 833.9M 564
MALLOC guard page 16K 4
ObjC additional data 15K 1
STACK GUARD 52K 13
Stack 74.6M 14
Stack Guard 56.0M 1
VM_ALLOCATE 72K 18
VM_ALLOCATE (reserved) 1664K 13 reserved VM address space (unallocated)
__DATA 1885K 118
__DATA_CONST 6708K 84
__DATA_DIRTY 216K 51
__LINKEDIT 320.9M 5
__TEXT 99.6M 131
__UNICODE 592K 1
dyld private memory 1024K 1
mapped file 48K 1
shared memory 560K 5
=========== ======= =======
TOTAL 1.4G 1027
TOTAL, minus reserved VM space 1.4G 1027
-----------
Full Report
-----------
{"app_name":"rust-analyzer","timestamp":"2023-02-22 20:05:52.00 +0000","app_version":"","slice_uuid":"8d7c0d59-b061-3f10-b554-3d7c184a07d2","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 12.6.3 (21G419)","incident_id":"93A3849B-AEFC-4729-81C3-1C02499AF680","name":"rust-analyzer"}
{
"uptime" : 57000,
"procLaunch" : "2023-02-22 20:05:40.9436 +0000",
"procRole" : "Unspecified",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "MacBookPro16,1",
"procStartAbsTime" : 57304402656531,
"coalitionID" : 1626,
"osVersion" : {
"train" : "macOS 12.6.3",
"build" : "21G419",
"releaseType" : "User"
},
"captureTime" : "2023-02-22 20:05:52.6678 +0000",
"incident" : "93A3849B-AEFC-4729-81C3-1C02499AF680",
"bug_type" : "309",
"pid" : 35404,
"procExitAbsTime" : 57316126204660,
"cpuType" : "X86-64",
"procName" : "rust-analyzer",
"procPath" : "\/usr\/local\/Cellar\/rust-analyzer\/2023-02-20\/bin\/rust-analyzer",
"parentProc" : "hx",
"parentPid" : 35403,
"coalitionName" : "com.googlecode.iterm2",
"crashReporterKey" : "35091721-F39F-470C-A28C-910D57315878",
"responsiblePid" : 1492,
"responsibleProc" : "iTerm2",
"wakeTime" : 3928,
"bridgeVersion" : {"build":"20P3045","train":"7.2"},
"sleepWakeUUID" : "619D4117-8EB2-41A1-B125-B92364719B72",
"sip" : "enabled",
"isCorpse" : 1,
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
"asi" : {"libsystem_c.dylib":["abort() called"]},
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 5,
"threads" : [{"id":477110,"name":"main","queue":"com.apple.main-thread","frames":[{"imageOffset":12522,"symbol":"__ulock_wait","symbolLocation":10,"imageIndex":0},{"imageOffset":31893,"symbol":"_pthread_join","symbolLocation":358,"imageIndex":1},{"imageOffset":16149488,"symbol":"std::sys::unix::thread::Thread::join::h40594c04f82780fc","symbolLocation":16,"imageIndex":2},{"imageOffset":473306,"symbol":"std::thread::JoinHandle$LT$T$GT$::join::h1f12fa40bccf7c07","symbolLocation":42,"imageIndex":2},{"imageOffset":87653,"symbol":"rust_analyzer::with_extra_thread::hd1942c2f5f9f3544","symbolLocation":229,"imageIndex":2},{"imageOffset":312431,"symbol":"rust_analyzer::main::hadc7b696883cb6b0","symbolLocation":4719,"imageIndex":2},{"imageOffset":467750,"symbol":"std::sys_common::backtrace::__rust_begin_short_backtrace::h6756f4972932ea0f","symbolLocation":6,"imageIndex":2},{"imageOffset":487660,"symbol":"std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::ha6f52560b59f130a","symbolLocation":12,"imageIndex":2},{"imageOffset":16167816,"symbol":"std::rt::lang_start_internal::h63aa6976ade06f50","symbolLocation":40,"imageIndex":2},{"imageOffset":322588,"symbol":"main","symbolLocation":44,"imageIndex":2},{"imageOffset":21806,"symbol":"start","symbolLocation":462,"imageIndex":3}]},{"id":477111,"name":"LspServer","frames":[{"imageOffset":6582,"symbol":"semaphore_wait_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":14286,"symbol":"_dispatch_sema4_wait","symbolLocation":16,"imageIndex":4},{"imageOffset":15517,"symbol":"_dispatch_semaphore_wait_slow","symbolLocation":98,"imageIndex":4},{"imageOffset":16311936,"symbol":"std::thread::park::h8596ea2a7a6bd2d9","symbolLocation":48,"imageIndex":2},{"imageOffset":9515675,"symbol":"crossbeam_channel::context::Context::wait_until::h1bfd3775fc02423f","symbolLocation":811,"imageIndex":2},{"imageOffset":9514673,"symbol":"crossbeam_channel::context::Context::with::_$u7b$$u7b$closure$u7d$$u7d$::h42c0a6ce894c0551","symbolLocation":833,"imageIndex":2},{"imageOffset":9516218,"symbol":"crossbeam_channel::select::run_select::h0e6cabbbdec70909","symbolLocation":474,"imageIndex":2},{"imageOffset":1605844,"symbol":"rust_analyzer::main_loop::_$LT$impl$u20$rust_analyzer..global_state..GlobalState$GT$::run::h8652d4b7bb188877","symbolLocation":2132,"imageIndex":2},{"imageOffset":1853076,"symbol":"rust_analyzer::main_loop::main_loop::h44b49150bd2d95fe","symbolLocation":484,"imageIndex":2},{"imageOffset":319764,"symbol":"rust_analyzer::run_server::h1e64d412550020b1","symbolLocation":4612,"imageIndex":2},{"imageOffset":467737,"symbol":"std::sys_common::backtrace::__rust_begin_short_backtrace::h3c93dea765064fd2","symbolLocation":9,"imageIndex":2},{"imageOffset":475926,"symbol":"core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h2d426602cb4e5c96","symbolLocation":118,"imageIndex":2},{"imageOffset":16149063,"symbol":"std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092","symbolLocation":39,"imageIndex":2},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":477112,"frames":[{"imageOffset":6582,"symbol":"semaphore_wait_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":14286,"symbol":"_dispatch_sema4_wait","symbolLocation":16,"imageIndex":4},{"imageOffset":15517,"symbol":"_dispatch_semaphore_wait_slow","symbolLocation":98,"imageIndex":4},{"imageOffset":16311936,"symbol":"std::thread::park::h8596ea2a7a6bd2d9","symbolLocation":48,"imageIndex":2},{"imageOffset":3945024,"symbol":"crossbeam_channel::context::Context::wait_until::h1bfd3775fc02423f","symbolLocation":800,"imageIndex":2},{"imageOffset":3947532,"symbol":"crossbeam_channel::context::Context::with::_$u7b$$u7b$closure$u7d$$u7d$::hb2334eaf29c5cd68","symbolLocation":284,"imageIndex":2},{"imageOffset":3951018,"symbol":"crossbeam_channel::flavors::zero::Channel$LT$T$GT$::recv::h314b607912df171c","symbolLocation":1114,"imageIndex":2},{"imageOffset":3966856,"symbol":"crossbeam_channel::channel::Receiver$LT$T$GT$::recv::h9193a814758ca302","symbolLocation":120,"imageIndex":2},{"imageOffset":3942236,"symbol":"std::sys_common::backtrace::__rust_begin_short_backtrace::h60725cd389e4e017","symbolLocation":108,"imageIndex":2},{"imageOffset":3963940,"symbol":"core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::he6a06ffea7588b3f","symbolLocation":148,"imageIndex":2},{"imageOffset":16149063,"symbol":"std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092","symbolLocation":39,"imageIndex":2},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":477113,"frames":[{"imageOffset":9146,"symbol":"read","symbolLocation":10,"imageIndex":0},{"imageOffset":16341795,"symbol":"std::io::read_until::h976776084d9fabe9","symbolLocation":371,"imageIndex":2},{"imageOffset":16337261,"symbol":"std::io::append_to_string::h72576dcb4a6dce6f","symbolLocation":45,"imageIndex":2},{"imageOffset":16129483,"symbol":"_$LT$std..io..stdio..StdinLock$u20$as$u20$std..io..BufRead$GT$::read_line::h43603af26cd4f812","symbolLocation":27,"imageIndex":2},{"imageOffset":4007429,"symbol":"lsp_server::msg::Message::_read::hc0d2998210abc70b","symbolLocation":101,"imageIndex":2},{"imageOffset":3941527,"symbol":"std::sys_common::backtrace::__rust_begin_short_backtrace::h05731bf51a9bbd29","symbolLocation":103,"imageIndex":2},{"imageOffset":3963380,"symbol":"core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h40f66eac11c8fba8","symbolLocation":148,"imageIndex":2},{"imageOffset":16149063,"symbol":"std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092","symbolLocation":39,"imageIndex":2},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":477114,"name":"VfsLoader","frames":[{"imageOffset":6582,"symbol":"semaphore_wait_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":14286,"symbol":"_dispatch_sema4_wait","symbolLocation":16,"imageIndex":4},{"imageOffset":15517,"symbol":"_dispatch_semaphore_wait_slow","symbolLocation":98,"imageIndex":4},{"imageOffset":16311936,"symbol":"std::thread::park::h8596ea2a7a6bd2d9","symbolLocation":48,"imageIndex":2},{"imageOffset":9515675,"symbol":"crossbeam_channel::context::Context::wait_until::h1bfd3775fc02423f","symbolLocation":811,"imageIndex":2},{"imageOffset":9514673,"symbol":"crossbeam_channel::context::Context::with::_$u7b$$u7b$closure$u7d$$u7d$::h42c0a6ce894c0551","symbolLocation":833,"imageIndex":2},{"imageOffset":9516218,"symbol":"crossbeam_channel::select::run_select::h0e6cabbbdec70909","symbolLocation":474,"imageIndex":2},{"imageOffset":3813548,"symbol":"vfs_notify::NotifyActor::run::h4f02e03c118455c0","symbolLocation":316,"imageIndex":2},{"imageOffset":3832253,"symbol":"std::sys_common::backtrace::__rust_begin_short_backtrace::h78fb6416dc20482c","symbolLocation":61,"imageIndex":2},{"imageOffset":3800927,"symbol":"core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h0783495701fd8aa0","symbolLocation":207,"imageIndex":2},{"imageOffset":16149063,"symbol":"std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092","symbolLocation":39,"imageIndex":2},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"triggered":true,"id":477115,"name":"Worker","threadState":{"r13":{"value":80},"rax":{"value":0},"rflags":{"value":582},"cpu":{"value":0},"r14":{"value":6},"rsi":{"value":6},"r8":{"value":1},"cr2":{"value":140704705908744},"rdx":{"value":0},"r10":{"value":0},"r9":{"value":0},"r15":{"value":22},"rbx":{"value":123145505640448},"trap":{"value":133},"err":{"value":33554760},"r11":{"value":582},"rip":{"value":140703607373838,"matchesCrashFrame":1},"rbp":{"value":123145505621600},"rsp":{"value":123145505621560},"r12":{"value":10499},"rcx":{"value":123145505621560},"flavor":"x86_THREAD_STATE","rdi":{"value":10499}},"frames":[{"imageOffset":32782,"symbol":"__pthread_kill","symbolLocation":10,"imageIndex":0},{"imageOffset":25087,"symbol":"pthread_kill","symbolLocation":263,"imageIndex":1},{"imageOffset":531748,"symbol":"abort","symbolLocation":123,"imageIndex":5},{"imageOffset":62295,"symbol":"malloc_vreport","symbolLocation":551,"imageIndex":6},{"imageOffset":75051,"symbol":"malloc_report","symbolLocation":151,"imageIndex":6},{"imageOffset":11082351,"symbol":"core::ptr::drop_in_place$LT$chalk_ir..Binders$LT$chalk_solve..rust_ir..OpaqueTyDatumBound$LT$hir_ty..interner..Interner$GT$$GT$$GT$::haa4c93c5d7024ea1","symbolLocation":63,"imageIndex":2},{"imageOffset":10358674,"symbol":"alloc::sync::Arc$LT$T$GT$::drop_slow::h7676f3500110e80f","symbolLocation":18,"imageIndex":2},{"imageOffset":11594423,"symbol":"chalk_solve::clauses::program_clauses_that_could_match::h552f6c8170760d0c","symbolLocation":2759,"imageIndex":2},{"imageOffset":10248052,"symbol":"chalk_recursive::solve::SolveIteration::solve_iteration::hfb761f694aff9bcb","symbolLocation":1684,"imageIndex":2},{"imageOffset":10789890,"symbol":"chalk_recursive::fixed_point::RecursiveContext$LT$K$C$V$GT$::solve_goal::h9dfc34972ce1ba93","symbolLocation":3122,"imageIndex":2},{"imageOffset":10793863,"symbol":"chalk_recursive::fixed_point::RecursiveContext$LT$K$C$V$GT$::solve_root_goal::h81046cd9ccad88c8","symbolLocation":455,"imageIndex":2},{"imageOffset":11341835,"symbol":"hir_ty::traits::trait_solve_query::hc12451fa64638693","symbolLocation":2699,"imageIndex":2},{"imageOffset":11499969,"symbol":"salsa::runtime::Runtime::execute_query_implementation::h509993448613ce52","symbolLocation":449,"imageIndex":2},{"imageOffset":12032240,"symbol":"salsa::derived::slot::Slot$LT$Q$C$MP$GT$::read_upgrade::hf25dc3a99e54fa21","symbolLocation":2304,"imageIndex":2},{"imageOffset":12151546,"symbol":"salsa::derived::slot::Slot$LT$Q$C$MP$GT$::read::h1d81bb4fa93b4f83","symbolLocation":1130,"imageIndex":2},{"imageOffset":10210907,"symbol":"_$LT$salsa..derived..DerivedStorage$LT$Q$C$MP$GT$$u20$as$u20$salsa..plumbing..QueryStorageOps$LT$Q$GT$$GT$::try_fetch::h9680b0cb369360a1","symbolLocation":651,"imageIndex":2},{"imageOffset":10515779,"symbol":"salsa::QueryTable$LT$Q$GT$::get::h8221f96701e0ef85","symbolLocation":83,"imageIndex":2},{"imageOffset":11774921,"symbol":"_$LT$DB$u20$as$u20$hir_ty..db..HirDatabase$GT$::trait_solve_query::__shim::ha4908857ec224f34","symbolLocation":105,"imageIndex":2},{"imageOffset":6056615,"symbol":"_$LT$DB$u20$as$u20$hir_ty..db..HirDatabase$GT$::trait_solve_query::h48bbebd9c7d24aa4","symbolLocation":55,"imageIndex":2},{"imageOffset":11764065,"symbol":"hir_ty::db::trait_solve_wait::h0bd5176a9282cc9f","symbolLocation":209,"imageIndex":2},{"imageOffset":6056087,"symbol":"_$LT$DB$u20$as$u20$hir_ty..db..HirDatabase$GT$::trait_solve::h838b30557b49041a","symbolLocation":55,"imageIndex":2},{"imageOffset":11841165,"symbol":"hir_ty::infer::unify::InferenceTable::register_obligation_in_env::haf85558b8841f38a","symbolLocation":125,"imageIndex":2},{"imageOffset":11754767,"symbol":"hir_ty::infer::InferenceContext::resolve_associated_type_with_params::h2d9521c8d89d416b","symbolLocation":687,"imageIndex":2},{"imageOffset":11687831,"symbol":"hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_expr_inner::hb48053cb0b9742c8","symbolLocation":8887,"imageIndex":2},{"imageOffset":11678253,"symbol":"hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_expr::hcdabc53f799bc558","symbolLocation":29,"imageIndex":2},{"imageOffset":11684166,"symbol":"hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_expr_inner::hb48053cb0b9742c8","symbolLocation":5222,"imageIndex":2},{"imageOffset":11678557,"symbol":"hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_expr_coerce::h45613af2bae74a5f","symbolLocation":29,"imageIndex":2},{"imageOffset":11717278,"symbol":"hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_block::h6871797293adf3ca","symbolLocation":382,"imageIndex":2},{"imageOffset":11690749,"symbol":"hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_expr_inner::hb48053cb0b9742c8","symbolLocation":11805,"imageIndex":2},{"imageOffset":11678557,"symbol":"hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_expr_coerce::h45613af2bae74a5f","symbolLocation":29,"imageIndex":2},{"imageOffset":11567637,"symbol":"hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::with_breakable_ctx::hefd20bb51f458867","symbolLocation":437,"imageIndex":2},{"imageOffset":11686277,"symbol":"hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_expr_inner::hb48053cb0b9742c8","symbolLocation":7333,"imageIndex":2},{"imageOffset":11678557,"symbol":"hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_expr_coerce::h45613af2bae74a5f","symbolLocation":29,"imageIndex":2},{"imageOffset":11717278,"symbol":"hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_block::h6871797293adf3ca","symbolLocation":382,"imageIndex":2},{"imageOffset":11690749,"symbol":"hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_expr_inner::hb48053cb0b9742c8","symbolLocation":11805,"imageIndex":2},{"imageOffset":11678557,"symbol":"hir_ty::infer::expr::_$LT$impl$u20$hir_ty..infer..InferenceContext$GT$::infer_expr_coerce::h45613af2bae74a5f","symbolLocation":29,"imageIndex":2},{"imageOffset":11742962,"symbol":"hir_ty::infer::infer_query::h010b19209f6de18b","symbolLocation":4402,"imageIndex":2},{"imageOffset":11501229,"symbol":"salsa::runtime::Runtime::execute_query_implementation::h55c4c9ae87a5a460","symbolLocation":397,"imageIndex":2},{"imageOffset":11881082,"symbol":"salsa::derived::slot::Slot$LT$Q$C$MP$GT$::read_upgrade::h02aa9fcc22ec9927","symbolLocation":2458,"imageIndex":2},{"imageOffset":12198451,"symbol":"salsa::derived::slot::Slot$LT$Q$C$MP$GT$::read::hcacd980029287713","symbolLocation":995,"imageIndex":2},{"imageOffset":10218012,"symbol":"_$LT$salsa..derived..DerivedStorage$LT$Q$C$MP$GT$$u20$as$u20$salsa..plumbing..QueryStorageOps$LT$Q$GT$$GT$::try_fetch::hcd7af31fe7f5e259","symbolLocation":492,"imageIndex":2},{"imageOffset":11764355,"symbol":"_$LT$DB$u20$as$u20$hir_ty..db..HirDatabase$GT$::infer_query::__shim::haa00da28e9d5122d","symbolLocation":67,"imageIndex":2},{"imageOffset":6055989,"symbol":"_$LT$DB$u20$as$u20$hir_ty..db..HirDatabase$GT$::infer_query::h17af69883d1d3beb","symbolLocation":37,"imageIndex":2},{"imageOffset":11763640,"symbol":"hir_ty::db::infer_wait::h894ac44780efe39b","symbolLocation":216,"imageIndex":2},{"imageOffset":6057845,"symbol":"_$LT$DB$u20$as$u20$hir_ty..db..HirDatabase$GT$::infer::h861c1fabbdaf46a1","symbolLocation":37,"imageIndex":2},{"imageOffset":9587262,"symbol":"hir::DefWithBody::diagnostics::h86a9ca69833776e9","symbolLocation":2222,"imageIndex":2},{"imageOffset":9559641,"symbol":"hir::ModuleDef::diagnostics::h2e865c895448d394","symbolLocation":1209,"imageIndex":2},{"imageOffset":9563134,"symbol":"hir::Module::diagnostics::h0224db5377011f5b","symbolLocation":942,"imageIndex":2},{"imageOffset":9563064,"symbol":"hir::Module::diagnostics::h0224db5377011f5b","symbolLocation":872,"imageIndex":2},{"imageOffset":6074588,"symbol":"ide_diagnostics::diagnostics::h654c3d2118b2ad37","symbolLocation":860,"imageIndex":2},{"imageOffset":5893431,"symbol":"std::panicking::try::h4abf26d66ad74357","symbolLocation":39,"imageIndex":2},{"imageOffset":5938202,"symbol":"ide::Analysis::diagnostics::h57f72b68876bf4ea","symbolLocation":58,"imageIndex":2},{"imageOffset":2912620,"symbol":"rust_analyzer::handlers::publish_diagnostics::h3d12a85c61c72f77","symbolLocation":588,"imageIndex":2},{"imageOffset":1700192,"symbol":"alloc::vec::in_place_collect::_$LT$impl$u20$alloc..vec..spec_from_iter..SpecFromIter$LT$T$C$I$GT$$u20$for$u20$alloc..vec..Vec$LT$T$GT$$GT$::from_iter::h6f1f9f3a954d25da","symbolLocation":144,"imageIndex":2},{"imageOffset":1961389,"symbol":"_$LT$F$u20$as$u20$threadpool..FnBox$GT$::call_box::h277b30928539717d","symbolLocation":141,"imageIndex":2},{"imageOffset":3737533,"symbol":"std::sys_common::backtrace::__rust_begin_short_backtrace::h33a8c6a0d38f7b46","symbolLocation":381,"imageIndex":2},{"imageOffset":3753800,"symbol":"core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hdba29cbe301bff99","symbolLocation":136,"imageIndex":2},{"imageOffset":16149063,"symbol":"std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092","symbolLocation":39,"imageIndex":2},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":477116,"name":"Worker","frames":[{"imageOffset":15314,"symbol":"__psynch_mutexwait","symbolLocation":10,"imageIndex":0},{"imageOffset":15998,"symbol":"_pthread_mutex_firstfit_lock_wait","symbolLocation":76,"imageIndex":1},{"imageOffset":7355,"symbol":"_pthread_mutex_firstfit_lock_slow","symbolLocation":205,"imageIndex":1},{"imageOffset":3737269,"symbol":"std::sys_common::backtrace::__rust_begin_short_backtrace::h33a8c6a0d38f7b46","symbolLocation":117,"imageIndex":2},{"imageOffset":3753800,"symbol":"core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hdba29cbe301bff99","symbolLocation":136,"imageIndex":2},{"imageOffset":16149063,"symbol":"std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092","symbolLocation":39,"imageIndex":2},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":477117,"name":"Worker","frames":[{"imageOffset":15314,"symbol":"__psynch_mutexwait","symbolLocation":10,"imageIndex":0},{"imageOffset":15998,"symbol":"_pthread_mutex_firstfit_lock_wait","symbolLocation":76,"imageIndex":1},{"imageOffset":7355,"symbol":"_pthread_mutex_firstfit_lock_slow","symbolLocation":205,"imageIndex":1},{"imageOffset":3737269,"symbol":"std::sys_common::backtrace::__rust_begin_short_backtrace::h33a8c6a0d38f7b46","symbolLocation":117,"imageIndex":2},{"imageOffset":3753800,"symbol":"core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hdba29cbe301bff99","symbolLocation":136,"imageIndex":2},{"imageOffset":16149063,"symbol":"std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092","symbolLocation":39,"imageIndex":2},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":477118,"name":"Worker","frames":[{"imageOffset":15314,"symbol":"__psynch_mutexwait","symbolLocation":10,"imageIndex":0},{"imageOffset":15998,"symbol":"_pthread_mutex_firstfit_lock_wait","symbolLocation":76,"imageIndex":1},{"imageOffset":7355,"symbol":"_pthread_mutex_firstfit_lock_slow","symbolLocation":205,"imageIndex":1},{"imageOffset":3737269,"symbol":"std::sys_common::backtrace::__rust_begin_short_backtrace::h33a8c6a0d38f7b46","symbolLocation":117,"imageIndex":2},{"imageOffset":3753800,"symbol":"core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hdba29cbe301bff99","symbolLocation":136,"imageIndex":2},{"imageOffset":16149063,"symbol":"std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092","symbolLocation":39,"imageIndex":2},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":477119,"name":"Worker","frames":[{"imageOffset":15314,"symbol":"__psynch_mutexwait","symbolLocation":10,"imageIndex":0},{"imageOffset":15998,"symbol":"_pthread_mutex_firstfit_lock_wait","symbolLocation":76,"imageIndex":1},{"imageOffset":7355,"symbol":"_pthread_mutex_firstfit_lock_slow","symbolLocation":205,"imageIndex":1},{"imageOffset":3737269,"symbol":"std::sys_common::backtrace::__rust_begin_short_backtrace::h33a8c6a0d38f7b46","symbolLocation":117,"imageIndex":2},{"imageOffset":3753800,"symbol":"core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hdba29cbe301bff99","symbolLocation":136,"imageIndex":2},{"imageOffset":16149063,"symbol":"std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092","symbolLocation":39,"imageIndex":2},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":477120,"name":"Worker","frames":[{"imageOffset":6582,"symbol":"semaphore_wait_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":14286,"symbol":"_dispatch_sema4_wait","symbolLocation":16,"imageIndex":4},{"imageOffset":15517,"symbol":"_dispatch_semaphore_wait_slow","symbolLocation":98,"imageIndex":4},{"imageOffset":16311936,"symbol":"std::thread::park::h8596ea2a7a6bd2d9","symbolLocation":48,"imageIndex":2},{"imageOffset":3731510,"symbol":"std::sync::mpmc::context::Context::with::_$u7b$$u7b$closure$u7d$$u7d$::h382232ec2d10ae5a","symbolLocation":726,"imageIndex":2},{"imageOffset":3729850,"symbol":"std::sync::mpmc::list::Channel$LT$T$GT$::recv::ha5a50a5159107fed","symbolLocation":698,"imageIndex":2},{"imageOffset":3737372,"symbol":"std::sys_common::backtrace::__rust_begin_short_backtrace::h33a8c6a0d38f7b46","symbolLocation":220,"imageIndex":2},{"imageOffset":3753800,"symbol":"core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hdba29cbe301bff99","symbolLocation":136,"imageIndex":2},{"imageOffset":16149063,"symbol":"std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092","symbolLocation":39,"imageIndex":2},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":477257,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":477560,"name":"Flycheck","frames":[{"imageOffset":6582,"symbol":"semaphore_wait_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":14286,"symbol":"_dispatch_sema4_wait","symbolLocation":16,"imageIndex":4},{"imageOffset":15517,"symbol":"_dispatch_semaphore_wait_slow","symbolLocation":98,"imageIndex":4},{"imageOffset":16311936,"symbol":"std::thread::park::h8596ea2a7a6bd2d9","symbolLocation":48,"imageIndex":2},{"imageOffset":9515675,"symbol":"crossbeam_channel::context::Context::wait_until::h1bfd3775fc02423f","symbolLocation":811,"imageIndex":2},{"imageOffset":9514673,"symbol":"crossbeam_channel::context::Context::with::_$u7b$$u7b$closure$u7d$$u7d$::h42c0a6ce894c0551","symbolLocation":833,"imageIndex":2},{"imageOffset":9516218,"symbol":"crossbeam_channel::select::run_select::h0e6cabbbdec70909","symbolLocation":474,"imageIndex":2},{"imageOffset":4175792,"symbol":"flycheck::FlycheckActor::run::h44e6215704e8d5ae","symbolLocation":400,"imageIndex":2},{"imageOffset":4244669,"symbol":"std::sys_common::backtrace::__rust_begin_short_backtrace::hb26202ae0cdd7d07","symbolLocation":61,"imageIndex":2},{"imageOffset":4048095,"symbol":"core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h698fb4c34f4108f4","symbolLocation":207,"imageIndex":2},{"imageOffset":16149063,"symbol":"std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092","symbolLocation":39,"imageIndex":2},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":477569,"name":"notify-rs fsevents loop","frames":[{"imageOffset":6522,"symbol":"mach_msg_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":7400,"symbol":"mach_msg","symbolLocation":56,"imageIndex":0},{"imageOffset":525165,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":319,"imageIndex":7},{"imageOffset":518648,"symbol":"__CFRunLoopRun","symbolLocation":1276,"imageIndex":7},{"imageOffset":515644,"symbol":"CFRunLoopRunSpecific","symbolLocation":562,"imageIndex":7},{"imageOffset":1072587,"symbol":"CFRunLoopRun","symbolLocation":40,"imageIndex":7},{"imageOffset":3864450,"symbol":"std::sys_common::backtrace::__rust_begin_short_backtrace::h31d5e512b07465fb","symbolLocation":146,"imageIndex":2},{"imageOffset":3895286,"symbol":"core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h594dfc35b1c48245","symbolLocation":166,"imageIndex":2},{"imageOffset":16149063,"symbol":"std::sys::unix::thread::Thread::new::thread_start::h3d721aae9bf3b092","symbolLocation":39,"imageIndex":2},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703607341056,
"size" : 229376,
"uuid" : "e2477724-bccf-3a8c-9c75-c774c569f36e",
"path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
"name" : "libsystem_kernel.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703607570432,
"size" : 49152,
"uuid" : "b5454e27-e8c7-3fdb-b77f-714f1e82e70b",
"path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
"name" : "libsystem_pthread.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4502958080,
"size" : 20365312,
"uuid" : "8d7c0d59-b061-3f10-b554-3d7c184a07d2",
"path" : "\/usr\/local\/Cellar\/rust-analyzer\/2023-02-20\/bin\/rust-analyzer",
"name" : "rust-analyzer"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4548100096,
"size" : 442368,
"uuid" : "006a3e6f-3cd3-34d9-b0f2-ed6bd67a95a6",
"path" : "\/usr\/lib\/dyld",
"name" : "dyld"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703605784576,
"size" : 290816,
"uuid" : "1a04b380-76e4-3e4b-b0fc-9837533d021d",
"path" : "\/usr\/lib\/system\/libdispatch.dylib",
"name" : "libdispatch.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703606325248,
"size" : 561152,
"uuid" : "e42e9d7a-03b4-340b-b61e-dcd45fd4acc0",
"path" : "\/usr\/lib\/system\/libsystem_c.dylib",
"name" : "libsystem_c.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703605604352,
"size" : 180224,
"uuid" : "47042acd-a337-322a-8db7-ecd59cc60d92",
"path" : "\/usr\/lib\/system\/libsystem_malloc.dylib",
"name" : "libsystem_malloc.dylib"
},
{
"source" : "P",
"arch" : "x86_64h",
"base" : 140703607885824,
"CFBundleShortVersionString" : "6.9",
"CFBundleIdentifier" : "com.apple.CoreFoundation",
"size" : 5255168,
"uuid" : "93c48919-68af-367e-9a67-db4159bc962c",
"path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
"name" : "CoreFoundation",
"CFBundleVersion" : "1866"
}
],
"sharedCache" : {
"base" : 140703604314112,
"size" : 19331678208,
"uuid" : "b6d97ead-9d19-3228-adaa-cca8452c02d2"
},
"vmSummary" : "ReadOnly portion of Libraries: Total=420.5M resident=0K(0%) swapped_out_or_unallocated=420.5M(100%)\nWritable regions: Total=910.4M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=910.4M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nActivity Tracing 256K 1 \nKernel Alloc Once 8K 1 \nMALLOC 833.9M 564 \nMALLOC guard page 16K 4 \nObjC additional data 15K 1 \nSTACK GUARD 52K 13 \nStack 74.6M 14 \nStack Guard 56.0M 1 \nVM_ALLOCATE 72K 18 \nVM_ALLOCATE (reserved) 1664K 13 reserved VM address space (unallocated)\n__DATA 1885K 118 \n__DATA_CONST 6708K 84 \n__DATA_DIRTY 216K 51 \n__LINKEDIT 320.9M 5 \n__TEXT 99.6M 131 \n__UNICODE 592K 1 \ndyld private memory 1024K 1 \nmapped file 48K 1 \nshared memory 560K 5 \n=========== ======= ======= \nTOTAL 1.4G 1027 \nTOTAL, minus reserved VM space 1.4G 1027 \n",
"legacyInfo" : {
"threadTriggered" : {
"name" : "Worker"
}
},
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "6112dda2fc54bc3389840642",
"factorPackIds" : {
"SIRI_DICTATION_ASSETS" : "620aec83b02b354d3afd2f50"
},
"deploymentId" : 240000143
},
{
"rolloutId" : "5ffde50ce2aacd000d47a95f",
"factorPackIds" : {
},
"deploymentId" : 240000251
}
],
"experiments" : [
]
}
}
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 27 (12 by maintainers)
You can try building with jemalloc https://github.com/rust-lang/rust-analyzer/blob/924d277f32b53219fcaa03226c17b485a081ed16/crates/rust-analyzer/Cargo.toml#L86
I was facing the same issue on rust-analyzer installed using homebrew.
After doing the following steps the issue got fixed.
brew remove rust-analyzerrustc 1.66.0-nightlytorustc 1.70.0-nightly (5e1d3299a 2023-03-31)ln -s ~/.rustup/toolchains/nightly-x86_64-apple-darwin/bin/rust-analyzer ~/.local/bin/rust-analyzerUpdating my system seems to have fixed it though I can’t be sure if that was it