nodejs / nodejs/node

armhf segmentation fault --inspect-brk and simple import statement

未关闭
#48,939 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

confirmed-bug inspector v8 engine
主要语言
JavaScript
星标
122k
派生
37.4k
平均合并
4 天 2 小时
30 天内合并 PR
283

描述

Version

18.13.0, 18.17.0

Platform

6.1.0-10-armmp #1 SMP Debian 6.1.38-1 (2023-07-14) armv7l GNU/Linux

Subsystem

inspector

What steps will reproduce the bug?

Execute
node --inspect-brk main.js

with these files:

import './odd.js';

and

class A extends URL {
	constructor(str) {
		super(str);
	}
	toString() {
		return super.toString();
	}
}

console.log("fail")
How often does it reproduce? Is there a required condition?

No response

What is the expected behavior? Why is that the expected behavior?

Not fail

What do you see instead?

Segmentation fault

Additional information

Reproduced with the debian package AND the latest nodesource package node 18.x on debian bookworm.
Small changes to odd.js will stop crashing.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先在报告的 armv7l Debian 环境中使用 issue 里的 main.jsodd.js 示例,通过 node --inspect-brk main.js 重现崩溃。跟踪 inspector 的启动路径,并确认在相同条件下 import 不再导致 segmentation fault。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, linux, node.js
领域
devtools, operating-systems
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。