Bug finders are mainstream tools used during software development that significantly improve the productivity of software engineers and lower maintenance costs. These tools search for software anomalies by scrutinising the program's code using static program analysis techniques, i.e., without executing the code. However, current bug finders do not explain why bugs were found, primarily due to coarse-grain abstractions that abstract away large portions of the operational semantics of programming languages. To further improve the utility of bug finders, it is paramount to explain reported bugs to the end-users. In this work, we devise a new technique that produces a program trace for a reported bug giving insight into the root cause for the reported bug. For the generation of the program trace, we use an abstracted flow-based semantics for programs to overcome the undecidability of the problem. We simplify the semantic problem by mapping an input program with a reported bug to a Constant Copy Machine (CCM) for the trace construction. Using CCM the semantics of the program can be weakened, and thus bug provenance can be solved in polynomial time, producing a shortest trace in the process which gives the shortest explanation. The technique is reified in the bug tracing tool Digger and is evaluated on several open-source Java programs.
CITATION STYLE
Shen, J., Wu, X., Grech, N., Scholz, B., & Smaragdakis, Y. (2020). Explaining bug provenance with trace witnesses. In SOAP 2020 - Proceedings of the 9th ACM SIGPLAN International Workshop on the State Of the Art in Program Analysis, co-located with PLDI 2020 (pp. 14–19). Association for Computing Machinery, Inc. https://doi.org/10.1145/3394451.3397206
Mendeley helps you to discover research relevant for your work.