按年被提到
20172018 · 4 次2026
安全、隐私与密码学›调试、模糊测试与供应链·arXiv:1705.05937 · cs.PL

Engineering Record And Replay For Deployability: Extended Technical Report

面向可部署性的记录与回放工程:扩展技术报告
Robert O'Callahan, Chris Jones, Nathan Froyd, Kyle Huey, Albert Noll, Nimrod Partush · 2017

rr:纯用户态、低开销的程序执行记录与回放系统的设计与实现

开始阅读 ↗PDFalphaXiv 讨论
被推荐 · 9 人首次 2017-05-18 · 最近 2025-03-06
9不同的人
8活跃月份
8讨论串
18被引(OpenAlex)

作者提出并实现了 rr,一个完全运行在用户态、使用现成硬件、编译器、运行时和操作系统的记录与回放系统,避免了录制整机虚拟机、修改内核或全面插桩等做法。只要 CPU 和操作系统满足若干不太显然的约束(现代 Intel CPU 与 Linux 恰好满足),rr 就能以较低开销记录并回放低并行度的真实负载,并已成为实际使用的逆向执行调试器。文中还给出性能评估,并指出对硬件和操作系统设计的要求。

HN 为什么提它

每当有人问 rr 如何让多线程程序可确定地重放、如何只记录外部输入、为何开销很低,评论者就指向这份技术报告作为权威解释。

方法难度 4 / 5约 70 分钟经得起时间
读之前最好知道
1Linux 系统调用(syscall)与 ptrace
2CPU 性能计数器(performance counters)
3线程调度与数据竞争(data race)
4调试器基础(断点、反向调试)
5确定性重放(deterministic replay)

HN 书评

推荐在前,同类按时间 · 每篇最多保留 20 条,统计用全部提及
推荐roca · 2018-11

“You should read Engineering Record And Replay For Deployability so you don't need to speculate.”

推荐读这篇论文,说明 rr 如何在回放中保持线程调度一致,不必猜测
rr: lightweight recording and deterministic debugging原评论 ↗
推荐sfink · 2022-06

“The full answer is well described in Engineering Record And Replay For Deployability which I'll quote here:”

指出论文给出了完整解答,并摘引 rr 只记录外部输入、回放开销低的原理
What rr does原评论 ↗
推荐alehander42 · 2025-03

“It's very well documented in their paper: Engineering Record And Replay For Deployability: Extended Technical Report[2].”

指出 rr 如何记录并回放多进程用户态执行,论文里有详细文档
Show HN: CodeTracer – A time-traveling debugger implemented in Nim and Rust原评论 ↗
引用roca · 2018-11

“Engineering Record And Replay For Deployability has more details.”

指出论文有 rr 用户态记录回放设计取舍的更多细节
rr: lightweight recording and deterministic debugging原评论 ↗
引用pm215 · 2018-11

“rr has an "extended technical report" at Engineering Record And Replay For Deployability which explains the principles it uses.”

指出 rr 的扩展技术报告解释了其所用原理
rr: lightweight recording and deterministic debugging原评论 ↗
引用scott_s · 2018-11

“edit: The technical report says that they deterministically schedule threads:”

引技术报告说明 rr 对线程做确定性调度
rr: lightweight recording and deterministic debugging原评论 ↗
看全部 10 条 →
引用garaetjjte · 2019-11

“By capturing all external inputs to application, it can replay it many times and results will be always identical.”

说明 rr 捕获应用的全部外部输入,因此可反复回放且结果一致
Debuggers Suck原评论 ↗
引用roca · 2020-05

“For many workloads the major unavoidable cost is context switching.”

说明 rr 开销中不可避免的主要部分是上下文切换
Time Traveling Linux Bug Reporting: Coming in Julia 1.5原评论 ↗
引用bqmjjx0kac · 2024-07

“I believe I read it in the Extended Technical Report from 2017”

记得在这份扩展技术报告里读到 rr 的 chaos mode 随机化线程时间片以暴露竞态
rr – record and replay debugger for C/C++原评论 ↗
引用roca · 2024-07

“The details about rr are here”

指向论文了解 rr 细节:拦截系统调用和不确定性,CPU 指令全速运行
rr – record and replay debugger for C/C++原评论 ↗
被提交为 story · 2 次