You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the issue is in the wasi:filesystem implementation, i.e. the wasmtime API usage I'd ideally expect a compile-time error. If that's not possible, I'd expect a clearer error message as to what's wrong. If the implementation is correct, I'd not expect a panic.
Actual Results
thread 'p3::p3_filesystem_file_read_write' panicked at crates/wasmtime/src/runtime/component/concurrent/tls.rs:81:5:
attempted to recursively call `tls::get` when the pointer was not present or already taken by a previous call to `tls::get`
This is more-or-less a known footgun with Accessor, and I'm not sure how to design something that statically avoids it. I have an idea for improving the error message though.
Activity
rvolosatovs commentedon Aug 11, 2025
FWIW, I've just tested #11374 and it did not fix the issue
alexcrichton commentedon Aug 11, 2025
This is happening due to this panic condition. Effectively this line enters a
withbutstore.get_file(&fd)?a few lines down also callsself.with, hence the recursive access.This is more-or-less a known footgun with
Accessor, and I'm not sure how to design something that statically avoids it. I have an idea for improving the error message though.Improve panic message for `tls::get` failures
Improve panic message for `tls::get` failures
Improve panic message for `tls::get` failures (#11413)
Improve panic message for `tls::get` failures (bytecodealliance#11413)