基于元程序设计的空指针动态面片生成
Dynamic Patch Generation for Null Pointer Exceptions using Metaprogramming
摘要:
空指针异常(NPE)是生产中未捕获的崩溃异常的首要原因。在本文中,我们的目标是探索元编程中空指针异常的可能补丁的搜索空间。我们的思想是用自动代码转换来转换修复中的程序,从而得到一个元程序。这个元程序包含自动注入的钩子,可以激活它们来模拟空指针异常补丁。这使我们能够对空指针异常的运行时上下文执行细粒度分析。我们设置了一个实验,在现场发生了16个真实的空指针异常。我们比较我们的元编程方法对简单的模板修复空指针异常的有效性。
英文摘要:
Null pointer exceptions (NPE) are the number one cause of uncaught crashing exceptions in production. In this paper, we aim at exploring the search space of possible patches for null pointer exceptions with metaprogramming. Our idea is to transform the program under repair with automated code transformation, so as to obtain a metaprogram. This metaprogram contains automatically injected hooks, that can be activated to emulate a null pointer exception patch. This enables us to perform a fine-grain analysis of the runtime context of null pointer exceptions. We set up an experiment with 16 real null pointer exceptions that have happened in the field. We compare the effectiveness of our metaprogramming approach against simple templates for repairing null pointer exceptions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。