fixing that felt good. the preceding 24 hours, not so much.
Data races are particularly nasty because any print statements or debug tracing can trigger a memory fence/reorder and make the problem disappear.
Nothing more frustrating then adding a printf only to see the issue no longer manifest.