• Home
  • Search
  • Constructing exception handling chains for testing Java virtual machine implementations
  • Cite Icon1
  • https://doi.org/10.1002/smr.2562Copy DOI Icon

Constructing exception handling chains for testing Java virtual machine implementations

Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Abstract The Java virtual machine (JVM) is the cornerstone of the Java platforms. A JVM's exception handling implementation interrupts, when the objective application encounters an exception (or an error), the normal execution of the application and performs specific handling tasks. However, little research has been done in systematically validating JVMs' exception handling implementations—test programs or even applications need to be carefully designed for throwing/catching exceptions at runtime; a JVM's exception handling implementation is also complicated, making it challenging to design tests for testing all of its functionalities. Inspired by the recent success of fuzz testing of compilers and JVM implementations, we introduce EHCBuilder, the first technique for fuzzing JVMs' exception handling implementations. The key idea is to construct exception handling chains, each of which abstracts a program's execution into a sequence of exception throwings, catchings, and/or handlings. A classfile seed can then be mutated into test programs with diverse exception handling chains, enabling (1) exceptions to be continuously thrown and caught at runtime, and (2) JVMs' exception handling implementations to be much more thoroughly tested. We have implemented EHCBuilder and evaluated EHCBuilder on popular JVM implementations including OpenJDK's HotSpot, Eclipse's OpenJ9, Azul's Zulu, and Oracle's GraalVM. Our results show that EHCBuilder can generate programs with very intricate exception handling chains and reveal differences among JVMs' exception handling implementations: Up to thousands of lines of source code in HotSpot's exception handling implementation are covered more than the original benchmarks; during 39 K iterations, EHCBuilder generates exception handling chains of different lengths, revealing 258 runtime differences. We classify the differences into four categories, and reveal a fast throw issue confirmed by HotSpot developers and another initCause issue confirmed by the OpenJ9 community.

Similar Papers
  • Journal Issue
  • Citations12

Efficient Java exception handling in just-in-time compilation

  • Jan 01, 2004
  • Software: Practice and Experience
  • Seungil Lee +2
  • Book Chapter
  • Citations2

Java

  • Jan 15, 2002
  • Encyclopedia of Software Engineering
  • Mehdi Jazayeri
  • Conference Article
  • Citations180

Coverage-directed differential testing of JVM implementations

  • Jun 02, 2016
  • Yuting Chen +4
  • Research Article
  • Citations29

Coverage-directed differential testing of JVM implementations

  • Jun 02, 2016
  • ACM SIGPLAN Notices
  • Yuting Chen +4
  • Conference Article
  • Citations90

Deep Differential Testing of JVM Implementations

  • May 01, 2019
  • Yuting Chen +2
  • Research Article
  • Citations24

A practical method for specification and analysis of exception handling-a Java/JVM case study

  • Jan 01, 2000
  • IEEE Transactions on Software Engineering
  • E Borger +1
  • Conference Article
  • Citations15

Automated Conformance Testing of Java Virtual Machines

  • Jul 01, 2013
  • Andrea Calvagna +1
  • Research Article

Exceptionization

  • Mar 31, 2017
  • ACM Transactions on Architecture and Code Optimization
  • Byung-Sun Yang +2
  • Research Article
  • Citations17

Adding Self-healing capabilities to the Common Language Runtime

  • Jan 01, 2005
  • Columbia Academic Commons (Columbia University)
  • Rean Griffith +1
  • Research Article
  • Citations9

Efficient Java exception handling in just‐in‐time compilation

  • Oct 18, 2004
  • Software: Practice and Experience
  • Seungil Lee +2
  • Conference Article

Research and practice of JAVA virtual machine exception handling mechanism testing technology

  • Jul 28, 2022
  • Yanhua Chen +1
  • Conference Article

A reconfigurable memory management core for Java applications

  • Oct 04, 2004
  • A Ejnioui +1
  • Research Article
  • Citations4

A Platform-Independent Distributed Runtime for Standard Multithreaded Java

  • Apr 01, 2006
  • International Journal of Parallel Programming
  • Michael Factor +2
  • Research Article
  • Citations78

Java runtime systems: characterization and architectural implications

  • Jan 01, 2001
  • IEEE Transactions on Computers
  • R Radhakrishnan +5
  • Conference Article
  • Citations51

Architectural issues in Java runtime systems

  • Jan 01, 2000
  • R Radhakrishnan +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.