> ## Content Index
> Fetch the complete content index at: https://www.sakashita.page/llms.txt
> Use this file to discover other available public pages before exploring further.

# nodejsのバグを見つけたのでPRを投げてみた
- URL: https://www.sakashita.page/nodejs-v22-test-runner-backport/
- Published: 2026-09-05T08:30:24.000Z
- Updated: 2026-09-05T08:30:23.000Z
- Author: Sakashita Yasunobu

## 概要

要するに、node --testで特定のバイナリを標準出力に書くと、テストランナーが固まったり、異常終了したりするバグです。

バグ自体は既知のものだったようで、修正がされていました。

[test\_runner: infinite loop in FileTest#drainRawBuffer when child stdout contains FF 0F followed by large size bytes · Issue #62693 · nodejs/nodeVersion v25.9.0 (also reproduced on v24.14.1 LTS, v22.21.0 LTS, v23.4.0) Platform Darwin 25.3.0 Darwin Kernel Version 25.3.0: Wed Jan 28 20:53:05 PST 2026; root:xnu-12377.81.4\~5/RELEASE\_ARM64\_T6020…![](https://storage.ghost.io/c/94/1f/941f9972-ad5c-4231-a438-ca329c85433f/content/images/icon/favicon-3bbf74c1-9424-4cf8-a457-933ec517ef95.png)GitHublslv1243![](https://storage.ghost.io/c/94/1f/941f9972-ad5c-4231-a438-ca329c85433f/content/images/thumbnail/62693-7606af7c-5d28-43ad-9537-32f9464d0e38)](https://github.com/nodejs/node/issues/62693)

ただ、手元で使っていたv22では修正が配布されていなかったので、PRを投げたという形です。

[\[v22.x backport\] test\_runner: avoid hanging on incomplete v8 frames by P4suta · Pull Request #65807 · nodejs/nodeBackport #62704 and #64706 together to v22.x-staging to fix test-runner hangs and deserialization errors triggered by binary child stdout. This follows up on #64706 (comment). Why backport to Maint…![](https://storage.ghost.io/c/94/1f/941f9972-ad5c-4231-a438-ca329c85433f/content/images/icon/favicon-1cb16f8e-003b-4f50-97f9-4b470ea04a0b.png)GitHubnodejs![](https://storage.ghost.io/c/94/1f/941f9972-ad5c-4231-a438-ca329c85433f/content/images/thumbnail/65807-f8dd276d-5ab3-4326-b41a-83bd634369ed)](https://github.com/nodejs/node/pull/65807)

今回取り込んだのは、無限ループを防ぐ修正と、データの長さを符号なし整数として扱う修正の2つです。

## 感想

V8のビルド時間が長かった。作業時間的には3時間ぐらい。