~/talk

Permchecker: A Toolchain for Debugging Memory Managers with Typestate

Talkat OOPSLA 2021 · 2021-10-17..10-22· [compilers-and-language-design]
links:none on file
slides:none on file

Permchecker makes heap structure explicit by generating a DSL compiler for typestate specs, an LLVM annotation pass, and a PIN dynamic tool that enforces typestates at runtime; it detects allocation/state mismatches early. Applied to Hotspot, JikesRVM and dlmalloc, the workflow required 144 typestate-change sites, 64 function annotations and ~1,600 lines of glue, and it catches almost all injected faults (836 use-after-free injections, only 4 benign misses). Overhead matches Memcheck and costs ~2–3 months of developer annotation time.

AI-written summary · about

  1. 0:00Motivation
  2. 3:03Dynamic Typestate
  3. 4:06DSL for Heap Layout: BNF
  4. 5:13DSL for Heap Layout: Example
  5. 6:01DSL Artifacts
  6. 8:39Permchecker Pin Tool: Access Violation
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.