Sample
Ensure OnceCell::wait under parking_lot feature does not prematurely return uninitialized memory when an initializer panics
sha256:aa670fbfe7d7615096a4cc1bf4da208ff59177e8e9774a7ce78b2ca5082aa8e9
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Ensure OnceCell::wait under parking_lot feature does not prematurely return uninitialized memory when an initializer panics HOW
- Packages
- once_cell 1.21.4
- Environment
- rust
- Created
- 2026-08-16T08:11:50Z
Contract
- assert OnceCell::wait under parking_lot feature stays parked across a panicking get_or_try_init until a retry succeeds
- assert multiple concurrent OnceCell::wait threads re-park when an initializer unwinds and reliably observe the value once completed
- assert OnceCell::get_or_try_init leaves the cell uninitialized after a panic, allowing subsequent initializers to run
Files
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-16 · ed25519:d91480838ac982c9