arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1807.03837cs.SE
收藏

理解具有变分跟踪的执行之间的差异

Understanding Differences among Executions with Variational Traces

Jens Meinicke, Chu-Pan Wong, Christian Kästner, Gunter Saake

摘要:

调试的主要挑战之一是理解为什么程序对某些输入失败,但对其他输入成功。如果故障是由多个输入的相互作用引起的,则这变得特别困难。为了调试这种交互故障,有必要了解输入的个体效果,这些输入如何交互以及这些交互如何导致故障。两个执行跟踪之间的差异可以解释为什么一个输入的行为与另一个不同。我们建议比较所有输入选项的执行轨迹,以获得所有选项的行为和它们之间的相互作用的解释。为了突出相关信息,我们将其表示为变迹,它简洁地表示了多个具体迹线之间的控制流和数据流差异。虽然变分轨迹可以从所有相关输入的蛮力执行中获得,但我们使用变分执行将变分轨迹的生成扩展到可能输入的指数空间。我们还提供了一个Eclipse插件Varviz,使用户能够使用变量跟踪进行调试和导航。在一项用户研究中,我们发现,用户的变化的痕迹是两倍以上的速度完成调试任务比用户的标准Eclipse调试器。我们进一步表明,变迹可以扩展到有许多选择的方案。

英文摘要:

One of the main challenges of debugging is to understand why the program fails for certain inputs but succeeds for others. This becomes especially difficult if the fault is caused by an interaction of multiple inputs. To debug such interaction faults, it is necessary to understand the individual effect of the input, how these inputs interact and how these interactions cause the fault. The differences between two execution traces can explain why one input behaves differently than the other. We propose to compare execution traces of all input options to derive explanations of the behavior of all options and interactions among them. To make the relevant information stand out, we represent them as variational traces that concisely represents control-flow and data-flow differences among multiple concrete traces. While variational traces can be obtained from brute-force execution of all relevant inputs, we use variational execution to scale the generation of variational traces to the exponential space of possible inputs. We further provide an Eclipse plugin Varviz that enables users to use variational traces for debugging and navigation. In a user study, we show that users of variational traces are more than twice as fast to finish debugging tasks than users of the standard Eclipse debugger. We further show that variational traces can be scaled to programs with many options.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑