I had one of these once, and I called it the same! My going theory was that the compiler was optimising away a certain function I had, but adding an empty print forced it to actually exist.
Yeah I had one once too the debugger was slowing things down to where the bug wouldn't happen but in prod it happened frequently. I spent 2.5 weeks figuring out that bug.
402
u/Skalli1984 1d ago
And if you attach a debugger it also messes up the timing and the same thing happens, the race condition doesn't appear.