test-snapshot-* fail with "CheckGlobalAndEternalHandles failed"

未關閉
#315 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
1-2 天
新手友好度
50/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
javascript, node.js

研究方向

Start by reviewing the linked CI run and the snapshot creation path shown in the stack trace, especially node::SnapshotBuilder::CreateSnapshot. Reproduce with V8 15.9.23 by running the affected test-snapshot-* tests, then trace why the global handle is not serialized. Done means the snapshot tests and the named inspect and benchmark tests complete without the fatal error.

由索引模型根據 Issue 內容生成。

描述

With V8 15.9.23, test-snapshot-*, test-inspect-address-in-use and test-benchmark-v8 crash while building a snapshot.

parallel/test-snapshot-basic:

#
# Fatal error
# CheckGlobalAndEternalHandles failed
#
#
#
#FailureMessage Object: 0x7fff1154efe0
----- Native stack trace -----

 1: 0x55b1041bee12  [/home/runner/work/node-v8/node-v8/node/out/Release/node]
 2: 0x55b106cf338f V8_Fatal(char const*, ...) [/home/runner/work/node-v8/node-v8/node/out/Release/node]
 3: 0x55b104be9390  [/home/runner/work/node-v8/node-v8/node/out/Release/node]
 4: 0x55b10420f8b9 node::SnapshotBuilder::CreateSnapshot(node::SnapshotData*, node::CommonEnvironmentSetup*) [/home/runner/work/node-v8/node-v8/node/out/Release/node]
 5: 0x55b10420f280 node::BuildSnapshotWithoutCodeCache(node::SnapshotData*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::optional<std::basic_string_view<char, std::char_traits<char> > >, node::SnapshotConfig const&) [/home/runner/work/node-v8/node-v8/node/out/Release/node]
 6: 0x55b10420ffa7 node::SnapshotBuilder::Generate(node::SnapshotData*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::optional<std::basic_string_view<char, std::char_traits<char> > >, node::SnapshotConfig const&) [/home/runner/work/node-v8/node-v8/node/out/Release/node]
 7: 0x55b1040a5d4e node::GenerateAndWriteSnapshotData(node::SnapshotData const**, node::InitializationResultImpl const*) [/home/runner/work/node-v8/node-v8/node/out/Release/node]
 8: 0x55b1040a6875 node::Start(int, char**) [/home/runner/work/node-v8/node-v8/node/out/Release/node]
 9: 0x7f20b242a1ca  [/lib/x86_64-linux-gnu/libc.so.6]
10: 0x7f20b242a28b __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
11: 0x55b103f84dc5 _start [/home/runner/work/node-v8/node-v8/node/out/Release/node]

[process 178895]: --- stdout ---
(Global handles) handle not serialized: 0xf4c5113dcd1: [EphemeronHashTable] in OldSpace
 - FixedArray length: 67
 - elements: 1
 - deleted: 1
 - capacity: 32
 - elements: {
              7: 0x2dd89cccdd29 <Script> -> 0x2dd89cccf031 <Other heap object (WEAK_ARRAY_LIST_TYPE)>
 }

CI run: https://github.com/nodejs/node-v8/actions/runs/40665664178

主要語言
Shell
星號
468
分支
75
PR 合併指標
30 天內沒有已合併 PR

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

nodejs/node-v8 的其他 Issue

查看 nodejs/node-v8 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。