Visible to the public Automatic Runtime Recovery via Error Handler Synthesis

TitleAutomatic Runtime Recovery via Error Handler Synthesis
Publication TypeConference Paper
Year of Publication2016
AuthorsGu, Tianxiao, Sun, Chengnian, Ma, Xiaoxing, Lü, Jian, Su, Zhendong
Conference NameProceedings of the 31st IEEE/ACM International Conference on Automated Software Engineering
PublisherACM
Conference LocationNew York, NY, USA
ISBN Number978-1-4503-3845-5
Keywordsautomatic runtime recovery, exception handling, JVM, pubcrawl, Resiliency, System recovery
Abstract

Software systems are often subject to unexpected runtime errors. Automatic runtime recovery (ARR) techniques aim at recovering them from erroneous states and maintaining them functional in the field. This paper proposes Ares , a novel, practical approach to performing ARR. Our key insight is to leverage a system's already built-in error handling support to recover from unexpected errors. To this end, we synthesize error handlers via two methods: error transformation and early return. We also equip Ares with a lightweight in-vivo testing infrastructure to select the right synthesis methods and avoid potentially dangerous error handlers. Unlike existing ARR techniques based on heavyweight mechanisms (e.g., checkpoint-restart and runtime monitoring), our approach expands the intrinsic capability of runtime error resilience already existing in software systems to handle unexpected errors. Ares's lightweight mechanism makes it practical and easy to be integrated into production environments. We have implemented Ares on top of both the Java HotSpot VM and Android ART, and applied it to 52 real-world bugs. The results are promising -- Ares successfully recovers from 39 of them and incurs low overhead.

URLhttp://doi.acm.org/10.1145/2970276.2970360
DOI10.1145/2970276.2970360
Citation Keygu_automatic_2016