Skip to content

Segmentation fault opening vscode on Arch Linux ARM64 #153849

@h0m3

Description

@h0m3

Does this issue occur when all extensions are disabled?: Yes

Hello Friends,

I'm running vscode from Arch Linux ARM (Asahi) on my MacBook Air M1 and its giving me a segfault before it opens.

/opt/visual-studio-code/bin/code: line 62: 16644 Segmentation fault ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" --ms-enable-electron-run-as-node "$@"

I have never opened code before on this system and I think it may be related to the fact that the M1 uses a 16K address page (chromium had a similar issue and maybe a similar patch can be applied) instead of a 4K. More info in the Asahi wiki.

I know its a very niche case on a probably unsupported platform but since more ARM systems would start using pages bigger than the standard x86 4K for the big performance improvement it may be worth it the report.

  • VS Code Version: Both 1.68.1 and Insiders build 1656566876
  • OS Version: Arch Linux Asahi ARM64 (MacBook Air M1) - Linux 5.17.0-rc7-asahi-next-20220310-5-2-ARCH

Steps to Reproduce:

  1. Open visual studio code with command /usr/bin/code --unity-launch %F or simply code.

Metadata

Metadata

Assignees

Labels

author-verification-requestedIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugchromiumIssues and items related to Chromiumfixed-in-electron-19Issues fixed with Electron 19.x updateinsiders-releasedPatch has been released in VS Code InsiderslinuxIssues with VS Code on Linuxupstream-issue-fixedThe underlying upstream issue has been fixedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions