~/talk

Weeks of Debugging Can Save You Hours of TLA+

Talkat SREcon20 Americas · 2020-12-07..12-09· [software-architecture]
github:lemmy
slides:none on file

A TLA+ spec of a bounded MPMC queue reproduces and explains a surprising deadlock that unit tests miss: TLC finds a violating trace (shortest 9 steps, another case 47 steps) for a 4-producer/3-consumer/buffer-3 configuration and for minimal 2-producer/1-consumer/buffer-1. Modeling waiting threads and scheduling yields two fixes verified by TLC: notify other (wake opposite-type waiters) and using a FIFO wait sequence to prevent starvation. The Toolbox and animated traces expose the exact step sequence so the fixes are checked on small scopes.

AI-written summary · about

  1. 0:00Introduction to TLA+
  2. 0:38What is TLA+?
  3. 2:16Service outage analysis
  4. 3:42Analyzing the C++ code
  5. 6:22Reproducing the deadlock
  6. 8:52Writing the TLA+ spec
  7. 13:54Verifying the specification
  8. 19:25Debugging with trace animation
  9. 22:25Fixing the deadlock
  10. 25:16Addressing starvation issues
  11. 30:46Summary and conclusion
~/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.