FIRestarter: Practical Software Crash Recovery with Targeted Library-level Fault Injection

Koustubha Bhat, E. V. D. Kouwe, H. Bos, Cristiano Giuffrida
{"title":"FIRestarter: Practical Software Crash Recovery with Targeted Library-level Fault Injection","authors":"Koustubha Bhat, E. V. D. Kouwe, H. Bos, Cristiano Giuffrida","doi":"10.1109/DSN48987.2021.00048","DOIUrl":null,"url":null,"abstract":"Despite advances in software testing, many bugs still plague deployed software, leading to crashes and thus service disruption in high-availability production applications. Existing crash recovery solutions are either limited to transient faults or require manual annotations to target predetermined persistent bugs. Moreover, existing solutions are generally inefficient, hindering practical deployment.In this paper, we present FIRestarter (Fault Injection-based Restarter), an efficient and automatic crash recovery solution for commodity user applications. To eliminate the need for manual annotations, FIRestarter injects targeted software faults at the library interface to automatically trigger error handling code for standard library calls already part of the application. In particular, when a crash occurs, we roll back the application state before the last recoverable library call, inject a fault, and restart execution forcing the call to immediately return a predetermined error code. This strategy allows the application to automatically bypass the crashing code upon such a restart and exploits existing error-handling code to recover from even persistent bugs. Moreover, since library calls lie pervasively throughout the code, our design provides a large recovery surface despite the automated approach. Finally, FIRestarter’s recovery windows are small and frequent compared to traditional checkpoint-restart, which enables new optimizations such as the ability to support rollback by means of hybrid hardware/software transactional memory instrumentation and improve performance. We apply FIRestarter to a number of event-driven server applications and show our solution achieves near-instantaneous, state-preserving crash recovery in the face of even persistent crashes. On popular web servers, our evaluation results show a recovery surface of at least 77%, with low performance overhead of at most 17%.","PeriodicalId":222512,"journal":{"name":"2021 51st Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN)","volume":"49 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 51st Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/DSN48987.2021.00048","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3

Abstract

Despite advances in software testing, many bugs still plague deployed software, leading to crashes and thus service disruption in high-availability production applications. Existing crash recovery solutions are either limited to transient faults or require manual annotations to target predetermined persistent bugs. Moreover, existing solutions are generally inefficient, hindering practical deployment.In this paper, we present FIRestarter (Fault Injection-based Restarter), an efficient and automatic crash recovery solution for commodity user applications. To eliminate the need for manual annotations, FIRestarter injects targeted software faults at the library interface to automatically trigger error handling code for standard library calls already part of the application. In particular, when a crash occurs, we roll back the application state before the last recoverable library call, inject a fault, and restart execution forcing the call to immediately return a predetermined error code. This strategy allows the application to automatically bypass the crashing code upon such a restart and exploits existing error-handling code to recover from even persistent bugs. Moreover, since library calls lie pervasively throughout the code, our design provides a large recovery surface despite the automated approach. Finally, FIRestarter’s recovery windows are small and frequent compared to traditional checkpoint-restart, which enables new optimizations such as the ability to support rollback by means of hybrid hardware/software transactional memory instrumentation and improve performance. We apply FIRestarter to a number of event-driven server applications and show our solution achieves near-instantaneous, state-preserving crash recovery in the face of even persistent crashes. On popular web servers, our evaluation results show a recovery surface of at least 77%, with low performance overhead of at most 17%.
FIRestarter:实用的软件崩溃恢复与目标库级故障注入
尽管软件测试取得了进步,但许多错误仍然困扰着部署的软件,导致高可用性生产应用程序中的崩溃和服务中断。现有的崩溃恢复解决方案要么局限于暂时的错误,要么需要手动注释来针对预定的持久错误。此外,现有的解决方案通常效率低下,阻碍了实际部署。在本文中,我们提出了FIRestarter(基于故障注入的Restarter),这是一种针对商业用户应用程序的高效自动崩溃恢复解决方案。为了消除手动注释的需要,FIRestarter在库接口中注入了目标软件错误,以自动触发已经成为应用程序一部分的标准库调用的错误处理代码。特别是,当发生崩溃时,我们回滚最后一次可恢复的库调用之前的应用程序状态,注入一个错误,并重新开始执行,迫使调用立即返回预定的错误代码。这种策略允许应用程序在重新启动时自动绕过崩溃代码,并利用现有的错误处理代码从甚至持续存在的错误中恢复。此外,由于库调用在代码中无处不在,我们的设计提供了一个大的恢复面,尽管采用了自动化方法。最后,与传统的检查点重新启动相比,FIRestarter的恢复窗口更小、更频繁,从而实现了新的优化,例如通过混合硬件/软件事务性内存插装支持回滚的能力,并提高了性能。我们将FIRestarter应用于许多事件驱动的服务器应用程序,并展示了我们的解决方案在面对持续崩溃时实现了近乎即时的、保持状态的崩溃恢复。在流行的web服务器上,我们的评估结果显示恢复率至少为77%,低性能开销最多为17%。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信