# Using Rewind VM properties to find and verify concurrency bugs

DevFeed: [Using Rewind VM properties to find and verify concurrency bugs](<https://devfeed.tech/articles/always-sometimes-never-86860.md>)

Original publisher: [Read original article](<https://fzakaria.com/2026/10/14/always-sometimes-never>)

Published: 2026-10-14T18:00:00Z

Content type: tutorial

Language: en

Sources: [Farid Zakaria's Blog](<https://devfeed.tech/sources/farid-zakaria-s-blog.md>)

Topics: [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [intermittent failures](<https://devfeed.tech/topics/intermittent-failures.md>), [table driven tests](<https://devfeed.tech/topics/table-driven-tests.md>)

Tags: [bug](<https://devfeed.tech/tags/bug.md>), [concurrent](<https://devfeed.tech/tags/concurrent.md>), [flaky-tests](<https://devfeed.tech/tags/flaky-tests.md>), [test](<https://devfeed.tech/tags/test.md>)

## AI overview

The article explains how Rewind VM explores different thread schedules to find flaky tests and concurrency bugs. It shows how property-based checks, including assertions about outcomes and invariants, can identify a race condition in a Java bank example and verify that a lock fixes it.

## Source excerpt

Exit 0 means your program exited 0. That's it. That's all it means. 🍞 I have been working on a deterministic VM called Rewind VM, where "a run" (i.e. test, command etc.) is a function of its inputs including the thread schedule. The determinism comes from the tool recording every step which lets you replay it exactly. This alone is a pretty good way to find flaky tests: run the test under Rewind, then rewind check runs it under many different thread schedules, with some slight latency added, and failures often crop up. 🐛