Hacker News new | ask | show | jobs
by vvanders 3103 days ago
Having had to track down memory data races in a production C++ codebase I'm not sure that I completely agree with your assessment.
1 comments

I've once spent quite a few hours debugging a dangling pointer that wasn't zeroed after delete and was written to which might or might not have corrupted a piece of lua interpreter's state.

fixing that felt good. the preceding 24 hours, not so much.

Yup.

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.