The only bug that ever beat me in my two decades coding was in a custom lock free data structure using an early version of c++11. I spent a month on it, including writing custom visualization and logging tools, but I never found the issue that caused a crash once every few hundred billion operations.
Later I saw some suspicious compiler bug fixes around compare and swap, and I still wonder if that was maybe it.