Patent ID: 8813038
Filing Date: 2014-08-19
Classification: G06F

Abstract:
1. A processor-implemented method for detecting a data race, comprising: inserting a plurality of breakpoints into a corresponding plurality of randomly selected program locations of a kernel mode program, wherein the program locations comprise instructions that access a plurality of memory locations; pausing a thread at one of the breakpoints; detecting one or more data races for the memory locations in response to one or more of the breakpoints firing by detecting a data race for a memory location accessed by instructions at one of the breakpoints, wherein the data race for the memory location is detected by trapping on a memory access to the memory location corresponding to the one of the breakpoints; detecting a data race by using a repeated read comprising reading the memory location before and after the pause to determine if another thread modified the memory location, the repeated read detection carried out simultaneously with a detection of the data race with the second thread using the breakpoint; and generating a report describing the one or more data races.