Linux: //valdi:test_runtime crashes in gtest's XML writer at exit (all tests pass)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- cpp, github-actions
调研方向
Start by reading the Linux test step and its comment in tools/ci/run_tests.sh, then compare it with the direct binary invocation in tools/ci/sanitizer_tests.sh. Reproduce with bzl test //valdi:test_runtime --test_output=errors on Linux x86_64 and inspect the static teardown path involving gtest's XML writer and runtime globals. Done when the test passes through bzl test without crashing at exit.
由索引模型根据 Issue 内容生成。
描述
On Linux, bzl test //valdi:test_runtime fails even though every test in it passes. The test binary segfaults during static destruction, in gtest's XML result writer, when it's linked against valdi_standalone_runtime. Only the process teardown crashes.
Where it shows up
tools/ci/run_tests.shruns//valdi:test_runtimeon macOS only, for this reason. See the comment above that step.tools/ci/sanitizer_tests.shbuilds//valdi:test_runtimeand runs the binary directly instead of usingbzl test, to avoid the same crash.
Reproduce
On Linux x86_64:
bzl test //valdi:test_runtime --test_output=errors
Expected: the test passes. Actual: all test cases pass, then the binary crashes (SIGSEGV) at exit while gtest writes its XML report. Running the built binary directly, as sanitizer_tests.sh does, avoids the crash.
Notes
- This looks like a static-destruction order problem between gtest's XML output and globals in the runtime. It isn't a failing test.
- Until it's fixed, Linux coverage for these tests depends on running the binary directly (as
sanitizer_tests.shdoes). RFC 0001 (#196) and RFC 0002 (#197) should not rely onbzl test //valdi:test_runtimeon Linux.
Part of #6 (Linux support).
- 主要语言
- C++
- 星标
- 16.4k
- 派生
- 538
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Snapchat/Valdi 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 3/5 半天 新手友好度 55/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 50/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 55/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 78/100
维护者通常 1 天内回复
相似的 Issue
-
new issue
难度 2/5 1-3 小时 新手友好度 62/100
llvm/llvm-project#245835 ·
维护者通常 1 天内回复
-
documentation
难度 1/5 1 小时以内 新手友好度 72/100
EchoTools/nevr-runtime#2823 ·
维护者通常 1 天内回复
-
Fix a typo in H5Centry.c可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 66/100
triton-lang/triton#12945 ·
维护者通常 1 天内回复
-
Releases do not move the `latest` Docker tag: the branch `30.12` is taken for the latest release branch可能已有人在做 @alexey-milovidov 今天认领。 未关闭comp-ci-infrastructure unexpected behaviour
难度 2/5 1-3 小时 新手友好度 70/100
ClickHouse/ClickHouse#134282 ·
维护者通常 1 天内回复