Free-threaded crash on musllinux
Running a codemod across many files with the free-threading build runs into a SIGSEGV while parsing.
Repro from within a libcst checkout
docker run -v .:/project --rm -ti quay.io/pypa/musllinux_1_2_x86_64 uv run --no-project -p /opt/python/cp313-cp313t/bin/python --with libcst==1.8.3.dev1 --extra-index-url=https://test.p
ypi.org/simple/ python -m libcst.tool codemod remove_unused_imports.RemoveUnusedImportsCommand /project/libcst/_nodes/
Crash should happen within a few seconds. Seems like this only happens on musllinux for some reason.
To get a stacktrace:
docker run -v .:/project -ti quay.io/pypa/musllinux_1_2_x86_64 bash
then from within the container:
apk add gdb cargo lldb
cd /project
uv sync -p /opt/python/cp313-cp313t/bin/python
source .venv/bin/activate
uv pip install -e .
gdb --args python -m libcst.tool codemod remove_unused_imports.RemoveUnusedImportsCommand /project/libcst/_nodes/
Then you can type run from gdb to get it to crash, and inspect the stack trace with bt
I found this while working on https://github.com/Instagram/LibCST/pull/1359 to run a smoke test on the wheels built by CI.
cc @ngoldbaum in case you're interested :)
yikes! Is the codemod using a thread pool? Maybe try compiling with TSAN?
https://pyo3.rs/v0.25.1/debugging.html#thread-safety-and-compiler-sanitizers
ASAN might also be useful if its segfaulting - we don't yet have CPython ASAN docker images so you'd need to build an ASAN instrumented CPython.
I might take a stab at this next week.
we don't yet have CPython ASAN docker images so you'd need to build an ASAN instrumented CPython.
err, we don't have musl libc images either, so no matter what you're going to be building Python from source.
I can reproduce this. When I try to build a free-threaded interpreter with TSAN or ASAN enabled on the alpine image I get a build error in CPython's configure script: checking for --with-mimalloc... configure: error: --disable-gil requires mimalloc memory allocator (--with-mimalloc). Not sure what I need to do to fix that...
Also here's the tracebacks from all the threads:
(gdb) thread apply all bt
Thread 9 (LWP 22331 "python"):
#0 alloc::vec::{impl#13}::index<regex_automata::hybrid::id::LazyStateID, usize, alloc::alloc::Global> (self=0xa4, index=576461439498190879) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/mod.rs:3371
#1 0x00007f18cfbbd566 in regex_automata::hybrid::dfa::DFA::next_state (self=<error reading variable: That operation is not available on integers of more than 8 bytes.>, cache=0x7f18cf7fed10, current=..., input=97) at src/hybrid/dfa.rs:1223
#2 0x00007f18cfbdced1 in regex_automata::hybrid::search::find_fwd_imp (dfa=<error reading variable: That operation is not available on integers of more than 8 bytes.>, cache=0x7f18cf7fed10, input=0x7f18d006c608, pre=..., earliest=false) at src/hybrid/search.rs:88
#3 regex_automata::hybrid::search::find_fwd (dfa=<error reading variable: That operation is not available on integers of more than 8 bytes.>, cache=0x7f18cf7fed10, input=0x7f18d006c608) at src/hybrid/search.rs:44
#4 0x00007f18cfbbcaff in regex_automata::hybrid::dfa::DFA::try_search_fwd (self=<error reading variable: That operation is not available on integers of more than 8 bytes.>, cache=0x7f18cf7fed10, input=0x7f18d006c608) at src/hybrid/dfa.rs:595
#5 0x00007f18cfbd2a02 in regex_automata::hybrid::regex::Regex::try_search (self=<error reading variable: That operation is not available on integers of more than 8 bytes.>, cache=0x7f18cf7fed10, input=0x7f18d006c608) at src/hybrid/regex.rs:448
#6 0x00007f18cfc01457 in regex_automata::meta::wrappers::HybridEngine::try_search (self=<error reading variable: That operation is not available on integers of more than 8 bytes.>, cache=<error reading variable: Cannot access memory at address 0x0>, input=0x7f18d006c608) at src/meta/wrappers.rs:649
#7 regex_automata::meta::strategy::{impl#4}::search (self=<error reading variable: That operation is not available on integers of more than 8 bytes.>, cache=0x7f18cf7fed10, input=0x7f18d006c608) at src/meta/strategy.rs:720
#8 0x00007f18cfae87e3 in regex_automata::meta::regex::Regex::search (self=0x7f18d0047b68, input=0x7f18d006c608) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/regex-automata-0.4.9/src/meta/regex.rs:924
#9 0x00007f18cf92a7dd in regex::regex::string::Regex::find_at (self=0x7f18d0047b68, haystack=..., start=0) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/regex-1.11.1/src/regex/string.rs:1111
#10 0x00007f18cf92a735 in regex::regex::string::Regex::find (self=0x7f18d0047b68, haystack=...) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/regex-1.11.1/src/regex/string.rs:233
#11 0x00007f18cf92a86b in libcst_native::tokenizer::text_position::{impl#0}::match_len (self=0x7f18d006c768, text=...) at libcst/src/tokenizer/text_position/mod.rs:21
#12 0x00007f18cf8b182b in libcst_native::tokenizer::text_position::TextPosition::consume<®ex::regex::string::Regex> (self=0x7f18d006d900, pattern=0x7f18d0047b68) at libcst/src/tokenizer/text_position/mod.rs:133
#13 0x00007f18cfabf63f in libcst_native::tokenizer::core::{impl#0}::next_inner::{closure#1} (v=0x7f18d0047b68) at libcst/src/tokenizer/core/mod.rs:324
#14 0x00007f18cf86a208 in std::thread::local::LocalKey<regex::regex::string::Regex>::try_with<regex::regex::string::Regex, libcst_native::tokenizer::core::{impl#0}::next_inner::{closure_env#1}, bool> (self=0x7f18cff47280, f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/thread/local.rs:311
#15 0x00007f18cf869bc3 in std::thread::local::LocalKey<regex::regex::string::Regex>::with<regex::regex::string::Regex, libcst_native::tokenizer::core::{impl#0}::next_inner::{closure_env#1}, bool> (self=0x7f18cff47280, f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/thread/local.rs:275
#16 0x00007f18cfad365e in libcst_native::tokenizer::core::TokState::next_inner (self=0x7f18d006d8a0) at libcst/src/tokenizer/core/mod.rs:324
#17 0x00007f18cfad3a4e in libcst_native::tokenizer::core::TokState::next_inner (self=0x7f18d006d8a0) at libcst/src/tokenizer/core/mod.rs:373
#18 0x00007f18cfad6b24 in libcst_native::tokenizer::core::{impl#1}::next (self=0x7f18d006d8a0) at libcst/src/tokenizer/cor--Type <RET> for more, q to quit, c to continue without paging--c
e/mod.rs:1033
#19 0x00007f18cfad6df5 in libcst_native::tokenizer::core::{impl#6}::next (self=0x7f18d006d8a0) at libcst/src/tokenizer/core/mod.rs:1108
#20 0x00007f18cfabf22d in core::iter::traits::iterator::Iterator::try_fold<libcst_native::tokenizer::core::TokenIterator, (), core::iter::adapters::{impl#0}::try_fold::{closure_env#0}<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>, (), core::iter::traits::iterator::Iterator::try_for_each::call::{closure_env#0}<libcst_native::tokenizer::core::Token, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>, fn(libcst_native::tokenizer::core::Token) -> core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>>, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>>, core::ops::control_flow::ControlFlow<core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>, ()>> (self=0x7f18d006d8a0, init=(), f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:2383
#21 0x00007f18cfa2aade in core::iter::adapters::{impl#0}::try_fold<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>, (), core::iter::traits::iterator::Iterator::try_for_each::call::{closure_env#0}<libcst_native::tokenizer::core::Token, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>, fn(libcst_native::tokenizer::core::Token) -> core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>>, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>> (self=0x7f18d006d8a0, init=(), f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/adapters/mod.rs:191
#22 0x00007f18cfa278c3 in core::iter::traits::iterator::Iterator::try_for_each<core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>, fn(libcst_native::tokenizer::core::Token) -> core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>> (self=0x7f18d006d8a0) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:2445
#23 core::iter::adapters::{impl#0}::next<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>> (self=0x7f18d006d8a0) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/adapters/mod.rs:174
#24 0x00007f18cf9f01f9 in alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>::extend_desugared<libcst_native::tokenizer::core::Token, alloc::alloc::Global, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>> (self=0x7f18d006d710, iterator=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/mod.rs:3546
#25 0x00007f18cfa0808a in alloc::vec::spec_extend::{impl#0}::spec_extend<libcst_native::tokenizer::core::Token, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>, alloc::alloc::Global> (self=0x7f18d006d710, iter=<error reading variable: Cannot access memory at address 0x1bc>) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/spec_extend.rs:19
#26 0x00007f18cf9d3056 in alloc::vec::spec_from_iter_nested::{impl#0}::from_iter<libcst_native::tokenizer::core::Token, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>> (iterator=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/spec_from_iter_nested.rs:42
#27 0x00007f18cfa0994d in alloc::vec::spec_from_iter::{impl#0}::from_iter<libcst_native::tokenizer::core::Token, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>> (iterator=<error reading variable: Cannot access memory at address 0x1bc>) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/spec_from_iter.rs:34
#28 0x00007f18cfa03fa4 in alloc::vec::{impl#15}::from_iter<libcst_native::tokenizer::core::Token, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>> (iter=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/mod.rs:3438
#29 0x00007f18cfa37c8d in core::iter::traits::iterator::Iterator::collect<core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>> (self=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:1985
#30 0x00007f18cfaa7271 in core::result::{impl#26}::from_iter::{closure#0}<libcst_native::tokenizer::core::Token, libcst_native::tokenizer::core::TokError, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::tokenizer::core::TokenIterator> (i=<error reading variable: Cannot access memory at address 0x1bc>) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/result.rs:1993
#31 0x00007f18cfa39a4f in core::iter::adapters::try_process<libcst_native::tokenizer::core::TokenIterator, libcst_native::tokenizer::core::Token, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>, core::result::{impl#26}::from_iter::{closure_env#0}<libcst_native::tokenizer::core::Token, libcst_native::tokenizer::core::TokError, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::tokenizer::core::TokenIterator>, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>> (iter=..., f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/adapters/mod.rs:160
#32 0x00007f18cfaa647a in core::result::{impl#26}::from_iter<libcst_native::tokenizer::core::Token, libcst_native::tokenizer::core::TokError, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::tokenizer::core::TokenIterator> (iter=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/result.rs:1993
#33 0x00007f18cfabf1b7 in core::iter::traits::iterator::Iterator::collect<libcst_native::tokenizer::core::TokenIterator, core::result::Result<alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::tokenizer::core::TokError>> (self=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:1985
#34 0x00007f18cf92e278 in libcst_native::tokenize (text=...) at libcst/src/lib.rs:32
#35 0x00007f18cf92e35a in libcst_native::parse_module (module_text=..., encoding=...) at libcst/src/lib.rs:44
#36 0x00007f18cf91a54b in libcst_native::py::libcst_native::parse_module (source=..., encoding=...) at libcst/src/py.rs:15
#37 0x00007f18cf91a1bc in libcst_native::py::libcst_native::__pyfunction_parse_module (_slf=0x5f0dc040be0, _args=0x5f0ea1b0268, _nargs=1, _kwnames=0x5f0ea0300f0) at libcst/src/py.rs:9
#38 0x00007f18cfae7ec3 in pyo3::impl_::trampoline::fastcall_with_keywords::{closure#0} () at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:44
#39 0x00007f18cfae7dfc in pyo3::impl_::trampoline::trampoline::{closure#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject> () at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:190
#40 0x00007f18cf92a424 in std::panicking::try::do_call<pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>, core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>> (data=0x7f18d006f488) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panicking.rs:589
#41 0x00007f18cf91672b in __rust_try () from /project/libcst/native.cpython-313t-x86_64-linux-musl.so
#42 0x00007f18cf916599 in std::panicking::try<core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>, pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>> (f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panicking.rs:552
#43 std::panic::catch_unwind<pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>, core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>> (f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panic.rs:359
#44 0x00007f18cfae7bb7 in pyo3::impl_::trampoline::trampoline<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject> (body=...) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:190
#45 0x00007f18cfa65e39 in pyo3::impl_::trampoline::fastcall_with_keywords (slf=0x5f0dc040be0, args=0x5f0ea1b0268, nargs=1, kwnames=0x5f0ea0300f0, f=0x7f18cf919e60 <libcst_native::py::libcst_native::__pyfunction_parse_module>) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:44
#46 0x00007f18cf919e44 in libcst_native::py::libcst_native::{impl#0}::_PYO3_DEF::trampoline (_slf=0x5f0dc040be0, _args=0x5f0ea1b0268, _nargs=1, _kwnames=0x5f0ea0300f0) at libcst/src/py.rs:9
#47 0x0000557f2686fddf in ?? ()
#48 0x0000557f268143a1 in ?? ()
#49 0x0000557f26a605f5 in ?? ()
#50 0x0000557f2681239c in _PyObject_MakeTpCall ()
#51 0x0000557f26812b0f in PyObject_Vectorcall ()
#52 0x0000557f2695401c in _PyEval_EvalFrameDefault ()
#53 0x0000557f26815973 in ?? ()
#54 0x0000557f26a57b97 in ?? ()
#55 0x0000557f269dae97 in ?? ()
#56 0x00007f18d040d9d2 in start (p=0x7f18d006fad8) at src/thread/pthread_create.c:207
#57 0x00007f18d040f314 in __clone () at src/thread/x86_64/clone.s:22
Backtrace stopped: frame did not save the PC
Thread 8 (LWP 22330 "python"):
#0 0x00007f18cf92a870 in libcst_native::tokenizer::text_position::{impl#0}::match_len (self=0x7f18d0094a28, text=...) at libcst/src/tokenizer/text_position/mod.rs:21
#1 0x00007f18cf8b182b in libcst_native::tokenizer::text_position::TextPosition::consume<®ex::regex::string::Regex> (self=0x7f18d0095900, pattern=0x7f18d0047dd0) at libcst/src/tokenizer/text_position/mod.rs:133
#2 0x00007f18cfabf6ff in libcst_native::tokenizer::core::{impl#0}::next_inner::{closure#5} (r=0x7f18d0047dd0) at libcst/src/tokenizer/core/mod.rs:477
#3 0x00007f18cf86a898 in std::thread::local::LocalKey<regex::regex::string::Regex>::try_with<regex::regex::string::Regex, libcst_native::tokenizer::core::{impl#0}::next_inner::{closure_env#5}, bool> (self=0x7f18cff47308, f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/thread/local.rs:311
#4 0x00007f18cf869c63 in std::thread::local::LocalKey<regex::regex::string::Regex>::with<regex::regex::string::Regex, libcst_native::tokenizer::core::{impl#0}::next_inner::{closure_env#5}, bool> (self=0x7f18cff47308, f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/thread/local.rs:275
#5 0x00007f18cfad3efc in libcst_native::tokenizer::core::TokState::next_inner (self=0x7f18d00958a0) at libcst/src/tokenizer/core/mod.rs:477
#6 0x00007f18cfad6b24 in libcst_native::tokenizer::core::{impl#1}::next (self=0x7f18d00958a0) at libcst/src/tokenizer/core/mod.rs:1033
#7 0x00007f18cfad6df5 in libcst_native::tokenizer::core::{impl#6}::next (self=0x7f18d00958a0) at libcst/src/tokenizer/core/mod.rs:1108
#8 0x00007f18cfabf22d in core::iter::traits::iterator::Iterator::try_fold<libcst_native::tokenizer::core::TokenIterator, (), core::iter::adapters::{impl#0}::try_fold::{closure_env#0}<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>, (), core::iter::traits::iterator::Iterator::try_for_each::call::{closure_env#0}<libcst_native::tokenizer::core::Token, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>, fn(libcst_native::tokenizer::core::Token) -> core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>>, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>>, core::ops::control_flow::ControlFlow<core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>, ()>> (self=0x7f18d00958a0, init=(), f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:2383
#9 0x00007f18cfa2aade in core::iter::adapters::{impl#0}::try_fold<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>, (), core::iter::traits::iterator::Iterator::try_for_each::call::{closure_env#0}<libcst_native::tokenizer::core::Token, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>, fn(libcst_native::tokenizer::core::Token) -> core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>>, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>> (self=0x7f18d00958a0, init=(), f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/adapters/mod.rs:191
#10 0x00007f18cfa278c3 in core::iter::traits::iterator::Iterator::try_for_each<core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>, fn(libcst_native::tokenizer::core::Token) -> core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>> (self=0x7f18d00958a0) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:2445
#11 core::iter::adapters::{impl#0}::next<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>> (self=0x7f18d00958a0) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/adapters/mod.rs:174
#12 0x00007f18cf9f01f9 in alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>::extend_desugared<libcst_native::tokenizer::core::Token, alloc::alloc::Global, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>> (self=0x7f18d0095710, iterator=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/mod.rs:3546
#13 0x00007f18cfa0808a in alloc::vec::spec_extend::{impl#0}::spec_extend<libcst_native::tokenizer::core::Token, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>, alloc::alloc::Global> (self=0x7f18d0095710, iter=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/spec_extend.rs:19
#14 0x00007f18cf9d3056 in alloc::vec::spec_from_iter_nested::{impl#0}::from_iter<libcst_native::tokenizer::core::Token, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>> (iterator=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/spec_from_iter_nested.rs:42
#15 0x00007f18cfa0994d in alloc::vec::spec_from_iter::{impl#0}::from_iter<libcst_native::tokenizer::core::Token, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>> (iterator=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/spec_from_iter.rs:34
#16 0x00007f18cfa03fa4 in alloc::vec::{impl#15}::from_iter<libcst_native::tokenizer::core::Token, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>> (iter=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/mod.rs:3438
#17 0x00007f18cfa37c8d in core::iter::traits::iterator::Iterator::collect<core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>> (self=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:1985
#18 0x00007f18cfaa7271 in core::result::{impl#26}::from_iter::{closure#0}<libcst_native::tokenizer::core::Token, libcst_native::tokenizer::core::TokError, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::tokenizer::core::TokenIterator> (i=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/result.rs:1993
#19 0x00007f18cfa39a4f in core::iter::adapters::try_process<libcst_native::tokenizer::core::TokenIterator, libcst_native::tokenizer::core::Token, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>, core::result::{impl#26}::from_iter::{closure_env#0}<libcst_native::tokenizer::core::Token, libcst_native::tokenizer::core::TokError, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::tokenizer::core::TokenIterator>, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>> (iter=..., f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/adapters/mod.rs:160
#20 0x00007f18cfaa647a in core::result::{impl#26}::from_iter<libcst_native::tokenizer::core::Token, libcst_native::tokenizer::core::TokError, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::tokenizer::core::TokenIterator> (iter=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/result.rs:1993
#21 0x00007f18cfabf1b7 in core::iter::traits::iterator::Iterator::collect<libcst_native::tokenizer::core::TokenIterator, core::result::Result<alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::tokenizer::core::TokError>> (self=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:1985
#22 0x00007f18cf92e278 in libcst_native::tokenize (text=...) at libcst/src/lib.rs:32
#23 0x00007f18cf92e35a in libcst_native::parse_module (module_text=..., encoding=...) at libcst/src/lib.rs:44
#24 0x00007f18cf91a54b in libcst_native::py::libcst_native::parse_module (source=..., encoding=...) at libcst/src/py.rs:15
#25 0x00007f18cf91a1bc in libcst_native::py::libcst_native::__pyfunction_parse_module (_slf=0x5f0dc040be0, _args=0x5f0e81f0268, _nargs=1, _kwnames=0x5f0e80300f0) at libcst/src/py.rs:9
#26 0x00007f18cfae7ec3 in pyo3::impl_::trampoline::fastcall_with_keywords::{closure#0} () at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:44
#27 0x00007f18cfae7dfc in pyo3::impl_::trampoline::trampoline::{closure#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject> () at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:190
#28 0x00007f18cf92a424 in std::panicking::try::do_call<pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>, core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>> (data=0x7f18d0097488) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panicking.rs:589
#29 0x00007f18cf91672b in __rust_try () from /project/libcst/native.cpython-313t-x86_64-linux-musl.so
#30 0x00007f18cf916599 in std::panicking::try<core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>, pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>> (f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panicking.rs:552
#31 std::panic::catch_unwind<pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>, core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>> (f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panic.rs:359
#32 0x00007f18cfae7bb7 in pyo3::impl_::trampoline::trampoline<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject> (body=...) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:190
#33 0x00007f18cfa65e39 in pyo3::impl_::trampoline::fastcall_with_keywords (slf=0x5f0dc040be0, args=0x5f0e81f0268, nargs=1, kwnames=0x5f0e80300f0, f=0x7f18cf919e60 <libcst_native::py::libcst_native::__pyfunction_parse_module>) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:44
#34 0x00007f18cf919e44 in libcst_native::py::libcst_native::{impl#0}::_PYO3_DEF::trampoline (_slf=0x5f0dc040be0, _args=0x5f0e81f0268, _nargs=1, _kwnames=0x5f0e80300f0) at libcst/src/py.rs:9
#35 0x0000557f2686fddf in ?? ()
#36 0x0000557f268143a1 in ?? ()
#37 0x0000557f26a605f5 in ?? ()
#38 0x0000557f2681239c in _PyObject_MakeTpCall ()
#39 0x0000557f26812b0f in PyObject_Vectorcall ()
#40 0x0000557f2695401c in _PyEval_EvalFrameDefault ()
#41 0x0000557f26815973 in ?? ()
#42 0x0000557f26a57b97 in ?? ()
#43 0x0000557f269dae97 in ?? ()
#44 0x00007f18d040d9d2 in start (p=0x7f18d0097ad8) at src/thread/pthread_create.c:207
#45 0x00007f18d040f314 in __clone () at src/thread/x86_64/clone.s:22
Backtrace stopped: frame did not save the PC
Thread 7 (LWP 22329 "python"):
#0 size_to_class (n=120) at src/malloc/mallocng/meta.h:231
#1 __libc_malloc_impl (n=120) at src/malloc/mallocng/malloc.c:335
#2 0x00007f18cf916d6e in alloc::alloc::alloc (layout=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/alloc.rs:93
#3 0x00007f18cf916e7a in alloc::alloc::Global::alloc_impl (self=0x1, layout=..., zeroed=false) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/alloc.rs:188
#4 0x00007f18cf916cbe in alloc::alloc::{impl#1}::allocate (layout=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/alloc.rs:249
#5 alloc::alloc::exchange_malloc (size=120, align=8) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/alloc.rs:350
#6 0x00007f18cfac1761 in alloc::boxed::{impl#0}::new<alloc::rc::RcInner<libcst_native::tokenizer::core::Token>> (x=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/boxed.rs:261
#7 alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>::new<libcst_native::tokenizer::core::Token> (value=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/rc.rs:412
#8 0x00007f18cf88cb1a in core::ops::function::FnMut::call_mut<fn(libcst_native::tokenizer::core::Token) -> alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, (libcst_native::tokenizer::core::Token)> () at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/ops/function.rs:166
#9 0x00007f18cf94e8e4 in core::iter::adapters::map::map_try_fold::{closure#0}<libcst_native::tokenizer::core::Token, alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, alloc::vec::in_place_drop::InPlaceDrop<alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>>, core::result::Result<alloc::vec::in_place_drop::InPlaceDrop<alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>>, !>, fn(libcst_native::tokenizer::core::Token) -> alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, alloc::vec::in_place_collect::write_in_place_with_drop::{closure_env#0}<alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>>> (acc=..., elt=<error reading variable: Cannot access memory at address 0x51>) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/adapters/map.rs:95
#10 0x00007f18cfa16996 in alloc::vec::into_iter::{impl#5}::try_fold<libcst_native::tokenizer::core::Token, alloc::alloc::Global, alloc::vec::in_place_drop::InPlaceDrop<alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>>, core::iter::adapters::map::map_try_fold::{closure_env#0}<libcst_native::tokenizer::core::Token, alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, alloc::vec::in_place_drop::InPlaceDrop<alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>>, core::result::Result<alloc::vec::in_place_drop::InPlaceDrop<alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>>, !>, fn(libcst_native::tokenizer::core::Token) -> alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, alloc::vec::in_place_collect::write_in_place_with_drop::{closure_env#0}<alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>>>, core::result::Result<alloc::vec::in_place_drop::InPlaceDrop<alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>>, !>> (self=0x7f18d00bd348, accum=..., f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/into_iter.rs:346
#11 0x00007f18cf9424db in core::iter::adapters::map::{impl#2}::try_fold<alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, alloc::vec::into_iter::IntoIter<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, fn(libcst_native::tokenizer::core::Token) -> alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, alloc::vec::in_place_drop::InPlaceDrop<alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>>, alloc::vec::in_place_collect::write_in_place_with_drop::{closure_env#0}<alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>>, core::result::Result<alloc::vec::in_place_drop::InPlaceDrop<alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>>, !>> (self=0x7f18d00bd348, init=..., g=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/adapters/map.rs:121
#12 0x00007f18cf951203 in alloc::vec::in_place_collect::{impl#2}::collect_in_place<alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, fn(libcst_native::tokenizer::core::Token) -> alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>>> (self=0x7f18d00bd348, dst_buf=0x7f18cf5d5400, end=0x7f18cf5e6020) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/in_place_collect.rs:380
#13 0x00007f18cfa5a362 in alloc::vec::in_place_collect::from_iter_in_place<core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, fn(libcst_native::tokenizer::core::Token) -> alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>>, alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>> (iterator=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/in_place_collect.rs:271
#14 0x00007f18cf8a4e94 in alloc::vec::in_place_collect::from_iter_in_place<core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, fn(libcst_native::tokenizer::core::Token) -> alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>>, alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>> () at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/in_place_collect.rs:251
#15 0x00007f18cf9fbd6d in alloc::vec::in_place_collect::{impl#1}::from_iter<alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, fn(libcst_native::tokenizer::core::Token) -> alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>>> (iterator=<error reading variable: Cannot access memory at address 0x8>) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/in_place_collect.rs:246
#16 0x00007f18cfa0494f in alloc::vec::{impl#15}::from_iter<alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, fn(libcst_native::tokenizer::core::Token) -> alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>>> (iter=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/mod.rs:3438
#17 0x00007f18cf944f4a in core::iter::traits::iterator::Iterator::collect<core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, fn(libcst_native::tokenizer::core::Token) -> alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>>, alloc::vec::Vec<alloc::rc::Rc<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, alloc::alloc::Global>> (self=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:1985
#18 0x00007f18cfac27f5 in libcst_native::parser::grammar::{impl#0}::from (vec=...) at libcst/src/parser/grammar.rs:31
#19 0x00007f18cf9ddf8d in core::convert::{impl#3}::into<alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::parser::grammar::TokVec> (self=<error reading variable: Cannot access memory at address 0x8>) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/convert/mod.rs:761
#20 0x00007f18cf92e4c8 in libcst_native::parse_module (module_text=..., encoding=...) at libcst/src/lib.rs:46
#21 0x00007f18cf91a54b in libcst_native::py::libcst_native::parse_module (source=..., encoding=...) at libcst/src/py.rs:15
#22 0x00007f18cf91a1bc in libcst_native::py::libcst_native::__pyfunction_parse_module (_slf=0x5f0dc040be0, _args=0x5f0e6190268, _nargs=1, _kwnames=0x5f0e60300f0) at libcst/src/py.rs:9
#23 0x00007f18cfae7ec3 in pyo3::impl_::trampoline::fastcall_with_keywords::{closure#0} () at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:44
#24 0x00007f18cfae7dfc in pyo3::impl_::trampoline::trampoline::{closure#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject> () at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:190
#25 0x00007f18cf92a424 in std::panicking::try::do_call<pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>, core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>> (data=0x7f18d00be488) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panicking.rs:589
#26 0x00007f18cf91672b in __rust_try () from /project/libcst/native.cpython-313t-x86_64-linux-musl.so
#27 0x00007f18cf916599 in std::panicking::try<core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>, pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>> (f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panicking.rs:552
#28 std::panic::catch_unwind<pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>, core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>> (f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panic.rs:359
#29 0x00007f18cfae7bb7 in pyo3::impl_::trampoline::trampoline<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject> (body=...) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:190
#30 0x00007f18cfa65e39 in pyo3::impl_::trampoline::fastcall_with_keywords (slf=0x5f0dc040be0, args=0x5f0e6190268, nargs=1, kwnames=0x5f0e60300f0, f=0x7f18cf919e60 <libcst_native::py::libcst_native::__pyfunction_parse_module>) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:44
#31 0x00007f18cf919e44 in libcst_native::py::libcst_native::{impl#0}::_PYO3_DEF::trampoline (_slf=0x5f0dc040be0, _args=0x5f0e6190268, _nargs=1, _kwnames=0x5f0e60300f0) at libcst/src/py.rs:9
#32 0x0000557f2686fddf in ?? ()
#33 0x0000557f268143a1 in ?? ()
#34 0x0000557f26a605f5 in ?? ()
#35 0x0000557f2681239c in _PyObject_MakeTpCall ()
#36 0x0000557f26812b0f in PyObject_Vectorcall ()
#37 0x0000557f2695401c in _PyEval_EvalFrameDefault ()
#38 0x0000557f26815973 in ?? ()
#39 0x0000557f26a57b97 in ?? ()
#40 0x0000557f269dae97 in ?? ()
#41 0x00007f18d040d9d2 in start (p=0x7f18d00bead8) at src/thread/pthread_create.c:207
#42 0x00007f18d040f314 in __clone () at src/thread/x86_64/clone.s:22
Backtrace stopped: frame did not save the PC
Thread 6 (LWP 22328 "python"):
#0 regex_automata::hybrid::id::LazyStateID::as_usize_unchecked (self=0x7f18d00ee2f4) at src/hybrid/id.rs:224
#1 0x00007f18cfbd291a in regex_automata::hybrid::id::LazyStateID::is_start (self=0x7f18d00ee2f4) at src/hybrid/id.rs:313
#2 0x00007f18cfbdcfa0 in regex_automata::hybrid::search::find_fwd_imp (dfa=<error reading variable: That operation is not available on integers of more than 8 bytes.>, cache=0x7f18d000ed50, input=0x7f18d00f08c8, pre=..., earliest=false) at src/hybrid/search.rs:233
#3 regex_automata::hybrid::search::find_fwd (dfa=<error reading variable: That operation is not available on integers of more than 8 bytes.>, cache=0x7f18d000ed50, input=0x7f18d00f08c8) at src/hybrid/search.rs:44
#4 0x00007f18cfbbcaff in regex_automata::hybrid::dfa::DFA::try_search_fwd (self=<error reading variable: That operation is not available on integers of more than 8 bytes.>, cache=0x7f18d000ed50, input=0x7f18d00f08c8) at src/hybrid/dfa.rs:595
#5 0x00007f18cfbd2a02 in regex_automata::hybrid::regex::Regex::try_search (self=<error reading variable: That operation is not available on integers of more than 8 bytes.>, cache=0x7f18d000ed50, input=0x7f18d00f08c8) at src/hybrid/regex.rs:448
#6 0x00007f18cfc01457 in regex_automata::meta::wrappers::HybridEngine::try_search (self=<error reading variable: That operation is not available on integers of more than 8 bytes.>, cache=<error reading variable: Cannot access memory at address 0x0>, input=0x7f18d00f08c8) at src/meta/wrappers.rs:649
#7 regex_automata::meta::strategy::{impl#4}::search (self=<error reading variable: That operation is not available on integers of more than 8 bytes.>, cache=0x7f18d000ed50, input=0x7f18d00f08c8) at src/meta/strategy.rs:720
#8 0x00007f18cfae87e3 in regex_automata::meta::regex::Regex::search (self=0x7f18d0048368, input=0x7f18d00f08c8) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/regex-automata-0.4.9/src/meta/regex.rs:924
#9 0x00007f18cf92a7dd in regex::regex::string::Regex::find_at (self=0x7f18d0048368, haystack=..., start=0) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/regex-1.11.1/src/regex/string.rs:1111
#10 0x00007f18cf92a735 in regex::regex::string::Regex::find (self=0x7f18d0048368, haystack=...) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/regex-1.11.1/src/regex/string.rs:233
#11 0x00007f18cf92a86b in libcst_native::tokenizer::text_position::{impl#0}::match_len (self=0x7f18d00f0a28, text=...) at libcst/src/tokenizer/text_position/mod.rs:21
#12 0x00007f18cf8b182b in libcst_native::tokenizer::text_position::TextPosition::consume<®ex::regex::string::Regex> (self=0x7f18d00f1900, pattern=0x7f18d0048368) at libcst/src/tokenizer/text_position/mod.rs:133
#13 0x00007f18cfabf60f in libcst_native::tokenizer::core::{impl#0}::next_inner::{closure#0} (v=0x7f18d0048368) at libcst/src/tokenizer/core/mod.rs:320
#14 0x00007f18cf86ac58 in std::thread::local::LocalKey<regex::regex::string::Regex>::try_with<regex::regex::string::Regex, libcst_native::tokenizer::core::{impl#0}::next_inner::{closure_env#0}, bool> (self=0x7f18cff47278, f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/thread/local.rs:311
#15 0x00007f18cf869a43 in std::thread::local::LocalKey<regex::regex::string::Regex>::with<regex::regex::string::Regex, libcst_native::tokenizer::core::{impl#0}::next_inner::{closure_env#0}, bool> (self=0x7f18cff47278, f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/thread/local.rs:275
#16 0x00007f18cfad3597 in libcst_native::tokenizer::core::TokState::next_inner (self=0x7f18d00f18a0) at libcst/src/tokenizer/core/mod.rs:320
#17 0x00007f18cfad6b24 in libcst_native::tokenizer::core::{impl#1}::next (self=0x7f18d00f18a0) at libcst/src/tokenizer/core/mod.rs:1033
#18 0x00007f18cfad6df5 in libcst_native::tokenizer::core::{impl#6}::next (self=0x7f18d00f18a0) at libcst/src/tokenizer/core/mod.rs:1108
#19 0x00007f18cfabf22d in core::iter::traits::iterator::Iterator::try_fold<libcst_native::tokenizer::core::TokenIterator, (), core::iter::adapters::{impl#0}::try_fold::{closure_env#0}<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>, (), core::iter::traits::iterator::Iterator::try_for_each::call::{closure_env#0}<libcst_native::tokenizer::core::Token, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>, fn(libcst_native::tokenizer::core::Token) -> core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>>, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>>, core::ops::control_flow::ControlFlow<core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>, ()>> (self=0x7f18d00f18a0, init=(), f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:2383
#20 0x00007f18cfa2aade in core::iter::adapters::{impl#0}::try_fold<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>, (), core::iter::traits::iterator::Iterator::try_for_each::call::{closure_env#0}<libcst_native::tokenizer::core::Token, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>, fn(libcst_native::tokenizer::core::Token) -> core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>>, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>> (self=0x7f18d00f18a0, init=(), f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/adapters/mod.rs:191
#21 0x00007f18cfa278c3 in core::iter::traits::iterator::Iterator::try_for_each<core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>, fn(libcst_native::tokenizer::core::Token) -> core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>> (self=0x7f18d00f18a0) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:2445
#22 core::iter::adapters::{impl#0}::next<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>> (self=0x7f18d00f18a0) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/adapters/mod.rs:174
#23 0x00007f18cf9f01f9 in alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>::extend_desugared<libcst_native::tokenizer::core::Token, alloc::alloc::Global, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>> (self=0x7f18d00f1710, iterator=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/mod.rs:3546
#24 0x00007f18cfa0808a in alloc::vec::spec_extend::{impl#0}::spec_extend<libcst_native::tokenizer::core::Token, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>, alloc::alloc::Global> (self=0x7f18d00f1710, iter=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/spec_extend.rs:19
#25 0x00007f18cf9d3056 in alloc::vec::spec_from_iter_nested::{impl#0}::from_iter<libcst_native::tokenizer::core::Token, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>> (iterator=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/spec_from_iter_nested.rs:42
#26 0x00007f18cfa0994d in alloc::vec::spec_from_iter::{impl#0}::from_iter<libcst_native::tokenizer::core::Token, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>> (iterator=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/spec_from_iter.rs:34
#27 0x00007f18cfa03fa4 in alloc::vec::{impl#15}::from_iter<libcst_native::tokenizer::core::Token, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>> (iter=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/mod.rs:3438
#28 0x00007f18cfa37c8d in core::iter::traits::iterator::Iterator::collect<core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>> (self=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:1985
#29 0x00007f18cfaa7271 in core::result::{impl#26}::from_iter::{closure#0}<libcst_native::tokenizer::core::Token, libcst_native::tokenizer::core::TokError, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::tokenizer::core::TokenIterator> (i=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/result.rs:1993
#30 0x00007f18cfa39a4f in core::iter::adapters::try_process<libcst_native::tokenizer::core::TokenIterator, libcst_native::tokenizer::core::Token, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>, core::result::{impl#26}::from_iter::{closure_env#0}<libcst_native::tokenizer::core::Token, libcst_native::tokenizer::core::TokError, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::tokenizer::core::TokenIterator>, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>> (iter=..., f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/adapters/mod.rs:160
#31 0x00007f18cfaa647a in core::result::{impl#26}::from_iter<libcst_native::tokenizer::core::Token, libcst_native::tokenizer::core::TokError, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::tokenizer::core::TokenIterator> (iter=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/result.rs:1993
#32 0x00007f18cfabf1b7 in core::iter::traits::iterator::Iterator::collect<libcst_native::tokenizer::core::TokenIterator, core::result::Result<alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::tokenizer::core::TokError>> (self=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:1985
#33 0x00007f18cf92e278 in libcst_native::tokenize (text=...) at libcst/src/lib.rs:32
#34 0x00007f18cf92e35a in libcst_native::parse_module (module_text=..., encoding=...) at libcst/src/lib.rs:44
#35 0x00007f18cf91a54b in libcst_native::py::libcst_native::parse_module (source=..., encoding=...) at libcst/src/py.rs:15
#36 0x00007f18cf91a1bc in libcst_native::py::libcst_native::__pyfunction_parse_module (_slf=0x5f0dc040be0, _args=0x5f0e41a0268, _nargs=1, _kwnames=0x5f0e40300f0) at libcst/src/py.rs:9
#37 0x00007f18cfae7ec3 in pyo3::impl_::trampoline::fastcall_with_keywords::{closure#0} () at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:44
#38 0x00007f18cfae7dfc in pyo3::impl_::trampoline::trampoline::{closure#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject> () at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:190
#39 0x00007f18cf92a424 in std::panicking::try::do_call<pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>, core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>> (data=0x7f18d00f3488) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panicking.rs:589
#40 0x00007f18cf91672b in __rust_try () from /project/libcst/native.cpython-313t-x86_64-linux-musl.so
#41 0x00007f18cf916599 in std::panicking::try<core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>, pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>> (f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panicking.rs:552
#42 std::panic::catch_unwind<pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>, core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>> (f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panic.rs:359
#43 0x00007f18cfae7bb7 in pyo3::impl_::trampoline::trampoline<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject> (body=...) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:190
#44 0x00007f18cfa65e39 in pyo3::impl_::trampoline::fastcall_with_keywords (slf=0x5f0dc040be0, args=0x5f0e41a0268, nargs=1, kwnames=0x5f0e40300f0, f=0x7f18cf919e60 <libcst_native::py::libcst_native::__pyfunction_parse_module>) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:44
#45 0x00007f18cf919e44 in libcst_native::py::libcst_native::{impl#0}::_PYO3_DEF::trampoline (_slf=0x5f0dc040be0, _args=0x5f0e41a0268, _nargs=1, _kwnames=0x5f0e40300f0) at libcst/src/py.rs:9
#46 0x0000557f2686fddf in ?? ()
#47 0x0000557f268143a1 in ?? ()
#48 0x0000557f26a605f5 in ?? ()
#49 0x0000557f2681239c in _PyObject_MakeTpCall ()
#50 0x0000557f26812b0f in PyObject_Vectorcall ()
#51 0x0000557f2695401c in _PyEval_EvalFrameDefault ()
#52 0x0000557f26815973 in ?? ()
#53 0x0000557f26a57b97 in ?? ()
#54 0x0000557f269dae97 in ?? ()
#55 0x00007f18d040d9d2 in start (p=0x7f18d00f3ad8) at src/thread/pthread_create.c:207
#56 0x00007f18d040f314 in __clone () at src/thread/x86_64/clone.s:22
Backtrace stopped: frame did not save the PC
Thread 5 (LWP 22327 "python"):
#0 __futexwait (addr=0x7f18d044bfb8 <__malloc_lock>, val=-2147483646, priv=128) at ./arch/x86_64/syscall_arch.h:40
#1 __lock (l=l@entry=0x7f18d044bfb8 <__malloc_lock>) at src/thread/__lock.c:44
#2 0x00007f18d03e1bee in rdlock () at src/malloc/mallocng/glue.h:70
#3 rdlock () at src/malloc/mallocng/glue.h:68
#4 __libc_malloc_impl (n=80) at src/malloc/mallocng/malloc.c:337
#5 0x00007f18cf916d6e in alloc::alloc::alloc (layout=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/alloc.rs:93
#6 0x00007f18cf916e7a in alloc::alloc::Global::alloc_impl (self=0x1, layout=..., zeroed=false) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/alloc.rs:188
#7 0x00007f18cf916cbe in alloc::alloc::{impl#1}::allocate (layout=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/alloc.rs:249
#8 alloc::alloc::exchange_malloc (size=80, align=8) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/alloc.rs:350
#9 0x00007f18cfac183d in alloc::boxed::{impl#0}::new<alloc::rc::RcInner<core::cell::RefCell<libcst_native::tokenizer::whitespace_parser::State>>> (x=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/boxed.rs:261
#10 alloc::rc::Rc<core::cell::RefCell<libcst_native::tokenizer::whitespace_parser::State>, alloc::alloc::Global>::new<core::cell::RefCell<libcst_native::tokenizer::whitespace_parser::State>> (value=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/rc.rs:412
#11 0x00007f18cfac0130 in libcst_native::tokenizer::core::{impl#6}::next::{closure#0} () at libcst/src/tokenizer/core/mod.rs:1151
#12 0x00007f18cfad6e87 in libcst_native::tokenizer::core::{impl#6}::next (self=0x7f18d011d8a0) at libcst/src/tokenizer/core/mod.rs:1110
#13 0x00007f18cfabf22d in core::iter::traits::iterator::Iterator::try_fold<libcst_native::tokenizer::core::TokenIterator, (), core::iter::adapters::{impl#0}::try_fold::{closure_env#0}<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>, (), core::iter::traits::iterator::Iterator::try_for_each::call::{closure_env#0}<libcst_native::tokenizer::core::Token, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>, fn(libcst_native::tokenizer::core::Token) -> core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>>, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>>, core::ops::control_flow::ControlFlow<core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>, ()>> (self=0x7f18d011d8a0, init=(), f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:2383
#14 0x00007f18cfa2aade in core::iter::adapters::{impl#0}::try_fold<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>, (), core::iter::traits::iterator::Iterator::try_for_each::call::{closure_env#0}<libcst_native::tokenizer::core::Token, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>, fn(libcst_native::tokenizer::core::Token) -> core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>>, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>> (self=0x7f18d011d8a0, init=(), f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/adapters/mod.rs:191
#15 0x00007f18cfa278c3 in core::iter::traits::iterator::Iterator::try_for_each<core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>, fn(libcst_native::tokenizer::core::Token) -> core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>> (self=0x7f18d011d8a0) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:2445
#16 core::iter::adapters::{impl#0}::next<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>> (self=0x7f18d011d8a0) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/adapters/mod.rs:174
#17 0x00007f18cf9f01f9 in alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>::extend_desugared<libcst_native::tokenizer::core::Token, alloc::alloc::Global, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>> (self=0x7f18d011d710, iterator=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/mod.rs:3546
#18 0x00007f18cfa0808a in alloc::vec::spec_extend::{impl#0}::spec_extend<libcst_native::tokenizer::core::Token, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>, alloc::alloc::Global> (self=0x7f18d011d710, iter=<error reading variable: Cannot access memory at address 0x198>) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/spec_extend.rs:19
#19 0x00007f18cf9d3056 in alloc::vec::spec_from_iter_nested::{impl#0}::from_iter<libcst_native::tokenizer::core::Token, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>> (iterator=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/spec_from_iter_nested.rs:42
#20 0x00007f18cfa0994d in alloc::vec::spec_from_iter::{impl#0}::from_iter<libcst_native::tokenizer::core::Token, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>> (iterator=<error reading variable: Cannot access memory at address 0x198>) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/spec_from_iter.rs:34
#21 0x00007f18cfa03fa4 in alloc::vec::{impl#15}::from_iter<libcst_native::tokenizer::core::Token, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>> (iter=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/mod.rs:3438
#22 0x00007f18cfa37c8d in core::iter::traits::iterator::Iterator::collect<core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>> (self=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:1985
#23 0x00007f18cfaa7271 in core::result::{impl#26}::from_iter::{closure#0}<libcst_native::tokenizer::core::Token, libcst_native::tokenizer::core::TokError, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::tokenizer::core::TokenIterator> (i=<error reading variable: Cannot access memory at address 0x198>) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/result.rs:1993
#24 0x00007f18cfa39a4f in core::iter::adapters::try_process<libcst_native::tokenizer::core::TokenIterator, libcst_native::tokenizer::core::Token, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>, core::result::{impl#26}::from_iter::{closure_env#0}<libcst_native::tokenizer::core::Token, libcst_native::tokenizer::core::TokError, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::tokenizer::core::TokenIterator>, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>> (iter=..., f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/adapters/mod.rs:160
#25 0x00007f18cfaa647a in core::result::{impl#26}::from_iter<libcst_native::tokenizer::core::Token, libcst_native::tokenizer::core::TokError, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::tokenizer::core::TokenIterator> (iter=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/result.rs:1993
#26 0x00007f18cfabf1b7 in core::iter::traits::iterator::Iterator::collect<libcst_native::tokenizer::core::TokenIterator, core::result::Result<alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::tokenizer::core::TokError>> (self=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:1985
#27 0x00007f18cf92e278 in libcst_native::tokenize (text=...) at libcst/src/lib.rs:32
#28 0x00007f18cf92e35a in libcst_native::parse_module (module_text=..., encoding=...) at libcst/src/lib.rs:44
#29 0x00007f18cf91a54b in libcst_native::py::libcst_native::parse_module (source=..., encoding=...) at libcst/src/py.rs:15
#30 0x00007f18cf91a1bc in libcst_native::py::libcst_native::__pyfunction_parse_module (_slf=0x5f0dc040be0, _args=0x5f0e21b0268, _nargs=1, _kwnames=0x5f0e20300f0) at libcst/src/py.rs:9
#31 0x00007f18cfae7ec3 in pyo3::impl_::trampoline::fastcall_with_keywords::{closure#0} () at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:44
#32 0x00007f18cfae7dfc in pyo3::impl_::trampoline::trampoline::{closure#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject> () at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:190
#33 0x00007f18cf92a424 in std::panicking::try::do_call<pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>, core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>> (data=0x7f18d011f488) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panicking.rs:589
#34 0x00007f18cf91672b in __rust_try () from /project/libcst/native.cpython-313t-x86_64-linux-musl.so
#35 0x00007f18cf916599 in std::panicking::try<core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>, pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>> (f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panicking.rs:552
#36 std::panic::catch_unwind<pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>, core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>> (f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panic.rs:359
#37 0x00007f18cfae7bb7 in pyo3::impl_::trampoline::trampoline<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject> (body=...) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:190
#38 0x00007f18cfa65e39 in pyo3::impl_::trampoline::fastcall_with_keywords (slf=0x5f0dc040be0, args=0x5f0e21b0268, nargs=1, kwnames=0x5f0e20300f0, f=0x7f18cf919e60 <libcst_native::py::libcst_native::__pyfunction_parse_module>) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:44
#39 0x00007f18cf919e44 in libcst_native::py::libcst_native::{impl#0}::_PYO3_DEF::trampoline (_slf=0x5f0dc040be0, _args=0x5f0e21b0268, _nargs=1, _kwnames=0x5f0e20300f0) at libcst/src/py.rs:9
#40 0x0000557f2686fddf in ?? ()
#41 0x0000557f268143a1 in ?? ()
#42 0x0000557f26a605f5 in ?? ()
#43 0x0000557f2681239c in _PyObject_MakeTpCall ()
#44 0x0000557f26812b0f in PyObject_Vectorcall ()
#45 0x0000557f2695401c in _PyEval_EvalFrameDefault ()
#46 0x0000557f26815973 in ?? ()
#47 0x0000557f26a57b97 in ?? ()
#48 0x0000557f269dae97 in ?? ()
#49 0x00007f18d040d9d2 in start (p=0x7f18d011fad8) at src/thread/pthread_create.c:207
#50 0x00007f18d040f314 in __clone () at src/thread/x86_64/clone.s:22
Backtrace stopped: frame did not save the PC
Thread 4 (LWP 22326 "python"):
#0 0x00007f18cf93c269 in core::intrinsics::copy_nonoverlapping::precondition_check (src=0x7f18cf7ccaa2, dst=0x7f18d012b120, size=1, align=1, count=16) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/intrinsics/mod.rs:3750
#1 0x00007f18cf9164a6 in core::intrinsics::copy_nonoverlapping<u8> (src=0x7f18cf7ccaa2, dst=0x7f18d012b120, count=16) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/ub_checks.rs:75
#2 core::core_arch::x86::sse2::_mm_loadu_si128 (mem_addr=0x7f18cf7ccaa2) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/../../stdarch/crates/core_arch/src/x86/sse2.rs:1263
#3 0x00007f18cf8b0bf0 in hashbrown::control::group::sse2::Group::load (ptr=0x7f18cf7ccaa2) at /rust/deps/hashbrown-0.15.2/src/control/group/sse2.rs:52
#4 hashbrown::raw::RawTableInner::find_or_find_insert_slot_inner (self=0x7f18d01499f8, hash=18051705939533660114, eq=...) at /rust/deps/hashbrown-0.15.2/src/raw/mod.rs:1674
#5 0x00007f18cf923f2c in hashbrown::raw::RawTable<(usize, peg_runtime::RuleResult<libcst_native::nodes::expression::DeflatedExpression>), alloc::alloc::Global>::find_or_find_insert_slot<(usize, peg_runtime::RuleResult<libcst_native::nodes::expression::DeflatedExpression>), alloc::alloc::Global, hashbrown::map::equivalent_key::{closure_env#0}<usize, usize, peg_runtime::RuleResult<libcst_native::nodes::expression::DeflatedExpression>>, hashbrown::map::make_hasher::{closure_env#0}<usize, peg_runtime::RuleResult<libcst_native::nodes::expression::DeflatedExpression>, std::hash::random::RandomState>> (self=0x7f18d01499f8, hash=18051705939533660114, eq=..., hasher=...) at /rust/deps/hashbrown-0.15.2/src/raw/mod.rs:1125
#6 0x00007f18cf929501 in hashbrown::map::HashMap<usize, peg_runtime::RuleResult<libcst_native::nodes::expression::DeflatedExpression>, std::hash::random::RandomState, alloc::alloc::Global>::find_or_find_insert_slot<usize, peg_runtime::RuleResult<libcst_native::nodes::expression::DeflatedExpression>, std::hash::random::RandomState, alloc::alloc::Global, usize> (self=0x7f18d01499f8, hash=18051705939533660114, key=0x7f18d012b430) at /rust/deps/hashbrown-0.15.2/src/map.rs:1812
#7 hashbrown::map::HashMap<usize, peg_runtime::RuleResult<libcst_native::nodes::expression::DeflatedExpression>, std::hash::random::RandomState, alloc::alloc::Global>::insert<usize, peg_runtime::RuleResult<libcst_native::nodes::expression::DeflatedExpression>, std::hash::random::RandomState, alloc::alloc::Global> (self=0x7f18d01499f8, k=57, v=...) at /rust/deps/hashbrown-0.15.2/src/map.rs:1792
#8 0x00007f18cfa4195a in std::collections::hash::map::HashMap<usize, peg_runtime::RuleResult<libcst_native::nodes::expression::DeflatedExpression>, std::hash::random::RandomState>::insert<usize, peg_runtime::RuleResult<libcst_native::nodes::expression::DeflatedExpression>, std::hash::random::RandomState> (self=0x7f18d01499f8, k=57, v=<error reading variable: Cannot access memory at address 0x1>) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/collections/hash/map.rs:1202
#9 0x00007f18cfb29b84 in libcst_native::parser::grammar::python::__parse_primary (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=57, input=...) at libcst/src/parser/grammar.rs:1012
#10 0x00007f18cfb299e9 in libcst_native::parser::grammar::python::__parse_await_primary (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=57, input=...) at libcst/src/parser/grammar.rs:1009
#11 0x00007f18cfb29390 in libcst_native::parser::grammar::python::__parse_power (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=57, input=...) at libcst/src/parser/grammar.rs:998
#12 0x00007f18cfb2921d in libcst_native::parser::grammar::python::__parse_factor (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=57, input=...) at libcst/src/parser/grammar.rs:995
#13 0x00007f18cfb285af in libcst_native::parser::grammar::python::__parse_term (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=57, input=...) at libcst/src/parser/grammar.rs:982
#14 0x00007f18cfb26b01 in libcst_native::parser::grammar::python::__parse_sum (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=57, input=...) at libcst/src/parser/grammar.rs:963
#15 0x00007f18cfb25e21 in libcst_native::parser::grammar::python::__parse_shift_expr (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=57, input=...) at libcst/src/parser/grammar.rs:953
#16 0x00007f18cfb25132 in libcst_native::parser::grammar::python::__parse_bitwise_and (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=57, input=...) at libcst/src/parser/grammar.rs:943
#17 0x00007f18cfb24932 in libcst_native::parser::grammar::python::__parse_bitwise_xor (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=57, input=...) at libcst/src/parser/grammar.rs:936
#18 0x00007f18cfb24132 in libcst_native::parser::grammar::python::__parse_bitwise_or (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=57, input=...) at libcst/src/parser/grammar.rs:929
#19 0x00007f18cfb22661 in libcst_native::parser::grammar::python::__parse_comparison (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=57, input=...) at libcst/src/parser/grammar.rs:892
#20 0x00007f18cfb2245f in libcst_native::parser::grammar::python::__parse_inversion (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=57, input=...) at libcst/src/parser/grammar.rs:886
#21 0x00007f18cfb21979 in libcst_native::parser::grammar::python::__parse_conjunction (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=57, input=...) at libcst/src/parser/grammar.rs:876
#22 0x00007f18cfb210f9 in libcst_native::parser::grammar::python::__parse_disjunction (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=57, input=...) at libcst/src/parser/grammar.rs:869
#23 0x00007f18cfb1eaa4 in libcst_native::parser::grammar::python::__parse__conditional_expression (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=57, input=...) at libcst/src/parser/grammar.rs:819
#24 0x00007f18cfb1e8ce in libcst_native::parser::grammar::python::__parse_expression (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=57, input=...) at libcst/src/parser/grammar.rs:815
#25 0x00007f18cfb20cdf in libcst_native::parser::grammar::python::__parse_named_expression (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=57, input=...) at libcst/src/parser/grammar.rs:865
#26 0x00007f18cfb3a0e8 in libcst_native::parser::grammar::python::__parse__bare_genexp (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=57, input=...) at libcst/src/parser/grammar.rs:1241
#27 0x00007f18cfb39e2f in libcst_native::parser::grammar::python::__parse_genexp (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=56, input=...) at libcst/src/parser/grammar.rs:1236
#28 0x00007f18cfb2a0bb in libcst_native::parser::grammar::python::__parse_primary (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=55, input=...) at libcst/src/parser/grammar.rs:1016
#29 0x00007f18cfb299e9 in libcst_native::parser::grammar::python::__parse_await_primary (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=55, input=...) at libcst/src/parser/grammar.rs:1009
#30 0x00007f18cfb29390 in libcst_native::parser::grammar::python::__parse_power (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=55, input=...) at libcst/src/parser/grammar.rs:998
#31 0x00007f18cfb2921d in libcst_native::parser::grammar::python::__parse_factor (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=55, input=...) at libcst/src/parser/grammar.rs:995
#32 0x00007f18cfb285af in libcst_native::parser::grammar::python::__parse_term (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=55, input=...) at libcst/src/parser/grammar.rs:982
#33 0x00007f18cfb26b01 in libcst_native::parser::grammar::python::__parse_sum (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=55, input=...) at libcst/src/parser/grammar.rs:963
#34 0x00007f18cfb25e21 in libcst_native::parser::grammar::python::__parse_shift_expr (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=55, input=...) at libcst/src/parser/grammar.rs:953
#35 0x00007f18cfb25132 in libcst_native::parser::grammar::python::__parse_bitwise_and (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=55, input=...) at libcst/src/parser/grammar.rs:943
#36 0x00007f18cfb24932 in libcst_native::parser::grammar::python::__parse_bitwise_xor (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=55, input=...) at libcst/src/parser/grammar.rs:936
#37 0x00007f18cfb24132 in libcst_native::parser::grammar::python::__parse_bitwise_or (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=55, input=...) at libcst/src/parser/grammar.rs:929
#38 0x00007f18cfb22661 in libcst_native::parser::grammar::python::__parse_comparison (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=55, input=...) at libcst/src/parser/grammar.rs:892
#39 0x00007f18cfb2245f in libcst_native::parser::grammar::python::__parse_inversion (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=55, input=...) at libcst/src/parser/grammar.rs:886
#40 0x00007f18cfb21979 in libcst_native::parser::grammar::python::__parse_conjunction (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=55, input=...) at libcst/src/parser/grammar.rs:876
#41 0x00007f18cfb210f9 in libcst_native::parser::grammar::python::__parse_disjunction (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=55, input=...) at libcst/src/parser/grammar.rs:869
#42 0x00007f18cfb1eaa4 in libcst_native::parser::grammar::python::__parse__conditional_expression (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=55, input=...) at libcst/src/parser/grammar.rs:819
#43 0x00007f18cfb1e8ce in libcst_native::parser::grammar::python::__parse_expression (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=55, input=...) at libcst/src/parser/grammar.rs:815
#44 0x00007f18cfb202f5 in libcst_native::parser::grammar::python::__parse_star_expression (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=55, input=...) at libcst/src/parser/grammar.rs:848
#45 0x00007f18cfb1f660 in libcst_native::parser::grammar::python::__parse_star_expressions (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=55, input=...) at libcst/src/parser/grammar.rs:833
#46 0x00007f18cfaf4cd5 in libcst_native::parser::grammar::python::__parse_return_stmt (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=54, input=...) at libcst/src/parser/grammar.rs:205
#47 0x00007f18cfaee19a in libcst_native::parser::grammar::python::__parse_simple_stmt (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=54, input=...) at libcst/src/parser/grammar.rs:136
#48 0x00007f18cf86b5a9 in libcst_native::parser::grammar::python::__parse_simple_stmts::{closure#0} (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=54) at libcst/src/parser/grammar.rs:121
#49 0x00007f18cf87aa5d in libcst_native::parser::grammar::python::__parse_separated_trailer<libcst_native::nodes::statement::DeflatedSmallStatement, &libcst_native::tokenizer::core::Token, libcst_native::parser::grammar::python::__parse_simple_stmts::{closure_env#0}, libcst_native::parser::grammar::python::__parse_simple_stmts::{closure_env#1}> (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=54, input=..., el=..., sep=...) at libcst/src/parser/grammar.rs:1518
#50 0x00007f18cfaed647 in libcst_native::parser::grammar::python::__parse_simple_stmts (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=54, input=...) at libcst/src/parser/grammar.rs:121
#51 0x00007f18cfaed2fb in libcst_native::parser::grammar::python::__parse_statement (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=54, input=...) at libcst/src/parser/grammar.rs:116
#52 0x00007f18cfaed00a in libcst_native::parser::grammar::python::__parse_statements (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=54, input=...) at libcst/src/parser/grammar.rs:112
#53 0x00007f18cfafaba2 in libcst_native::parser::grammar::python::__parse_block (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=52, input=...) at libcst/src/parser/grammar.rs:305
#54 0x00007f18cfb0794c in libcst_native::parser::grammar::python::__parse_if_stmt (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=37, input=...) at libcst/src/parser/grammar.rs:468
#55 0x00007f18cfaf0854 in libcst_native::parser::grammar::python::__parse_compound_stmt (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=37, input=...) at libcst/src/parser/grammar.rs:155
#56 0x00007f18cfaed207 in libcst_native::parser::grammar::python::__parse_statement (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=37, input=...) at libcst/src/parser/grammar.rs:115
#57 0x00007f18cfaed00a in libcst_native::parser::grammar::python::__parse_statements (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=37, input=...) at libcst/src/parser/grammar.rs:112
#58 0x00007f18cfafaba2 in libcst_native::parser::grammar::python::__parse_block (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=35, input=...) at libcst/src/parser/grammar.rs:305
#59 0x00007f18cfafd8b4 in libcst_native::parser::grammar::python::__parse_function_def_raw (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=21, input=...) at libcst/src/parser/grammar.rs:342
#60 0x00007f18cfafcb58 in libcst_native::parser::grammar::python::__parse_function_def (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=21, input=...) at libcst/src/parser/grammar.rs:333
#61 0x00007f18cfaf0549 in libcst_native::parser::grammar::python::__parse_compound_stmt (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=21, input=...) at libcst/src/parser/grammar.rs:152
#62 0x00007f18cfaed207 in libcst_native::parser::grammar::python::__parse_statement (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=21, input=...) at libcst/src/parser/grammar.rs:115
#63 0x00007f18cfaed00a in libcst_native::parser::grammar::python::__parse_statements (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=0, input=...) at libcst/src/parser/grammar.rs:112
#64 0x00007f18cfaecb75 in libcst_native::parser::grammar::python::__parse__file (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=0, input=..., encoding=...) at libcst/src/parser/grammar.rs:105
#65 0x00007f18cf86ad3b in libcst_native::parser::grammar::python::__parse_file::{closure#0} (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=0) at libcst/src/parser/grammar.rs:96
#66 0x00007f18cf887518 in libcst_native::parser::grammar::python::__parse_traced<libcst_native::nodes::module::DeflatedModule, libcst_native::parser::grammar::python::__parse_file::{closure_env#0}> (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=0, input=..., e=...) at libcst/src/parser/grammar.rs:1532
#67 0x00007f18cfaebca3 in libcst_native::parser::grammar::python::__parse_file (__input=0x7f18d014a668, __state=0x7f18d01496c8, __err_state=0x7f18d0149698, __pos=0, input=..., encoding=...) at libcst/src/parser/grammar.rs:96
#68 0x00007f18cfaeb54d in libcst_native::parser::grammar::python::file (__input=0x7f18d014a668, input=..., encoding=...) at libcst/src/parser/grammar.rs:95
#69 0x00007f18cf92e989 in libcst_native::parse_tokens_without_whitespace (tokens=0x7f18d014a668, module_text=..., encoding=...) at libcst/src/lib.rs:56
#70 0x00007f18cf92e51b in libcst_native::parse_module (module_text=..., encoding=...) at libcst/src/lib.rs:47
#71 0x00007f18cf91a54b in libcst_native::py::libcst_native::parse_module (source=..., encoding=...) at libcst/src/py.rs:15
#72 0x00007f18cf91a1bc in libcst_native::py::libcst_native::__pyfunction_parse_module (_slf=0x5f0dc040be0, _args=0x5f0e0190268, _nargs=1, _kwnames=0x5f0e0030120) at libcst/src/py.rs:9
#73 0x00007f18cfae7ec3 in pyo3::impl_::trampoline::fastcall_with_keywords::{closure#0} () at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:44
#74 0x00007f18cfae7dfc in pyo3::impl_::trampoline::trampoline::{closure#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject> () at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:190
#75 0x00007f18cf92a424 in std::panicking::try::do_call<pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>, core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>> (data=0x7f18d014b488) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panicking.rs:589
#76 0x00007f18cf91672b in __rust_try () from /project/libcst/native.cpython-313t-x86_64-linux-musl.so
#77 0x00007f18cf916599 in std::panicking::try<core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>, pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>> (f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panicking.rs:552
#78 std::panic::catch_unwind<pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>, core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>> (f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panic.rs:359
#79 0x00007f18cfae7bb7 in pyo3::impl_::trampoline::trampoline<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject> (body=...) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:190
#80 0x00007f18cfa65e39 in pyo3::impl_::trampoline::fastcall_with_keywords (slf=0x5f0dc040be0, args=0x5f0e0190268, nargs=1, kwnames=0x5f0e0030120, f=0x7f18cf919e60 <libcst_native::py::libcst_native::__pyfunction_parse_module>) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:44
#81 0x00007f18cf919e44 in libcst_native::py::libcst_native::{impl#0}::_PYO3_DEF::trampoline (_slf=0x5f0dc040be0, _args=0x5f0e0190268, _nargs=1, _kwnames=0x5f0e0030120) at libcst/src/py.rs:9
#82 0x0000557f2686fddf in ?? ()
#83 0x0000557f268143a1 in ?? ()
#84 0x0000557f26a605f5 in ?? ()
#85 0x0000557f2681239c in _PyObject_MakeTpCall ()
#86 0x0000557f26812b0f in PyObject_Vectorcall ()
#87 0x0000557f2695401c in _PyEval_EvalFrameDefault ()
#88 0x0000557f26815973 in ?? ()
#89 0x0000557f26a57b97 in ?? ()
#90 0x0000557f269dae97 in ?? ()
#91 0x00007f18d040d9d2 in start (p=0x7f18d014bad8) at src/thread/pthread_create.c:207
#92 0x00007f18d040f314 in __clone () at src/thread/x86_64/clone.s:22
Backtrace stopped: frame did not save the PC
Thread 3 (LWP 22325 "python"):
#0 regex_automata::util::alphabet::ByteClasses::get (self=0x7f18cffcf040, byte=0) at src/util/alphabet.rs:294
#1 0x00007f18cfbbd65c in regex_automata::hybrid::dfa::DFA::next_state_untagged_unchecked (self=<error reading variable: That operation is not available on integers of more than 8 bytes.>, cache=0x7f18cffcf040, current=..., input=10) at src/hybrid/dfa.rs:1422
#2 0x00007f18cfbdcab9 in regex_automata::hybrid::search::find_fwd_imp (dfa=<error reading variable: That operation is not available on integers of more than 8 bytes.>, cache=0x7f18cffcf040, input=0x7f18d01748c8, pre=..., earliest=false) at src/hybrid/search.rs:68
#3 regex_automata::hybrid::search::find_fwd (dfa=<error reading variable: That operation is not available on integers of more than 8 bytes.>, cache=0x7f18cffcf040, input=0x7f18d01748c8) at src/hybrid/search.rs:44
#4 0x00007f18cfbbcaff in regex_automata::hybrid::dfa::DFA::try_search_fwd (self=<error reading variable: That operation is not available on integers of more than 8 bytes.>, cache=0x7f18cffcf040, input=0x7f18d01748c8) at src/hybrid/dfa.rs:595
#5 0x00007f18cfbd2a02 in regex_automata::hybrid::regex::Regex::try_search (self=<error reading variable: That operation is not available on integers of more than 8 bytes.>, cache=0x7f18cffcf040, input=0x7f18d01748c8) at src/hybrid/regex.rs:448
#6 0x00007f18cfc01457 in regex_automata::meta::wrappers::HybridEngine::try_search (self=<error reading variable: That operation is not available on integers of more than 8 bytes.>, cache=<error reading variable: Cannot access memory at address 0x0>, input=0x7f18d01748c8) at src/meta/wrappers.rs:649
#7 regex_automata::meta::strategy::{impl#4}::search (self=<error reading variable: That operation is not available on integers of more than 8 bytes.>, cache=0x7f18cffcf040, input=0x7f18d01748c8) at src/meta/strategy.rs:720
#8 0x00007f18cfae87e3 in regex_automata::meta::regex::Regex::search (self=0x7f18d0048b90, input=0x7f18d01748c8) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/regex-automata-0.4.9/src/meta/regex.rs:924
#9 0x00007f18cf92a7dd in regex::regex::string::Regex::find_at (self=0x7f18d0048b90, haystack=..., start=0) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/regex-1.11.1/src/regex/string.rs:1111
#10 0x00007f18cf92a735 in regex::regex::string::Regex::find (self=0x7f18d0048b90, haystack=...) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/regex-1.11.1/src/regex/string.rs:233
#11 0x00007f18cf92a86b in libcst_native::tokenizer::text_position::{impl#0}::match_len (self=0x7f18d0174a28, text=...) at libcst/src/tokenizer/text_position/mod.rs:21
#12 0x00007f18cf8b182b in libcst_native::tokenizer::text_position::TextPosition::consume<®ex::regex::string::Regex> (self=0x7f18d0175900, pattern=0x7f18d0048b90) at libcst/src/tokenizer/text_position/mod.rs:133
#13 0x00007f18cfabf60f in libcst_native::tokenizer::core::{impl#0}::next_inner::{closure#0} (v=0x7f18d0048b90) at libcst/src/tokenizer/core/mod.rs:320
#14 0x00007f18cf86ac58 in std::thread::local::LocalKey<regex::regex::string::Regex>::try_with<regex::regex::string::Regex, libcst_native::tokenizer::core::{impl#0}::next_inner::{closure_env#0}, bool> (self=0x7f18cff47278, f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/thread/local.rs:311
#15 0x00007f18cf869a43 in std::thread::local::LocalKey<regex::regex::string::Regex>::with<regex::regex::string::Regex, libcst_native::tokenizer::core::{impl#0}::next_inner::{closure_env#0}, bool> (self=0x7f18cff47278, f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/thread/local.rs:275
#16 0x00007f18cfad3597 in libcst_native::tokenizer::core::TokState::next_inner (self=0x7f18d01758a0) at libcst/src/tokenizer/core/mod.rs:320
#17 0x00007f18cfad6b24 in libcst_native::tokenizer::core::{impl#1}::next (self=0x7f18d01758a0) at libcst/src/tokenizer/core/mod.rs:1033
#18 0x00007f18cfad6df5 in libcst_native::tokenizer::core::{impl#6}::next (self=0x7f18d01758a0) at libcst/src/tokenizer/core/mod.rs:1108
#19 0x00007f18cfabf22d in core::iter::traits::iterator::Iterator::try_fold<libcst_native::tokenizer::core::TokenIterator, (), core::iter::adapters::{impl#0}::try_fold::{closure_env#0}<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>, (), core::iter::traits::iterator::Iterator::try_for_each::call::{closure_env#0}<libcst_native::tokenizer::core::Token, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>, fn(libcst_native::tokenizer::core::Token) -> core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>>, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>>, core::ops::control_flow::ControlFlow<core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>, ()>> (self=0x7f18d01758a0, init=(), f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:2383
#20 0x00007f18cfa2aade in core::iter::adapters::{impl#0}::try_fold<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>, (), core::iter::traits::iterator::Iterator::try_for_each::call::{closure_env#0}<libcst_native::tokenizer::core::Token, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>, fn(libcst_native::tokenizer::core::Token) -> core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>>, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>> (self=0x7f18d01758a0, init=(), f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/adapters/mod.rs:191
#21 0x00007f18cfa278c3 in core::iter::traits::iterator::Iterator::try_for_each<core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>, fn(libcst_native::tokenizer::core::Token) -> core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>, core::ops::control_flow::ControlFlow<libcst_native::tokenizer::core::Token, ()>> (self=0x7f18d01758a0) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:2445
#22 core::iter::adapters::{impl#0}::next<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>> (self=0x7f18d01758a0) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/adapters/mod.rs:174
#23 0x00007f18cf9f01f9 in alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>::extend_desugared<libcst_native::tokenizer::core::Token, alloc::alloc::Global, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>> (self=0x7f18d0175710, iterator=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/mod.rs:3546
#24 0x00007f18cfa0808a in alloc::vec::spec_extend::{impl#0}::spec_extend<libcst_native::tokenizer::core::Token, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>, alloc::alloc::Global> (self=0x7f18d0175710, iter=<error reading variable: Cannot access memory at address 0x122>) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/spec_extend.rs:19
#25 0x00007f18cf9d3056 in alloc::vec::spec_from_iter_nested::{impl#0}::from_iter<libcst_native::tokenizer::core::Token, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>> (iterator=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/spec_from_iter_nested.rs:42
#26 0x00007f18cfa0994d in alloc::vec::spec_from_iter::{impl#0}::from_iter<libcst_native::tokenizer::core::Token, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>> (iterator=<error reading variable: Cannot access memory at address 0x122>) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/spec_from_iter.rs:34
#27 0x00007f18cfa03fa4 in alloc::vec::{impl#15}::from_iter<libcst_native::tokenizer::core::Token, core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>> (iter=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/vec/mod.rs:3438
#28 0x00007f18cfa37c8d in core::iter::traits::iterator::Iterator::collect<core::iter::adapters::GenericShunt<libcst_native::tokenizer::core::TokenIterator, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>>, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>> (self=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:1985
#29 0x00007f18cfaa7271 in core::result::{impl#26}::from_iter::{closure#0}<libcst_native::tokenizer::core::Token, libcst_native::tokenizer::core::TokError, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::tokenizer::core::TokenIterator> (i=<error reading variable: Cannot access memory at address 0x122>) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/result.rs:1993
#30 0x00007f18cfa39a4f in core::iter::adapters::try_process<libcst_native::tokenizer::core::TokenIterator, libcst_native::tokenizer::core::Token, core::result::Result<core::convert::Infallible, libcst_native::tokenizer::core::TokError>, core::result::{impl#26}::from_iter::{closure_env#0}<libcst_native::tokenizer::core::Token, libcst_native::tokenizer::core::TokError, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::tokenizer::core::TokenIterator>, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>> (iter=..., f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/adapters/mod.rs:160
#31 0x00007f18cfaa647a in core::result::{impl#26}::from_iter<libcst_native::tokenizer::core::Token, libcst_native::tokenizer::core::TokError, alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::tokenizer::core::TokenIterator> (iter=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/result.rs:1993
#32 0x00007f18cfabf1b7 in core::iter::traits::iterator::Iterator::collect<libcst_native::tokenizer::core::TokenIterator, core::result::Result<alloc::vec::Vec<libcst_native::tokenizer::core::Token, alloc::alloc::Global>, libcst_native::tokenizer::core::TokError>> (self=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/iter/traits/iterator.rs:1985
#33 0x00007f18cf92e278 in libcst_native::tokenize (text=...) at libcst/src/lib.rs:32
#34 0x00007f18cf92e35a in libcst_native::parse_module (module_text=..., encoding=...) at libcst/src/lib.rs:44
#35 0x00007f18cf91a54b in libcst_native::py::libcst_native::parse_module (source=..., encoding=...) at libcst/src/py.rs:15
#36 0x00007f18cf91a1bc in libcst_native::py::libcst_native::__pyfunction_parse_module (_slf=0x5f0dc040be0, _args=0x5f0de1f0268, _nargs=1, _kwnames=0x5f0de0300f0) at libcst/src/py.rs:9
#37 0x00007f18cfae7ec3 in pyo3::impl_::trampoline::fastcall_with_keywords::{closure#0} () at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:44
#38 0x00007f18cfae7dfc in pyo3::impl_::trampoline::trampoline::{closure#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject> () at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:190
#39 0x00007f18cf92a424 in std::panicking::try::do_call<pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>, core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>> (data=0x7f18d0177488) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panicking.rs:589
#40 0x00007f18cf91672b in __rust_try () from /project/libcst/native.cpython-313t-x86_64-linux-musl.so
#41 0x00007f18cf916599 in std::panicking::try<core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>, pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>> (f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panicking.rs:552
#42 std::panic::catch_unwind<pyo3::impl_::trampoline::trampoline::{closure_env#0}<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject>, core::result::Result<*mut pyo3_ffi::object::PyObject, pyo3::err::PyErr>> (f=...) at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panic.rs:359
#43 0x00007f18cfae7bb7 in pyo3::impl_::trampoline::trampoline<pyo3::impl_::trampoline::fastcall_with_keywords::{closure_env#0}, *mut pyo3_ffi::object::PyObject> (body=...) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:190
#44 0x00007f18cfa65e39 in pyo3::impl_::trampoline::fastcall_with_keywords (slf=0x5f0dc040be0, args=0x5f0de1f0268, nargs=1, kwnames=0x5f0de0300f0, f=0x7f18cf919e60 <libcst_native::py::libcst_native::__pyfunction_parse_module>) at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.25.1/src/impl_/trampoline.rs:44
#45 0x00007f18cf919e44 in libcst_native::py::libcst_native::{impl#0}::_PYO3_DEF::trampoline (_slf=0x5f0dc040be0, _args=0x5f0de1f0268, _nargs=1, _kwnames=0x5f0de0300f0) at libcst/src/py.rs:9
#46 0x0000557f2686fddf in ?? ()
#47 0x0000557f268143a1 in ?? ()
#48 0x0000557f26a605f5 in ?? ()
#49 0x0000557f2681239c in _PyObject_MakeTpCall ()
#50 0x0000557f26812b0f in PyObject_Vectorcall ()
#51 0x0000557f2695401c in _PyEval_EvalFrameDefault ()
#52 0x0000557f26815973 in ?? ()
#53 0x0000557f26a57b97 in ?? ()
#54 0x0000557f269dae97 in ?? ()
#55 0x00007f18d040d9d2 in start (p=0x7f18d0177ad8) at src/thread/pthread_create.c:207
#56 0x00007f18d040f314 in __clone () at src/thread/x86_64/clone.s:22
Backtrace stopped: frame did not save the PC
Thread 2 (LWP 22324 "python"):
#0 0x0000557f2685e452 in _PyDict_LoadGlobal ()
#1 0x0000557f2695b70d in _PyEval_EvalFrameDefault ()
#2 0x0000557f268140d1 in ?? ()
#3 0x0000557f268142e0 in ?? ()
#4 0x0000557f268b154c in ?? ()
#5 0x0000557f268a14cb in ?? ()
#6 0x0000557f2681239c in _PyObject_MakeTpCall ()
#7 0x0000557f2695401c in _PyEval_EvalFrameDefault ()
#8 0x0000557f26815973 in ?? ()
#9 0x0000557f26a57b97 in ?? ()
#10 0x0000557f269dae97 in ?? ()
#11 0x00007f18d040d9d2 in start (p=0x7f18d01a3ad8) at src/thread/pthread_create.c:207
#12 0x00007f18d040f314 in __clone () at src/thread/x86_64/clone.s:22
Backtrace stopped: frame did not save the PC
Thread 1 (LWP 22321 "python"):
#0 __cp_end () at src/thread/x86_64/syscall_cp.s:29
#1 0x00007f18d040ccb5 in __syscall_cp_c (nr=202, u=<optimized out>, v=<optimized out>, w=<optimized out>, x=<optimized out>, y=<optimized out>, z=0) at src/thread/pthread_cancel.c:33
#2 0x00007f18d040c283 in __futex4_cp (addr=0x7ffe704e53f0, op=128, val=-2147483648, to=<optimized out>) at src/thread/__timedwait.c:24
#3 __timedwait_cp (addr=addr@entry=0x7ffe704e53f0, val=val@entry=-2147483648, clk=clk@entry=0, at=at@entry=0x0, priv=priv@entry=128) at src/thread/__timedwait.c:52
#4 0x00007f18d040ee5b in sem_timedwait (sem=0x7ffe704e53f0, at=0x0) at src/thread/sem_timedwait.c:25
#5 0x0000557f269b5338 in _PySemaphore_Wait ()
#6 0x0000557f269b54e3 in _PyParkingLot_Park ()
#7 0x0000557f269ae14f in ?? ()
#8 0x0000557f26a555eb in ?? ()
#9 0x0000557f26821e0c in ?? ()
#10 0x0000557f26812b0f in PyObject_Vectorcall ()
#11 0x0000557f2695401c in _PyEval_EvalFrameDefault ()
#12 0x0000557f2682f6c5 in ?? ()
#13 0x0000557f2682f9c2 in ?? ()
#14 0x0000557f26953817 in _PyEval_EvalFrameDefault ()
#15 0x0000557f2695df45 in PyEval_EvalCode ()
#16 0x0000557f26949515 in ?? ()
#17 0x0000557f2686fddf in ?? ()
#18 0x0000557f26812b0f in PyObject_Vectorcall ()
#19 0x0000557f2695401c in _PyEval_EvalFrameDefault ()
#20 0x0000557f269ed889 in ?? ()
#21 0x0000557f269ee28a in Py_RunMain ()
#22 0x0000557f269ef1a9 in Py_BytesMain ()
#23 0x00007f18d03e8496 in libc_start_main_stage2 (main=0x557f267bd7b0, argc=6, argv=0x7ffe704e5e58) at src/env/__libc_start_main.c:95
#24 0x0000557f267be16e in _start ()
I tried building libcst using the TSAN docker image, but get a linker error building libpeg - a Rust depenency:
error: /work/libcst/native/target/release/deps/libpeg_macros-716567841a0d62a5.so: undefined symbol: __tsan_func_entry
No idea what's up with that, unfortunately.
Ping @davidhewitt - you probably want to see this too.
👍 I will do my best to help investigate this Friday if you haven't cracked it sooner!
@rgommers told me during a meeting today he ran into 3.14 crashes with musl libc in the SciPy CI.
So that makes it plausible it's a wider issue than just PyO3?
I have spent most of the day trying to get a thread sanitizer build working, but sadly...
ThreadSanitizer is a data race detection tool. It is supported on the following targets:
aarch64-apple-darwin aarch64-unknown-linux-gnu x86_64-apple-darwin x86_64-unknown-freebsd x86_64-unknown-linux-gnu
https://doc.rust-lang.org/beta/unstable-book/compiler-flags/sanitizer.html#threadsanitizer
it seems to me that tsan + rust on musl libc is an instant segfault 😢
That said
https://github.com/rust-lang/rust/blob/9c4ff566babe632af5e30281a822d1ae9972873b/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_musl.rs#L13-L17
base.supported_sanitizers = SanitizerSet::ADDRESS
| SanitizerSet::CFI
| SanitizerSet::LEAK
| SanitizerSet::MEMORY
| SanitizerSet::THREAD;
suggests this combination is deliberately allowed, maybe it's an issue with my build attempts still...
https://github.com/llvm/llvm-project/issues/78452 - so it seems like we can't get thread sanitizers are just not supported by musl, not specific to rust?
I'm going to park investigating given there's a scipy crash, ping if you want me to look further.
Sorry to send you on a goose chase. Here's the SciPy PR with unexplained musllinux 3.14 crashes: https://github.com/scipy/scipy/pull/23187
@kumaraditya303 pointed me at https://github.com/python/cpython/issues/131338