Standalone test runs abort with heap corruption at teardown on Linux CI (worker:test, since 2026-12-03)
维护者通常 1 天内回复
还没有人认领这个 Issue。
- #253 来自 @beaucollins —— 已关闭,未合并
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
调研方向
Start by reproducing //src/valdi_modules/src/valdi/worker:test on Linux with bzl test //src/valdi_modules/src/valdi/worker:test --config=asan, as described in the issue, to locate the first invalid access. Then bisect the four commits between the last green CI run and the first failure, focusing on the named runtime and protobuf files. Done means identifying the cause of teardown corruption and confirming the standalone test completes without an abort.
由索引模型根据 Issue 内容生成。
描述
Symptom
On Linux x86_64 CI (fastbuild, --js_engine hermes), standalone test runs abort with heap corruption after all specs pass:
//src/valdi_modules/src/valdi/worker:test(Valdi CI run 47236341893, main @ 4e7592ef):23 specs, 0 failures,Test run COMPLETE!, thencorrupted double-linked listand SIGABRT from__libc_free. It ran on the sharedvaldi/valdi_standalonerunner.- Run 47004000607 (main @ 81a99c0f, one day earlier):
corrupted double-linked listright afterTest run COMPLETE!, in other targets (//apps/helloworld/text_binding_fixture:text_binding_fixture_test,//valdi:test_java). - Last green
Valdi CIrun on main: 46778181893 (2026-12-02, 4925ed59).
So this is not specific to one module or to a per-module runner; the corruption happens during standalone runtime teardown and is first seen on main on 2026-12-03.
Suspects
The four commits that landed between the last green run and the first corruption run:
- 98bf710f touches
JavaScriptRuntime.cpp(about 70 lines),JSPromise.cpp,JSValueRefHolder.cppandJavaScriptANRDetector.cpp. - a946c374 touches
ProtobufArena.cppandProtobufModule.cpp.
Suggested next steps
- Reproduce with
bzl test //src/valdi_modules/src/valdi/worker:test --config=asanon Linux to get the first invalid access. - Bisect over the four commits above.
Correction
An earlier version of this issue attributed the abort to the per-module test runner introduced by https://github.com/Snapchat/Valdi/pull/211. That was wrong: the failure reproduces on main with the shared runner.
- 主要语言
- C++
- 星标
- 16.4k
- 派生
- 539
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Snapchat/Valdi 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
相似的 Issue
-
RTL-SDR: re-enumerating while streaming removes the in-use entry from the device selection dialog可能已有人在做 @dpc00 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 3 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
throneproj/Throne#2227 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
deepseek-ai/DeepGEMM-Ascend#49 ·
维护者通常 1 天内回复