Method for detecting race conditions involving heap memory access
Abstract
A method for detecting race conditions involving heap memory access including a plurality of threads being tracked. At runtime a plurality of APIs utilized to create and destroy thread synchronization objects are intercepted, and each synchronization object created via the APIs is tracked. A bit field is created that contains a unique bit for each synchronization object. Heap memory allocations and deallocations are intercepted and tracked. The heap memory access is intercepted, and at that time, the ID of the accessing thread is compared with the last thread ID associated with that memory block when it was last accessed. If the thread IDs do not match, then the current thread synchronization object bit field is compared with the last synchronization object bit field associated with thread memory block. Provided the bit fields are different, a race condition warning is reported that is displayable to the user having the call chains.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 12.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for detecting race conditions involving heap memory access, comprising: tracking a plurality of threads as the plurality of threads are created and terminated; intercepting a plurality of application programming interfaces (APIs) utilized to create and destroy thread synchronization objects; tracking each of the thread synchronization objects that is created via the plurality of APIs; intercepting a plurality of thread synchronization APIs; creating a bit field that contains a unique bit for each of the tracked thread synchronization objects that is at least one of, (i) used, and (ii)
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗