Node 22 on armvc6 and armv7 get into an out of memory infinite loop
未关闭
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 122k
- 派生
- 37.4k
- 平均合并
- 4 天 3 小时
- 30 天内合并 PR
- 272
描述
Version
22
Platform
Linux 431b32e3d8c4 6.6.31-linuxkit #1 SMP Thu May 23 08:36:57 UTC 2024 armv7l Linux
Subsystem
No response
What steps will reproduce the bug?
docker run --cap-add=SYS_PTRACE -e QEMU_STRACE=1 --rm -it --platform linux/arm/v6 node:22-alpine
How often does it reproduce? Is there a required condition?
Every time
What is the expected behavior? Why is that the expected behavior?
Container starts
What do you see instead?
Without trace, the container just hangs, with tracing the following log is output forever
mremap(1081462784,4096,8192,0,0,1082133536) = -1 errno=12 (Out of memory)
Additional information
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,使用 --platform linux/arm/v6 运行为 node:22-alpine 提供的 docker 命令,先不启用 tracing,然后使用 QEMU_STRACE=1 运行。调查 armv6 和 armv7 上反复出现的 mremap 失败和内存不足循环。在这些平台上 Node 22 容器能够启动,而不是无限期挂起,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- docker, linux, nodejs
- 领域
- devops, operating-systems
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100