Automated atomicity-violation fixing (2011)
| Venue: | In PLDI |
| Citations: | 5 - 0 self |
BibTeX
@INPROCEEDINGS{Jin11automatedatomicity-violation,
author = {Guoliang Jin and Linhai Song and Wei Zhang and Shan Lu and Ben Liblit},
title = {Automated atomicity-violation fixing},
booktitle = {In PLDI},
year = {2011}
}
OpenURL
Abstract
Fixing software bugs has always been an important and timeconsuming process in software development. Fixing concurrency bugs has become especially critical in the multicore era. However, fixing concurrency bugs is challenging, in part due to nondeterministic failures and tricky parallel reasoning. Beyond correctly fixing the original problem in the software, a good patch should also avoid introducing new bugs, degrading performance unnecessarily, or damaging software readability. Existing tools cannot automate the whole fixing process and provide good-quality patches. We present AFix, a tool that automates the whole process of fixing one common type of concurrency bug: single-variable atomicity violations. AFix starts from the bug reports of existing bugdetection tools. It augments these with static analysis to construct a suitable patch for each bug report. It further tries to combine the patches of multiple bugs for better performance and code readability. Finally, AFix’s run-time component provides testing customized for each patch. Our evaluation shows that patches automatically generated by AFix correctly eliminate six out of eight real-world bugs and significantly decrease the failure probability in the other two cases. AFix patches never introduce new bugs and usually have similar performance to manually-designed patches.







