The invention discloses a historical debugging-oriented multi-thread
race condition accurate
reproduction method, which comprises the following steps of: establishing a
semantic equivalence mapping table of a synchronization instruction between different target architectures by defining three causal relationships of release acquisition, wake-up execution and memory
visibility, recording a user mode and kernel mode synchronization event when a first target architecture executes a target program, and replaying the user mode and kernel mode synchronization event when the first target architecture executes the target program. A bidirectional causal chain with confidence is constructed in combination with causal conditions, a replay engine is started in a second target architecture during replay, synchronization operation is recognized and matched with an original synchronization event in the
semantic equivalence mapping table and the causal chain, the semantic
reproduction state of a core dependency event is verified, and the core dependency event is replayed; and forcibly reproducing a memory, a state flag, a
memory barrier and a thread state according to records by neglecting hardware actual execution, finally adding subsequent events into a
queue according to confidence, and completing semantic
reproduction of the subsequent events according to a recorded information sequence, so that accurate reproduction of a target program execution process under a multi-thread
race condition is realized.