ABA problem

noun
University
1

In multithreaded computing, a case in which a program erroneously considers the equality of a variable at two times to mean it has never changed in between.