Just-in-time (JIT) compilers are key components for many popular programming languages with managed runtimes (e.g., Java and JavaScript). JIT compilers perform optimizations and generate native code at runtime based on dynamic profiling data, to improve the execution performance of the running application. Like other software systems, JIT compilers might have software bugs, and prior work has developed a number of automated techniques for detecting functional bugs (i.e., generated native code does not semantically match that of the original code). However, no prior work has targeted JIT compiler performance bugs, which can cause significant performance degradation while an application is running. These performance bugs are challenging to detect due to the complexity and dynamic nature of JIT compilers. In this paper, we present the first work on demystifying JIT performance bugs. First, we perform an empirical study across four popular JIT compilers for Java and JavaScript. Our manual analysis of 191 bug reports uncovers common triggers of performance bugs, patterns in which these bugs manifest, and their root causes. Second, informed by these insights, we propose layered differential performance testing, a lightweight technique to automatically detect JIT compiler performance bugs, and implement it in a tool called Jittery. We incorporate practical optimizations into Jittery such as test prioritization, which reduces testing time by 92.40% without compromising bug-detection capability, and automatic filtering of false-positives and duplicates, which substantially reduces manual inspection effort. Using Jittery, we discovered 12 previously unknown performance bugs in the Oracle HotSpot and Graal JIT compilers, with 11 confirmed and 6 fixed by developers.
Isolating Compiler Bugs through Compilation Steps Analysis
Key Laboratory of High Confidence Software Technologies (Peking University), Ministry of Education(教育部软件高可信技术重点实验室);School of Computer Science, Peking University(北京大学计算机学院);ZTE Corporation(中兴通讯股份有限公司)
Practical Testing of a C99 Compiler Using Output Comparison
本文提出了一种测试C99编译器的简单方法,通过将其输出与已有工具的输出进行比较。这种方法的优点是可以从现有的源代码中批量添加新的测试用例,减少了对正确性问题的深入调查以及手工创建新测试代码的需要。这项技术被用于测试PalmSource Palm OS Cobalt ARM C/C++交叉编译器,主要用于测试Palm-Powered个人数字助理的标准合规性和生成代码的正确执行。这里描述的技术发现了数百个bug,大部分在我们的内部代码中,但也在Edison Design Group和Apogee Software长期以来的高质量前端和后端代码中。它还在GNU C编译器中发现了18个bug,以及一个特定于Apple版本的GCC的bug,一个特定于Suse版本的GCC的bug,以及ARM处理器的GCC版本中的十几个bug,其中几个是关键的。
Demystifying the Silence of Correctness Bugs in PyTorch Compiler
The Hong Kong University of Science and Technology(香港科技大学);Guangzhou HKUST Fok Ying Tung Research Institute(广州香港科技大学霍英东研究院);Carnegie Mellon University(卡内基梅隆大学)
FeatureFuzz: Treating Bug-prone Features as Core Primitives for Compiler Fuzzing
State Key Laboratory of Novel Software Technology, Nanjing University(南京大学软件新技术国家重点实验室);Institute of Dataspace, Hefei Comprehensive National Science Center(合肥综合性国家科学中心数据空间研究所);Honor Device Co., Ltd(荣耀终端有限公司)
CLIR: Liveness-Driven and Structure-Aware Fuzzing for the Cranelift Compiler
Beijing University of Posts and Telecommunications(北京邮电大学);Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Peking University(北京大学);The Hong Kong Polytechnic University(香港理工大学);Huazhong University of Science and Technology(华中科技大学)
Characterizing Real-World Bugs in Tile Programs for Automated Bug Detection
University of Texas at Dallas(达拉斯大学);Institute of Systems for Advanced Computing, Fudan University(复旦大学高级计算系统研究所);Beijing Tongming Lake Information Technology Application Innovation Center(北京通明湖信息技术应用创新中心);Shanghai Institute of Systems for Open Computing(上海开放计算系统研究所);Key Lab of HCST (PKU), MOE(北京大学计算机辅助设计与图形学教育部重点实验室;计算机科学系,北京大学);SCS, Peking University
Interleaved Learning and Exploration: A Self-Adaptive Fuzz Testing Framework for MLIR
Institute of Software Chinese Academy of Sciences Beijing, China;College of Intelligence;Computing Tianjin University Tianjin, China;Shanghai Key Laboratory of Trustworthy Computing East China Normal University Shanghai, China
The Unseen Delta: Characterizing the Compiler Optimization Landscape via Top-Down Differential Analysis
State Key Laboratory of Novel Software Technology, Nanjing University(南京大学新型软件技术重点实验室);Shandong University(山东大学);The Hong Kong University of Science and Technology(香港科技大学)