Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

panicked at 'async fn resumed after completion', src/page_store/jobs/gc.rs:63:61 #174

Closed
zojw opened this issue Nov 2, 2022 · 2 comments · Fixed by photondb/photonio#12
Labels
question Further information is requested

Comments

@zojw
Copy link
Contributor

zojw commented Nov 2, 2022

it's unstable and produce panic, mark it for later investigation

thread 'photonio-worker/0' panicked at 'async fn resumed after completion', /photondb/src/page_store/jobs/gc.rs:63:61

rust_panic (@rust_panic:7)
std::panicking::rust_panic_with_hook (@std::panicking::rust_panic_with_hook:112)
std::panicking::begin_panic_handler::{{closure}} (@std::panicking::begin_panic_handler::{{closure}}:40)
std::sys_common::backtrace::__rust_end_short_backtrace (@std::sys_common::backtrace::__rust_end_short_backtrace:10)
rust_begin_unwind (@rust_begin_unwind:30)
core::panicking::panic_fmt (@core::panicking::panic_fmt:13)
core::panicking::panic (@core::panicking::panic:16)
photondb::page_store::jobs::gc::GcCtx<E,R>::run::{{closure}} (/home/robi/Code/rust/photondb/src/page_store/jobs/gc.rs:63)
<core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll (@<core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll:22)
photonio_uring::task::raw::poll::{{closure}} (/home/robi/.cargo/git/checkouts/photonio-4d2b22930312944b/3298981/photonio-uring/src/task/raw.rs:205)
<core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once (@<core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once:7)
std::panicking::try::do_call (@std::panicking::try::do_call:29)
__rust_try (@__rust_try:10)
std::panicking::try (@std::panicking::try:22)
std::panic::catch_unwind (@std::panic::catch_unwind:9)
photonio_uring::task::raw::poll (/home/robi/.cargo/git/checkouts/photonio-4d2b22930312944b/3298981/photonio-uring/src/task/raw.rs:205)
photonio_uring::task::raw::Head::poll (/home/robi/.cargo/git/checkouts/photonio-4d2b22930312944b/3298981/photonio-uring/src/task/raw.rs:30)
photonio_uring::task::Task::poll (/home/robi/.cargo/git/checkouts/photonio-4d2b22930312944b/3298981/photonio-uring/src/task/mod.rs:61)
photonio_uring::runtime::worker::Local::poll (/home/robi/.cargo/git/checkouts/photonio-4d2b22930312944b/3298981/photonio-uring/src/runtime/worker.rs:82)
photonio_uring::runtime::worker::Local::run (/home/robi/.cargo/git/checkouts/photonio-4d2b22930312944b/3298981/photonio-uring/src/runtime/worker.rs:53)
photonio_uring::runtime::worker::enter::{{closure}} (/home/robi/.cargo/git/checkouts/photonio-4d2b22930312944b/3298981/photonio-uring/src/runtime/worker.rs:154)
scoped_tls::ScopedKey<T>::set (/home/robi/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/scoped-tls-1.0.0/src/lib.rs:137)
photonio_uring::runtime::worker::enter (/home/robi/.cargo/git/checkouts/photonio-4d2b22930312944b/3298981/photonio-uring/src/runtime/worker.rs:154)
photonio_uring::runtime::worker::Worker::launch::{{closure}} (/home/robi/.cargo/git/checkouts/photonio-4d2b22930312944b/3298981/photonio-uring/src/runtime/worker.rs:129)
std::sys_common::backtrace::__rust_begin_short_backtrace (@std::sys_common::backtrace::__rust_begin_short_backtrace:10)
std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}} (@std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}:10)
<core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once (@<core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once:10)
std::panicking::try::do_call (@std::panicking::try::do_call:34)
__rust_try (@__rust_try:10)
std::panicking::try (@std::panicking::try:27)
std::panic::catch_unwind (@std::panic::catch_unwind:12)
std::thread::Builder::spawn_unchecked_::{{closure}} (@std::thread::Builder::spawn_unchecked_::{{closure}}:83)
core::ops::function::FnOnce::call_once{{vtable.shim}} (@core::ops::function::FnOnce::call_once{{vtable.shim}}:6)
<alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once (@std::sys::unix::thread::Thread::new::thread_start:15)
<alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once (@std::sys::unix::thread::Thread::new::thread_start:13)
std::sys::unix::thread::Thread::new::thread_start (@std::sys::unix::thread::Thread::new::thread_start:11)
start_thread (@start_thread:48)
__clone (@__clone:26)
@zojw zojw changed the title thread 'photonio-worker/0' panicked at 'async fn resumed after completion', src/page_store/jobs/gc.rs:63:61 panicked at 'async fn resumed after completion', src/page_store/jobs/gc.rs:63:61 Nov 2, 2022
@zojw zojw added the question Further information is requested label Nov 2, 2022
@zojw
Copy link
Contributor Author

zojw commented Nov 2, 2022

it seems related to table.close

@zojw

This comment was marked as outdated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant