Skip to content

Commit 66b00de

Browse files
committed
Add example of race condition found in production
1 parent 6db59d9 commit 66b00de

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ As a bonus, we also get detection of memory use-after-free and corruption for fr
1414
- Teams working with concurrency a lot
1515
- Especially with frequent onboarding of newcomers
1616
- Toolchain vendors that would like to propose a lighter version of ThreadSanitizer shadow algorithm
17+
- Someone suspecting specific code to be racy but has trouble reproducing the race
1718

1819
# Goals/Features
1920

@@ -65,6 +66,10 @@ As a bonus, we also get detection of memory use-after-free and corruption for fr
6566

6667
Examples are available in [./examples](./examples).
6768

69+
How it looks in Visual Studio(from an error caught in production where we append decoded frames to a list while reading it):
70+
71+
![Race condition in production](./examples/FoundInProduction.png)
72+
6873
## Sample output:
6974

7075
> Run with `--break` to make this example break in the debugger.

examples/FoundInProduction.png

82.8 KB
Loading

0 commit comments

Comments
 (0)