There is a newer version of the record available.

Published August 8, 2019 | Version 1.0.1 - Fixed licence file
Software Open

Compiler Fuzzing: How Much Does It Matter?

  • 1. Imperial College London

Description

Despite much recent interest in compiler randomized testing (fuzzing), the practical impact of fuzzer-found compiler bugs on real-world applications has barely been assessed. We present the first quantitative and qualitative study of the tangible impact of miscompilation bugs in a mature compiler. We follow a rigorous methodology where the bug impact over the compiled application is evaluated based on (1) whether the bug appears to trigger during compilation; (2) the extent to which generated assembly code changes syntactically due to triggering of the bug; and (3) how much such changes do cause regression test suite failures and could be used to manually trigger divergences during execution. The study is conducted with respect to the compilation of more than 10 million lines of C/C++ code from 309 Debian packages, using 12% of the historical and now fixed miscompilation bugs found by four state-of-the-art fuzzers in the Clang/LLVM compiler, as well as 18 bugs found by human users compiling real code or by formal verification. The results show that almost half of the fuzzer-found bugs propagate to the generated binaries for some packages, but rarely affect their syntax and cause two failures in total when running their test suites. User-reported and formal verification bugs do not exhibit a higher impact, with less frequently triggered bugs and one test failure. Our manual analysis of a selection of bugs, either fuzzer-found or not, suggests that none can easily trigger a runtime divergence on the packages considered in the analysis, and that in general they affect only corner cases.

Notes

This empirical study has been carried out equally by Michaël Marcozzi and Qiyi Tang.

Files

Files (1.0 GB)

Name Size Download all
md5:edbd389e5607211cb5317dce87b885bf
1.0 GB Download
md5:c200a5e2b0dfa7449f45bdb36e3ef01a
2.6 kB Download
md5:228a091e54e31e72fa3d658498d92f7e
13.1 kB Download