Witcher
Witcher is a persistent-memory testing framework that selects crash states using inferred dependencies and checks recovered outputs against allowed executions.
Dependencies guide testing, not a proof: the SOSP 2021 design infers likely ordering and atomicity requirements, generates candidate persistent-memory images, and compares a recovered execution with committed or rolled-back alternatives. A dependency violation alone is not a reported correctness bug. [1]
The oracle observes the remaining test operations. Corruption without a visible symptom can escape detection, and deterministic output is required. Thread-interleaving coverage is limited. [1]
The pinned artifact compares complete output suffixes, rather than choosing an allowed answer independently for each line. A bounded source-method probe rejects mixed outcomes, stale values, truncation and extra output. It also accepts an injected invalid UTF-8 byte and CRLF/LF differences after text decoding, despite unequal bytes. This is a conditional observation boundary, not evidence that the paper's workloads missed corruption. [2] [4]
The artifact README describes a selected application subset and substantial VM requirements. Running the isolated comparison methods does not reproduce crash-state exploration, benchmark results or hardware persistence. [3] [4]
Relations
- related
- RECIPE persistent-index conversion, Crash-test oracle, Persistent memory, Durable linearizability, Persistence ordering
Limitations
- Heuristic pruning can omit faulty states, so a successful run is not an exhaustive correctness certificate. [1]
- Binary-output adapters must define an injective representation or reject malformed text if byte identity is part of their contract. [2, 4]
Citations
- Fu et al. Witcher: Systematic Crash Consistency Testing for Non-Volatile Memory Key-Value Stores. SOSP 2021, sections 3-7.
- Witcher ad69038: compare_to_oracles and compare_to_oracle_from_index.
- Witcher SOSP 2021 artifact, pinned README and reproduction requirements.
- Hesela: Witcher comparator observation boundary, executable probe and retained results.
Further reading
Sources & caveats
- Reviewed SOSP 2021 (DOI 10.1145/3477132.3483556), the pinned official artifact and its comparator source.
- Executed two unchanged comparator method bodies on ten synthetic output-file cases with UTF-8 decoding; source SHA-256 and Python version are retained.
- No full Witcher run, PMDK crash exploration, hardware experiment or reproduction of the paper's bug counts is claimed.