Skip to content

Instantly share code, notes, and snippets.

@volgar1x
Created October 10, 2024 13:06
Show Gist options
  • Save volgar1x/2d1d404b9db1f0710965906ef867f8cb to your computer and use it in GitHub Desktop.
Save volgar1x/2d1d404b9db1f0710965906ef867f8cb to your computer and use it in GitHub Desktop.
aqora CLI w/ python3.12 debug build with ASAN
=================================================================
==63146==ERROR: AddressSanitizer: heap-use-after-free on address 0x00010cc2b3d0 at pc 0x000105d4b4c4 bp 0x000170577970 sp 0x000170577968
READ of size 8 at 0x00010cc2b3d0 thread T6
#0 0x105d4b4c0 in _PyThreadState_MustExit pystate.c:3049
#1 0x105cde1f4 in take_gil ceval_gil.c:346
#2 0x105cdf588 in PyEval_AcquireThread ceval_gil.c:634
#3 0x110f4c848 in pybind11::gil_scoped_acquire::gil_scoped_acquire()+0x5c (libtorch_python.dylib:arm64+0x48848)
#4 0x1113fe0b0 in (anonymous namespace)::ConcretePyInterpreterVTable::decref(_object*, bool) const+0x24 (libtorch_python.dylib:arm64+0x4fa0b0)
#5 0x10fb1d5ac in c10::impl::PyObjectSlot::~PyObjectSlot()+0x44 (libc10.dylib:arm64+0x415ac)
#6 0x11c938f08 in c10::StorageImpl::~StorageImpl()+0x20 (libtorch_cpu.dylib:arm64+0x18f08)
#7 0x11c938ea4 in c10::StorageImpl::~StorageImpl()+0x8 (libtorch_cpu.dylib:arm64+0x18ea4)
#8 0x10fb0d8b0 in c10::TensorImpl::~TensorImpl()+0x130 (libc10.dylib:arm64+0x318b0)
#9 0x10fb0da58 in c10::TensorImpl::~TensorImpl()+0x8 (libc10.dylib:arm64+0x31a58)
#10 0x110f0b058 in at::Tensor::~Tensor()+0x84 (libtorch_python.dylib:arm64+0x7058)
#11 0x1114b2bc0 in THPVariable_clear(THPVariable*)+0x2f4 (libtorch_python.dylib:arm64+0x5aebc0)
#12 0x1114b30cc in THPVariable_subclass_dealloc(_object*)+0x264 (libtorch_python.dylib:arm64+0x5af0cc)
#13 0x105a1ebe0 in list_dealloc listobject.c:356
#14 0x1019feaac in pyo3::gil::ReferencePool::update_counts::h0f2b03e5fdab53ce+0x428 (aqora:arm64+0x101536aac)
#15 0x1019febd0 in pyo3::gil::GILPool::new::h3809c0efeba5e627+0x24 (aqora:arm64+0x101536bd0)
#16 0x1019fe4d8 in pyo3::gil::GILGuard::acquire_unchecked::h07c43b4e67dccd34+0x3c (aqora:arm64+0x1015364d8)
#17 0x1019fe480 in pyo3::gil::GILGuard::acquire::haef0432386cb877c+0x64 (aqora:arm64+0x101536480)
#18 0x10096cda4 in pyo3::marker::Python::with_gil::h29ae3195deb43f29+0x28 (aqora:arm64+0x1004a4da4)
#19 0x1009d0530 in aqora_runner::pipeline::Pipeline::aggregate::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h01ed083e2b472758+0x70 (aqora:arm64+0x100508530)
#20 0x10096798c in split_stream_by::split_by_map::SplitByMap$LT$I$C$L$C$R$C$S$C$P$GT$::poll_next_right::h111c16fce0dd8df9+0x1d8 (aqora:arm64+0x10049f98c)
#21 0x100967234 in _$LT$split_stream_by..split_by_map..RightSplitByMap$LT$I$C$L$C$R$C$S$C$P$GT$$u20$as$u20$futures_core..stream..Stream$GT$::poll_next::h1213e2afbb0789ba+0xc0 (aqora:arm64+0x10049f234)
#22 0x101504578 in _$LT$core..pin..Pin$LT$P$GT$$u20$as$u20$futures_core..stream..Stream$GT$::poll_next::h84f50945c590ebdb+0x5c (aqora:arm64+0x10103c578)
#23 0x1015043c0 in futures_util::stream::stream::StreamExt::poll_next_unpin::h3bea72cec26baeba+0x2c (aqora:arm64+0x10103c3c0)
#24 0x1015140c0 in _$LT$futures_util..stream..stream..next..Next$LT$St$GT$$u20$as$u20$core..future..future..Future$GT$::poll::h7c2527b20fcdc48e+0x2c (aqora:arm64+0x10104c0c0)
#25 0x101512e64 in aqora_runner::python::AsyncIteratorImpl::__anext__::_$u7b$$u7b$closure$u7d$$u7d$::hc62856f75114aad0+0x274 (aqora:arm64+0x10104ae64)
#26 0x10150a02c in _$LT$pyo3_asyncio..generic..Cancellable$LT$F$GT$$u20$as$u20$core..future..future..Future$GT$::poll::hab402ea0030c4548+0x34 (aqora:arm64+0x10104202c)
#27 0x10152269c in _$LT$tokio..task..task_local..TaskLocalFuture$LT$T$C$F$GT$$u20$as$u20$core..future..future..Future$GT$::poll::_$u7b$$u7b$closure$u7d$$u7d$::hed73be2747706bec+0x80 (aqora:arm64+0x10105a69c)
#28 0x101522b84 in tokio::task::task_local::LocalKey$LT$T$GT$::scope_inner::hbf90b2991c7fedd7+0x124 (aqora:arm64+0x10105ab84)
#29 0x101522570 in _$LT$tokio..task..task_local..TaskLocalFuture$LT$T$C$F$GT$$u20$as$u20$core..future..future..Future$GT$::poll::h43425a9c9d1dce35+0x5c (aqora:arm64+0x10105a570)
#30 0x1014f3d98 in _$LT$tokio..task..task_local..TaskLocalFuture$LT$T$C$F$GT$$u20$as$u20$core..future..future..Future$GT$::poll$u7b$$u7b$reify.shim$u7d$$u7d$::h6e468ed10594a793+0x24 (aqora:arm64+0x10102bd98)
#31 0x10150450c in _$LT$core..pin..Pin$LT$P$GT$$u20$as$u20$core..future..future..Future$GT$::poll::hb48541f1b1cecc8a+0x5c (aqora:arm64+0x10103c50c)
#32 0x101509b8c in pyo3_asyncio::generic::future_into_py_with_locals::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::he40f309444369180+0x254 (aqora:arm64+0x101041b8c)
#33 0x101515c3c in _$LT$pyo3_asyncio..tokio..TokioRuntime$u20$as$u20$pyo3_asyncio..generic..Runtime$GT$::spawn::_$u7b$$u7b$closure$u7d$$u7d$::he5369f70f90ffbec+0x144 (aqora:arm64+0x10104dc3c)
#34 0x10151e22c in tokio::runtime::task::core::Core$LT$T$C$S$GT$::poll::_$u7b$$u7b$closure$u7d$$u7d$::h22b03b7bcd686af4+0x8c (aqora:arm64+0x10105622c)
#35 0x10151ddf0 in tokio::runtime::task::core::Core$LT$T$C$S$GT$::poll::hdedf62cb3edd9cb6+0x5c (aqora:arm64+0x101055df0)
#36 0x10150b89c in tokio::runtime::task::harness::poll_future::_$u7b$$u7b$closure$u7d$$u7d$::h4c8f0b050e76553c+0x3c (aqora:arm64+0x10104389c)
#37 0x10150aaec in _$LT$core..panic..unwind_safe..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::hbd0cfdd610abf5fd+0x28 (aqora:arm64+0x101042aec)
#38 0x10150edf8 in std::panicking::try::do_call::h470e87d1ae9f47e7+0x4c (aqora:arm64+0x101046df8)
#39 0x10150ff8c in __rust_try+0x1c (aqora:arm64+0x101047f8c)
#40 0x10150e310 in std::panicking::try::h8e8f551b8d76c80a+0x5c (aqora:arm64+0x101046310)
#41 0x1015006a0 in std::panic::catch_unwind::h3f71a7a6b685c112+0x8 (aqora:arm64+0x1010386a0)
#42 0x10150b5ec in tokio::runtime::task::harness::poll_future::hc8a3f3e3bd25e40e+0x5c (aqora:arm64+0x1010435ec)
#43 0x10150c044 in tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll_inner::hc757a803261087d6+0x9c (aqora:arm64+0x101044044)
#44 0x10150cacc in tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll::h827cd4a54da666cb+0x18 (aqora:arm64+0x101044acc)
#45 0x101507c2c in tokio::runtime::task::raw::poll::h46c15906c6fcd8d0+0x20 (aqora:arm64+0x10103fc2c)
#46 0x101a8f6a4 in tokio::runtime::task::raw::RawTask::poll::hea153ad66021f647+0x30 (aqora:arm64+0x1015c76a4)
#47 0x101a71194 in tokio::runtime::task::LocalNotified$LT$S$GT$::run::h5ae85f5ffddc5316+0x28 (aqora:arm64+0x1015a9194)
#48 0x101acb1ac in tokio::runtime::scheduler::multi_thread::worker::Context::run_task::_$u7b$$u7b$closure$u7d$$u7d$::hfffe4b51cf125d4b+0x30 (aqora:arm64+0x1016031ac)
#49 0x101acb090 in tokio::runtime::scheduler::multi_thread::worker::Context::run_task::hf5b8e74df6e50197+0x2e8 (aqora:arm64+0x101603090)
#50 0x101aca9cc in tokio::runtime::scheduler::multi_thread::worker::Context::run::hec67b523fc4860e8+0x224 (aqora:arm64+0x1016029cc)
#51 0x101aca6e8 in tokio::runtime::scheduler::multi_thread::worker::run::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h91e3a08172627bcd+0x64 (aqora:arm64+0x1016026e8)
#52 0x101a6f284 in tokio::runtime::context::scoped::Scoped$LT$T$GT$::set::hbc5254f165822b81+0x90 (aqora:arm64+0x1015a7284)
#53 0x101abfc84 in tokio::runtime::context::set_scheduler::_$u7b$$u7b$closure$u7d$$u7d$::h75593c3321d8177b+0x24 (aqora:arm64+0x1015f7c84)
#54 0x101ab903c in std::thread::local::LocalKey$LT$T$GT$::try_with::h6ad5288136ab8087+0xc8 (aqora:arm64+0x1015f103c)
#55 0x101ab8498 in std::thread::local::LocalKey$LT$T$GT$::with::h908d4a9eed26f67c+0x14 (aqora:arm64+0x1015f0498)
#56 0x101abfbc8 in tokio::runtime::context::set_scheduler::h0004385859bb86f9+0x40 (aqora:arm64+0x1015f7bc8)
#57 0x101aca60c in tokio::runtime::scheduler::multi_thread::worker::run::_$u7b$$u7b$closure$u7d$$u7d$::hd2f786ee9f6ff9e2+0x114 (aqora:arm64+0x10160260c)
#58 0x101a99a1c in tokio::runtime::context::runtime::enter_runtime::h815031142232c44e+0xd4 (aqora:arm64+0x1015d1a1c)
#59 0x101aca444 in tokio::runtime::scheduler::multi_thread::worker::run::h86694c960858e173+0x158 (aqora:arm64+0x101602444)
#60 0x101aca2dc in tokio::runtime::scheduler::multi_thread::worker::Launch::launch::_$u7b$$u7b$closure$u7d$$u7d$::hc52bb81cafd66387+0x14 (aqora:arm64+0x1016022dc)
#61 0x101a71cc4 in _$LT$tokio..runtime..blocking..task..BlockingTask$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::h95837b5e9d7c6ad2+0x84 (aqora:arm64+0x1015a9cc4)
#62 0x101a83c38 in tokio::runtime::task::core::Core$LT$T$C$S$GT$::poll::_$u7b$$u7b$closure$u7d$$u7d$::h1e1c6f58a9ef1832+0x80 (aqora:arm64+0x1015bbc38)
#63 0x101a83184 in tokio::runtime::task::core::Core$LT$T$C$S$GT$::poll::h75df621cd18a1ee4+0x5c (aqora:arm64+0x1015bb184)
#64 0x101a40d64 in tokio::runtime::task::harness::poll_future::_$u7b$$u7b$closure$u7d$$u7d$::h551a4b908335bfe1+0x3c (aqora:arm64+0x101578d64)
#65 0x101ab67c0 in _$LT$core..panic..unwind_safe..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::hc3513bfb107b7d4d+0x28 (aqora:arm64+0x1015ee7c0)
#66 0x101a4d920 in std::panicking::try::do_call::h7f19e586d378e74b+0x4c (aqora:arm64+0x101585920)
#67 0x101a50bc4 in __rust_try+0x1c (aqora:arm64+0x101588bc4)
#68 0x101a4c7d8 in std::panicking::try::he534d3969d8671be+0x5c (aqora:arm64+0x1015847d8)
#69 0x101a74904 in std::panic::catch_unwind::h7b9c48e316ba450e+0x8 (aqora:arm64+0x1015ac904)
#70 0x101a3f9c0 in tokio::runtime::task::harness::poll_future::h2a7f7351c55f053f+0x5c (aqora:arm64+0x1015779c0)
#71 0x101a3a1c0 in tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll_inner::h9f8f5783ad3acff2+0x9c (aqora:arm64+0x1015721c0)
#72 0x101a39818 in tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll::hdb58ecd712e38dc1+0x18 (aqora:arm64+0x101571818)
#73 0x101a8fb44 in tokio::runtime::task::raw::poll::hf0796442ec019666+0x20 (aqora:arm64+0x1015c7b44)
#74 0x101a8f6a4 in tokio::runtime::task::raw::RawTask::poll::hea153ad66021f647+0x30 (aqora:arm64+0x1015c76a4)
#75 0x101a71258 in tokio::runtime::task::UnownedTask$LT$S$GT$::run::h87aa9692944505c7+0x3c (aqora:arm64+0x1015a9258)
#76 0x101ada2f4 in tokio::runtime::blocking::pool::Task::run::h77f4c4a69c780b7f+0x18 (aqora:arm64+0x1016122f4)
#77 0x101ade1dc in tokio::runtime::blocking::pool::Inner::run::ha9583c05259beaaf+0x218 (aqora:arm64+0x1016161dc)
#78 0x101addf2c in tokio::runtime::blocking::pool::Spawner::spawn_thread::_$u7b$$u7b$closure$u7d$$u7d$::hbc9993e9d9b011e1+0x8c (aqora:arm64+0x101615f2c)
#79 0x101a4a1b0 in std::sys_common::backtrace::__rust_begin_short_backtrace::h6b610097627246ae+0xc (aqora:arm64+0x1015821b0)
#80 0x101aa674c in std::thread::Builder::spawn_unchecked_::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::he3ec2d56ab3ac83c+0x24 (aqora:arm64+0x1015de74c)
#81 0x101ab6ab4 in _$LT$core..panic..unwind_safe..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::hf96d36c5da27bdb2+0x24 (aqora:arm64+0x1015eeab4)
#82 0x101a4da88 in std::panicking::try::do_call::h929ca20b745af869+0x44 (aqora:arm64+0x101585a88)
#83 0x101a50bc4 in __rust_try+0x1c (aqora:arm64+0x101588bc4)
#84 0x101a4c530 in std::panicking::try::hd9ba260c302a97be+0x48 (aqora:arm64+0x101584530)
#85 0x101aa6478 in std::thread::Builder::spawn_unchecked_::_$u7b$$u7b$closure$u7d$$u7d$::h8caffda1e282c0f8+0x178 (aqora:arm64+0x1015de478)
#86 0x101a62ce4 in core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hca4f6168d8cc330e+0x14 (aqora:arm64+0x10159ace4)
#87 0x101b309cc in std::sys::pal::unix::thread::Thread::new::thread_start::h50a0ef5291b272f3+0x30 (aqora:arm64+0x1016689cc)
#88 0x193952f90 in _pthread_start+0x84 (libsystem_pthread.dylib:arm64e+0x6f90)
#89 0x19394dd30 in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d30)
0x00010cc2b3d0 is located 16 bytes inside of 288-byte region [0x00010cc2b3c0,0x00010cc2b4e0)
freed by thread T6 here:
#0 0x104acb260 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x53260)
#1 0x1019fe568 in _$LT$pyo3..gil..GILGuard$u20$as$u20$core..ops..drop..Drop$GT$::drop::ha9fc00ec2837259c+0x24 (aqora:arm64+0x101536568)
#2 0x101a11dd8 in core::ptr::drop_in_place$LT$pyo3..gil..GILGuard$GT$::h37c77b8f85ca0d70+0x14 (aqora:arm64+0x101549dd8)
#3 0x101a12374 in core::ptr::drop_in_place$LT$core..option..Option$LT$pyo3..gil..GILGuard$GT$$GT$::hacf8ad991624d2c8+0x3c (aqora:arm64+0x10154a374)
#4 0x1015072e4 in pyo3::marker::Python::with_gil::h529fb56a6ad3fb3e+0xac (aqora:arm64+0x10103f2e4)
#5 0x1015015c0 in aqora_runner::pipeline::Pipeline::import::he59a2c2af6e4a09c+0x3c (aqora:arm64+0x1010395c0)
#6 0x100a48d88 in aqora_cli::commands::test::do_run_pipeline::_$u7b$$u7b$closure$u7d$$u7d$::ha25a563b9a91488b+0x258 (aqora:arm64+0x100580d88)
#7 0x100a4a71c in aqora_cli::commands::test::run_pipeline::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h6b200bc2553be398+0x1cc (aqora:arm64+0x10058271c)
#8 0x10094395c in pyo3_asyncio::generic::run_until_complete::_$u7b$$u7b$closure$u7d$$u7d$::h28ece644f4a7f52f+0x170 (aqora:arm64+0x10047b95c)
#9 0x1009453bc in _$LT$pyo3_asyncio..generic..Cancellable$LT$F$GT$$u20$as$u20$core..future..future..Future$GT$::poll::hb4a25681875a7136+0x34 (aqora:arm64+0x10047d3bc)
#10 0x10096e5c8 in _$LT$tokio..task..task_local..TaskLocalFuture$LT$T$C$F$GT$$u20$as$u20$core..future..future..Future$GT$::poll::_$u7b$$u7b$closure$u7d$$u7d$::haec9379ab5b665e2+0x8c (aqora:arm64+0x1004a65c8)
#11 0x10096ea24 in tokio::task::task_local::LocalKey$LT$T$GT$::scope_inner::h40eb5350bbf4b885+0x124 (aqora:arm64+0x1004a6a24)
#12 0x10096e490 in _$LT$tokio..task..task_local..TaskLocalFuture$LT$T$C$F$GT$$u20$as$u20$core..future..future..Future$GT$::poll::haa048f950c09e47d+0x5c (aqora:arm64+0x1004a6490)
#13 0x100a15b1c in _$LT$tokio..task..task_local..TaskLocalFuture$LT$T$C$F$GT$$u20$as$u20$core..future..future..Future$GT$::poll$u7b$$u7b$reify.shim$u7d$$u7d$::h8afa0bcf38086551+0x24 (aqora:arm64+0x10054db1c)
#14 0x100a5fd58 in _$LT$core..pin..Pin$LT$P$GT$$u20$as$u20$core..future..future..Future$GT$::poll::h275c9970b07a6a40+0x5c (aqora:arm64+0x100597d58)
#15 0x100944d10 in pyo3_asyncio::generic::future_into_py_with_locals::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::hc6e882e4f0e72855+0x288 (aqora:arm64+0x10047cd10)
#16 0x100984aec in _$LT$pyo3_asyncio..tokio..TokioRuntime$u20$as$u20$pyo3_asyncio..generic..Runtime$GT$::spawn::_$u7b$$u7b$closure$u7d$$u7d$::h7dce25423b4580ab+0x170 (aqora:arm64+0x1004bcaec)
#17 0x100a07ec8 in tokio::runtime::task::core::Core$LT$T$C$S$GT$::poll::_$u7b$$u7b$closure$u7d$$u7d$::h08c5ab3201e3f84d+0x84 (aqora:arm64+0x10053fec8)
#18 0x100a07ca0 in tokio::runtime::task::core::Core$LT$T$C$S$GT$::poll::hda87fd1c2762939a+0x5c (aqora:arm64+0x10053fca0)
#19 0x100a58040 in tokio::runtime::task::harness::poll_future::_$u7b$$u7b$closure$u7d$$u7d$::hf5b46171b76dbe3b+0x3c (aqora:arm64+0x100590040)
#20 0x100a38980 in _$LT$core..panic..unwind_safe..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::h446f0cc8bf9908af+0x28 (aqora:arm64+0x100570980)
#21 0x100972d98 in std::panicking::try::do_call::ha83384d6001a93f4+0x4c (aqora:arm64+0x1004aad98)
#22 0x1009752ec in __rust_try+0x1c (aqora:arm64+0x1004ad2ec)
#23 0x100970230 in std::panicking::try::h4215e4caf4dd5220+0x5c (aqora:arm64+0x1004a8230)
#24 0x1009f111c in std::panic::catch_unwind::hed079605ffee39bb+0x8 (aqora:arm64+0x10052911c)
#25 0x100a56398 in tokio::runtime::task::harness::poll_future::h229ff6b9b89e1121+0x5c (aqora:arm64+0x10058e398)
#26 0x100a59128 in tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll_inner::hfebd141575367dac+0x9c (aqora:arm64+0x100591128)
#27 0x100a5abcc in tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll::h517d19aea99eb5ad+0x18 (aqora:arm64+0x100592bcc)
#28 0x100a51f80 in tokio::runtime::task::raw::poll::h53045a526b86e9a6+0x20 (aqora:arm64+0x100589f80)
#29 0x101a8f6a4 in tokio::runtime::task::raw::RawTask::poll::hea153ad66021f647+0x30 (aqora:arm64+0x1015c76a4)
previously allocated by thread T6 here:
#0 0x104acb4f0 in wrap_calloc+0x9c (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x534f0)
#1 0x105d44f8c in new_threadstate pystate.c:1393
#2 0x105d4868c in PyGILState_Ensure pystate.c:2218
#3 0x1019fe4cc in pyo3::gil::GILGuard::acquire_unchecked::h07c43b4e67dccd34+0x30 (aqora:arm64+0x1015364cc)
#4 0x1019fe480 in pyo3::gil::GILGuard::acquire::haef0432386cb877c+0x64 (aqora:arm64+0x101536480)
#5 0x101507260 in pyo3::marker::Python::with_gil::h529fb56a6ad3fb3e+0x28 (aqora:arm64+0x10103f260)
#6 0x1015015c0 in aqora_runner::pipeline::Pipeline::import::he59a2c2af6e4a09c+0x3c (aqora:arm64+0x1010395c0)
#7 0x100a48d88 in aqora_cli::commands::test::do_run_pipeline::_$u7b$$u7b$closure$u7d$$u7d$::ha25a563b9a91488b+0x258 (aqora:arm64+0x100580d88)
#8 0x100a4a71c in aqora_cli::commands::test::run_pipeline::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h6b200bc2553be398+0x1cc (aqora:arm64+0x10058271c)
#9 0x10094395c in pyo3_asyncio::generic::run_until_complete::_$u7b$$u7b$closure$u7d$$u7d$::h28ece644f4a7f52f+0x170 (aqora:arm64+0x10047b95c)
#10 0x1009453bc in _$LT$pyo3_asyncio..generic..Cancellable$LT$F$GT$$u20$as$u20$core..future..future..Future$GT$::poll::hb4a25681875a7136+0x34 (aqora:arm64+0x10047d3bc)
#11 0x10096e5c8 in _$LT$tokio..task..task_local..TaskLocalFuture$LT$T$C$F$GT$$u20$as$u20$core..future..future..Future$GT$::poll::_$u7b$$u7b$closure$u7d$$u7d$::haec9379ab5b665e2+0x8c (aqora:arm64+0x1004a65c8)
#12 0x10096ea24 in tokio::task::task_local::LocalKey$LT$T$GT$::scope_inner::h40eb5350bbf4b885+0x124 (aqora:arm64+0x1004a6a24)
#13 0x10096e490 in _$LT$tokio..task..task_local..TaskLocalFuture$LT$T$C$F$GT$$u20$as$u20$core..future..future..Future$GT$::poll::haa048f950c09e47d+0x5c (aqora:arm64+0x1004a6490)
#14 0x100a15b1c in _$LT$tokio..task..task_local..TaskLocalFuture$LT$T$C$F$GT$$u20$as$u20$core..future..future..Future$GT$::poll$u7b$$u7b$reify.shim$u7d$$u7d$::h8afa0bcf38086551+0x24 (aqora:arm64+0x10054db1c)
#15 0x100a5fd58 in _$LT$core..pin..Pin$LT$P$GT$$u20$as$u20$core..future..future..Future$GT$::poll::h275c9970b07a6a40+0x5c (aqora:arm64+0x100597d58)
#16 0x100944d10 in pyo3_asyncio::generic::future_into_py_with_locals::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::hc6e882e4f0e72855+0x288 (aqora:arm64+0x10047cd10)
#17 0x100984aec in _$LT$pyo3_asyncio..tokio..TokioRuntime$u20$as$u20$pyo3_asyncio..generic..Runtime$GT$::spawn::_$u7b$$u7b$closure$u7d$$u7d$::h7dce25423b4580ab+0x170 (aqora:arm64+0x1004bcaec)
#18 0x100a07ec8 in tokio::runtime::task::core::Core$LT$T$C$S$GT$::poll::_$u7b$$u7b$closure$u7d$$u7d$::h08c5ab3201e3f84d+0x84 (aqora:arm64+0x10053fec8)
#19 0x100a07ca0 in tokio::runtime::task::core::Core$LT$T$C$S$GT$::poll::hda87fd1c2762939a+0x5c (aqora:arm64+0x10053fca0)
#20 0x100a58040 in tokio::runtime::task::harness::poll_future::_$u7b$$u7b$closure$u7d$$u7d$::hf5b46171b76dbe3b+0x3c (aqora:arm64+0x100590040)
#21 0x100a38980 in _$LT$core..panic..unwind_safe..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::h446f0cc8bf9908af+0x28 (aqora:arm64+0x100570980)
#22 0x100972d98 in std::panicking::try::do_call::ha83384d6001a93f4+0x4c (aqora:arm64+0x1004aad98)
#23 0x1009752ec in __rust_try+0x1c (aqora:arm64+0x1004ad2ec)
#24 0x100970230 in std::panicking::try::h4215e4caf4dd5220+0x5c (aqora:arm64+0x1004a8230)
#25 0x1009f111c in std::panic::catch_unwind::hed079605ffee39bb+0x8 (aqora:arm64+0x10052911c)
#26 0x100a56398 in tokio::runtime::task::harness::poll_future::h229ff6b9b89e1121+0x5c (aqora:arm64+0x10058e398)
#27 0x100a59128 in tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll_inner::hfebd141575367dac+0x9c (aqora:arm64+0x100591128)
#28 0x100a5abcc in tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll::h517d19aea99eb5ad+0x18 (aqora:arm64+0x100592bcc)
#29 0x100a51f80 in tokio::runtime::task::raw::poll::h53045a526b86e9a6+0x20 (aqora:arm64+0x100589f80)
Thread T6 created by T0 here:
#0 0x104ac3d6c in wrap_pthread_create+0x54 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x4bd6c)
#1 0x101b30834 in std::sys::pal::unix::thread::Thread::new::h531e04b01f34646c+0xc8 (aqora:arm64+0x101668834)
#2 0x101aa5fd8 in std::thread::Builder::spawn_unchecked_::hbd732f84c1b453c7+0x628 (aqora:arm64+0x1015ddfd8)
#3 0x101aa58f8 in std::thread::Builder::spawn_unchecked::h6506c1e3493e14d5+0x18 (aqora:arm64+0x1015dd8f8)
#4 0x101aa67a8 in std::thread::Builder::spawn::h5ece73e6d3b12f44+0x8 (aqora:arm64+0x1015de7a8)
#5 0x101adde54 in tokio::runtime::blocking::pool::Spawner::spawn_thread::hfa9683d758372059+0x204 (aqora:arm64+0x101615e54)
#6 0x101add918 in tokio::runtime::blocking::pool::Spawner::spawn_task::h35f402d0df239d66+0x2ec (aqora:arm64+0x101615918)
#7 0x101adc6e4 in tokio::runtime::blocking::pool::Spawner::spawn_blocking_inner::h212cbf24aa28f2a0+0x14c (aqora:arm64+0x1016146e4)
#8 0x101adb0d4 in tokio::runtime::blocking::pool::Spawner::spawn_blocking::h0c298f40f8151072+0xc0 (aqora:arm64+0x1016130d4)
#9 0x101aa0b58 in tokio::runtime::handle::Handle::spawn_blocking::h78fde03d2ab7ef18+0x68 (aqora:arm64+0x1015d8b58)
#10 0x101ada674 in tokio::runtime::blocking::pool::spawn_blocking::hc37ea4b6e49bc750+0x74 (aqora:arm64+0x101612674)
#11 0x101aca288 in tokio::runtime::scheduler::multi_thread::worker::Launch::launch::hae82b18555108a0a+0xcc (aqora:arm64+0x101602288)
#12 0x101aa1310 in tokio::runtime::builder::Builder::build_threaded_runtime::h07404a52113d7b8e+0x564 (aqora:arm64+0x1015d9310)
#13 0x101aa00e4 in tokio::runtime::builder::Builder::build::hc2ae99b10d607fd1+0x40 (aqora:arm64+0x1015d80e4)
#14 0x100a38618 in aqora_cli::run::tokio_runtime::_$u7b$$u7b$closure$u7d$$u7d$::ha49cf66610106f76+0x68 (aqora:arm64+0x100570618)
#15 0x100a605f4 in std::sync::once_lock::OnceLock$LT$T$GT$::get_or_init::_$u7b$$u7b$closure$u7d$$u7d$::h7fab44548b60acc4+0x18 (aqora:arm64+0x1005985f4)
#16 0x100a60374 in std::sync::once_lock::OnceLock$LT$T$GT$::initialize::_$u7b$$u7b$closure$u7d$$u7d$::h7d37dd4e0cbbe49e+0x48 (aqora:arm64+0x100598374)
#17 0x100a327bc in std::sync::once::Once::call_once_force::_$u7b$$u7b$closure$u7d$$u7d$::h23bfff07aba54c9d+0x88 (aqora:arm64+0x10056a7bc)
#18 0x101b874cc in std::sys::sync::once::queue::Once::call::h4d48f66a899a23f1+0x29c (aqora:arm64+0x1016bf4cc)
#19 0x100a326f4 in std::sync::once::Once::call_once_force::hecf604f573f76a64+0xcc (aqora:arm64+0x10056a6f4)
#20 0x101b60498 in std::sync::once_lock::OnceLock$LT$T$GT$::initialize::h46bbc11308a001b7+0x38 (aqora:arm64+0x101698498)
#21 0x100a606d8 in std::sync::once_lock::OnceLock$LT$T$GT$::get_or_try_init::h071967d3fda56f3f+0x88 (aqora:arm64+0x1005986d8)
#22 0x100a604c0 in std::sync::once_lock::OnceLock$LT$T$GT$::get_or_init::h380f4d2b34ad1b07+0x14 (aqora:arm64+0x1005984c0)
#23 0x100a13b70 in aqora_cli::run::tokio_runtime::he8a12a13e71a673e+0x10 (aqora:arm64+0x10054bb70)
#24 0x100837298 in aqora_cli::run::run::h381bb8d427e05b3e run.rs:57
#25 0x10050f9b0 in aqora::main::h76b88597ef18dd55 main.rs:6
#26 0x1007b0f84 in core::ops::function::FnOnce::call_once::heb8d37fc204e0bf4 function.rs:250
#27 0x1006b10ec in std::sys_common::backtrace::__rust_begin_short_backtrace::h4ede5d7bbc4cef6b backtrace.rs:155
#28 0x100900bd8 in std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h6605a24dcba53aa8 rt.rs:159
#29 0x101b1de14 in std::rt::lang_start_internal::hecc68fef83c8f44d+0x27c (aqora:arm64+0x101655e14)
#30 0x100900ba4 in std::rt::lang_start::h7bc56bb9a48e915b rt.rs:158
#31 0x10050fa18 in main+0x20 (aqora:arm64+0x100047a18)
#32 0x1935ca0dc (<unknown module>)
SUMMARY: AddressSanitizer: heap-use-after-free pystate.c:3049 in _PyThreadState_MustExit
Shadow bytes around the buggy address:
0x00010cc2b100: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x00010cc2b180: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x00010cc2b200: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x00010cc2b280: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x00010cc2b300: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x00010cc2b380: fa fa fa fa fa fa fa fa fd fd[fd]fd fd fd fd fd
0x00010cc2b400: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x00010cc2b480: fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa
0x00010cc2b500: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x00010cc2b580: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x00010cc2b600: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==63146==ABORTING
[1] 63146 abort target/debug/aqora test -p ~/Workspace/usecase-quantumsignals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment