Standalone test runs abort with heap corruption at teardown on Linux CI (worker:test, since 2026-12-03)

オープン
#252 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

  • #253 @beaucollins による — マージされずにクローズ

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp, github-actions, linux
領域
backend, testing

調査の方向性

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!, then corrupted double-linked list and SIGABRT from __libc_free. It ran on the shared valdi/valdi_standalone runner.
  • Run 47004000607 (main @ 81a99c0f, one day earlier): corrupted double-linked list right after Test run COMPLETE!, in other targets (//apps/helloworld/text_binding_fixture:text_binding_fixture_test, //valdi:test_java).
  • Last green Valdi CI run 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.cpp and JavaScriptANRDetector.cpp.
  • a946c374 touches ProtobufArena.cpp and ProtobufModule.cpp.
Suggested next steps
  • Reproduce with bzl test //src/valdi_modules/src/valdi/worker:test --config=asan on 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 はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Snapchat/Valdi のほかの issue

Snapchat/Valdi の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。