SHM Racer : dynamic race condition detection using shared memory traps
dc.contributor.advisor | Shi, August (August Wang) | |
dc.creator | Hoganson, Alexander Joshua | |
dc.creator.orcid | 0000-0002-1994-9959 | |
dc.date.accessioned | 2021-12-21T15:47:48Z | |
dc.date.available | 2021-12-21T15:47:48Z | |
dc.date.created | 2021-05 | |
dc.date.issued | 2021-05-06 | |
dc.date.submitted | May 2021 | |
dc.date.updated | 2021-12-21T15:47:49Z | |
dc.description.abstract | This project investigated different types of data races that can exist within C code, and then incrementally built a race condition detector, SHM Racer, using an assortment of thread safety violation/data race violation detection methods. The objective of this report was to demonstrate the tradeoffs/benefits of certain race condition finding tools, and construct a tool that could minimize false positive race errors while maximizing the number of found data races. Race condition detection using static analysis can log false positives/false negatives due to a missed understanding of complex synchronization patterns. Dynamic analysis can often minimize false positives, but its ability to slow runtime performance can make this type of analysis impractical. The decided approach was to develop SHM Racer: a shared memory library that provides a shared memory access interface to multiple threads. SHM Racer would also use its knowledge of thread contexts and near-miss analysis data to dynamically modify its shared memory response performance with the intent of expanding critical sections. The aim of this approach was to increase the likelihood of race condition occurrence without significantly altering runtime performance. Test observations demonstrated that while expanding critical sections does increase the probability of detecting data races without producing false positives, there are significant performance/race condition detection impacts if the critical sections are expanded without accommodating for happens-before and already found race errors. Using a combination of near miss analysis and dangerous pair pruning, there was an observable performance improvement in analyzed code performance. However, while there were no false positives detected by SHM Racer, there were still missed race violations due to the tool’s effects on thread synchronization patterns. Even though SHM Racer did miss finding race violations, its false positive minimization and configurable delay thresholds make it very effective at catching basic data races without having to learn synchronization patterns. | |
dc.description.department | Electrical and Computer Engineering | |
dc.format.mimetype | application/pdf | |
dc.identifier.uri | https://hdl.handle.net/2152/90869 | |
dc.identifier.uri | http://dx.doi.org/10.26153/tsw/17788 | |
dc.language.iso | en | |
dc.subject | Race conditions | |
dc.subject | Dynamic analysis | |
dc.subject | Delay injection | |
dc.subject | Critical sections | |
dc.subject | Thread synchronization | |
dc.title | SHM Racer : dynamic race condition detection using shared memory traps | |
dc.type | Thesis | |
dc.type.material | text | |
thesis.degree.department | Electrical and Computer Engineering | |
thesis.degree.discipline | Electrical and Computer Engineering | |
thesis.degree.grantor | The University of Texas at Austin | |
thesis.degree.level | Masters | |
thesis.degree.name | Master of Science in Engineering |
Access full-text files
Original bundle
1 - 1 of 1
Loading...
- Name:
- HOGANSON-MASTERSREPORT-2021.pdf
- Size:
- 677.12 KB
- Format:
- Adobe Portable Document Format