远程联合符号多宇宙调试——带附加附录的扩展版本
Remote Concolic Multiverse Debugging -- Extended Version with Additional Appendices
AI总结:
本文提出基于跟踪的多宇宙调试器,结合符号执行与实时调试,有效减少状态空间并提升微控制器上非确定性程序调试的效率与可行性。
摘要:
调试非确定性程序本质上具有挑战性,特别是在微控制器环境中,由于外部传感器输入导致执行路径不可预测。传统调试技术难以有效捕捉或重现这种非确定性行为。多宇宙调试作为一种有吸引力的技术,允许开发者系统地探索所有可能的执行路径。然而,当前的多宇宙调试器多为快照式,且大多数基于程序模型,限制了其在资源受限的微控制器上的应用。此外,现有的多宇宙调试器,即使专门针对微控制器设计,也面临状态爆炸问题,使状态空间在调试过程中变得难以处理。为解决这些挑战,我们引入了一种基于跟踪的多宇宙调试器,其新颖的状态空间缩减技术基于符号执行。我们的方法将符号分析与实时调试相结合,以识别定义独特程序路径的输入值。这种混合技术能够高效地从状态空间中修剪冗余路径,同时确保完整的代码覆盖率。与MIO相比,后者是针对微控制器发布的多宇宙调试器,专注于IO一致性,我们的方法直接针对状态爆炸问题,利用符号执行和基于跟踪的方法,显著减少了内存和通信开销。我们使用WARDuino WebAssembly VM实现了一个原型,展示了在真实场景中我们的方法可行性和效率。我们的结果表明,与传统多宇宙调试相比,状态空间显著减少,使多宇宙调试在复杂、非确定性程序的微控制器上更加可访问和高效。
英文摘要:
Debugging nondeterministic programs is inherently difficult, particularly in microcontroller environments where execution paths can diverge unpredictably due to external sensor inputs. Traditional debugging techniques often fail to capture or reproduce this nondeterministic behavior effectively. Multiverse debugging has emerged as a compelling technique to debug nondeterministic programs, allowing developers to systematically explore all possible execution paths. Unfortunately, current multiverse debuggers are snapshot-based and most operate over a model of the program, limiting their use for debugging resource-constrained microcontrollers. Additionally, current multiverse debuggers, even ones specifically designed for microcontrollers suffer from state explosion making the state space overwhelming during debugging. To address these challenges, we introduce a trace-based multiverse debugger with a novel state-space reduction technique based on concolic execution. Our approach interleaves concolic analysis with live debugging to identify input values that define unique program paths. This hybrid technique efficiently prunes redundant paths from the state space while ensuring full code coverage. Unlike MIO, a recently published multiverse debugger for microcontrollers that focuses on IO consistency, our approach directly targets state explosion by leveraging concolic execution and uses a trace-based approach, significantly reducing the memory and communication overhead. We implemented a prototype using the WARDuino WebAssembly VM, demonstrating the feasibility and efficiency of our approach in real-world scenarios. Our results highlight substantial reductions in the state space compared to traditional multiverse debugging. This makes multiverse debugging more accessible and efficient for developers working with complex, nondeterministic programs running on microcontrollers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。