Lune

PLDI2022顶会

Finding typing compiler bugs

Stefanos Chaliasos, Thodoris Sotiropoulos, Diomidis Spinellis, Arthur Gervais, Benjamin Livshits, Dimitris Mitropoulos

摘要

We propose a testing framework for validating static typing procedures in compilers. Our core component is a program generator suitably crafted for producing programs that are likely to trigger typing compiler bugs. One of our main contributions is that our program generator gives rise to transformation-based compiler testing for finding typing bugs. We present two novel approaches (type erasure mutation and type overwriting mutation) that apply targeted transformations to an input program to reveal type inference and soundness compiler bugs respectively. Both approaches are guided by an intra-procedural type inference analysis used to capture type information flow.

We implement our techniques as a tool, which we call Hephaestus. The extensibility of Hephaestus enables us to test the compilers of three popular JVM languages: Java, Kotlin, and Groovy. Within nine months of testing, we have found 156 bugs (137 confirmed and 85 fixed) with diverse manifestations and root causes in all the examined compilers. Most of the discovered bugs lie in the heart of many critical components related to static typing, such as type inference.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 18 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Validating JIT Compilers via Compilation Space Exploration 引用了 Alive2: bounded translation validation for LLVM
  • Validating JIT Compilers via Compilation Space Exploration 引用了 The Mutators Reloaded: Fuzzing Compilers with Large Language Model Generated Mutation Operators
  • The Mutators Reloaded: Fuzzing Compilers with Large Language Model Generated Mutation Operators 引用了 Validating JIT Compilers via Compilation Space Exploration
  • Validating JIT Compilers via Compilation Space Exploration 引用了 Random testing for C and C++ compilers with YARPGen
  • The Mutators Reloaded: Fuzzing Compilers with Large Language Model Generated Mutation Operators 引用了 Compiler Testing using Template Java Programs
  • The Mutators Reloaded: Fuzzing Compilers with Large Language Model Generated Mutation Operators 引用了 Fuzz4All: Universal Fuzzing with Large Language Models
  • The Mutators Reloaded: Fuzzing Compilers with Large Language Model Generated Mutation Operators 引用了 Random testing for C and C++ compilers with YARPGen
  • Compiler Testing using Template Java Programs 引用了 SLEMI: equivalence modulo input (EMI) based mutation of CPS models for finding compiler bugs in Simulink
  • Compiler Testing using Template Java Programs 引用了 Random testing for C and C++ compilers with YARPGen
  • Compiler Testing using Template Java Programs 引用了 Test-case reduction and deduplication almost for free with transformation-based compiler testing
  • Fuzz4All: Universal Fuzzing with Large Language Models 引用了 On the unusual effectiveness of type-aware operator mutations for testing SMT solvers
  • Fuzz4All: Universal Fuzzing with Large Language Models 引用了 Random testing for C and C++ compilers with YARPGen
  • Test-case reduction and deduplication almost for free with transformation-based compiler testing 引用了 Random testing for C and C++ compilers with YARPGen
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper18

  1. Fuzz4All: Universal Fuzzing with Large Language ModelsChunqiu Steven Xia, Matteo Paltenghi, Jia Le Tian, Michael Pradel 等ICSE 2024 · 155 次引用
  2. SoK: What don't we know? Understanding Security Vulnerabilities in SNARKsStefanos Chaliasos, Jens Ernstberger, David Theodore, David Wong 等USENIX Security 2024 · 32 次引用
  3. The Mutators Reloaded: Fuzzing Compilers with Large Language Model Generated Mutation OperatorsXianfei Ou, Cong Li, Yanyan Jiang, Chang XuASPLOS 2024 · 25 次引用
  4. Validating JIT Compilers via Compilation Space ExplorationCong Li, Yanyan Jiang, Chang Xu, Zhendong SuSOSP 2023 · 22 次引用
  5. Compiler Testing using Template Java ProgramsZhiqiang Zang, Nathan Wiatrek, Milos Gligoric, August ShiASE 2022 · 21 次引用

它引用的 Paper8

  1. Random testing for C and C++ compilers with YARPGenVsevolod Livinskii, Dmitry Babokin, John RegehrOOPSLA 2020 · 140 次引用
  2. Alive2: bounded translation validation for LLVMNuno P. Lopes, Juneyoung Lee, Chung-Kil Hur, Zhengyang Liu 等PLDI 2021 · 109 次引用
  3. On the unusual effectiveness of type-aware operator mutations for testing SMT solversDominik Winterer, Chengyu Zhang, Zhendong SuOOPSLA 2020 · 55 次引用
  4. Test-case reduction and deduplication almost for free with transformation-based compiler testingAlastair F. Donaldson, Paul Thomson, Vasyl Teliman, Stefano Milizia 等PLDI 2021 · 39 次引用
  5. SLEMI: equivalence modulo input (EMI) based mutation of CPS models for finding compiler bugs in SimulinkShafiul Azam Chowdhury, Sohil Lal Shrestha, Taylor T. Johnson, Christoph CsallnerICSE 2020 · 35 次引用

相关 Paper

  1. Well-typed programs can go wrong: a study of typing-related bugs in JVM compilersStefanos Chaliasos, Thodoris Sotiropoulos, Georgios-Petros Drosos, Charalambos Mitropoulos 等OOPSLA 2021 · 31 次引用
  2. API-Driven Program Synthesis for Testing Static Typing ImplementationsThodoris Sotiropoulos, Stefanos Chaliasos, Zhendong SuPOPL 2024 · 15 次引用
  3. Finding Compiler Bugs through Cross-Language Code Generator and Differential TestingQiong Feng, Xiaotian Ma, Ziyuan Feng, Marat Akhin 等OOPSLA 2025 · 2 次引用
  4. Enumerating Ill-Typed Programs for Testing Type AnalyzersThodoris Sotiropoulos, Zhendong SuPLDI 2026
  5. Fuzzing C++ Compilers via Type-Driven MutationBo Wang, Chong Chen, Ming Deng, Junjie Chen 等OOPSLA 2025 · 5 次引用
黄昏的海面,两侧是细线勾勒的悬崖