Skip to content

VSCode doesn't start on aarch64/arm64 Linux systems using 64k pages #268354

Closed

Description

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

  • VS Code Version: code-stable-arm64-1758714463.tar.gz (1.104, I believe)
  • OS Version: aarch64 (aka arm64) RHEL8

This is a follow up to #174505 which was closed as Chromium thus Electron didn't work correctly on Linux with 64k pages at the time. It has been fixed a while ago in chromium/chromium@a0ac9e3. And at some point VSCode picked up the updates and it started working on aarch64/arm64 Linux with 64-bit code - it has been reported to work in version 1.97.2. Today download of a stable build (as above) crashes again, as previously.

Steps to Reproduce:

  1. Get an aarch64 aka arm64 Linux system with kernel configured to use 64k pages, for example RHEL 8:
$ uname -m
aarch64
$ getconf PAGESIZE
65536
  1. Download and untar code-stable-arm64-1758714463.tar.gz.
  2. Try running VSCode-linux-arm64/bin/code and see how it crashes:
$ VSCode-linux-arm64-1758714463/bin/code --version
VSCode-linux-arm64-1758714463/bin/code: line 62: 81351 Trace/breakpoint trap   (core dumped) ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@"
$

In comparison, working version 1.97.2:

$ VSCode-linux-arm64-1.97.2/bin/code --version
1.97.2
e54c774e0add60467559eb0d1e229c6452cf8447
arm64
$

Activity

  1. vs-code-engineering commented on Sep 25, 2025

    @vs-code-engineering
    Contributor

    Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.104.2. Please try upgrading to the latest version and checking whether this issue remains.

    Happy Coding!

  2. pawelmoll commented on Sep 25, 2025

    @pawelmoll
    Author

    Not being 100% sure what "1758714463" build is, I've also downloaded a tarball through the https://update.code.visualstudio.com/1.104.2/linux-arm64/stable URL. No change in behaviour:

    ]$ VSCode-linux-arm64-1.104.2/bin/code --version
    VSCode-linux-arm64-1.104.2/bin/code: line 62: 84197 Trace/breakpoint trap   (core dumped) ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@"
    $
    
  3. added
    bug
    on Dec 9, 2025
  4. nojaf commented on Jan 26, 2026

    @nojaf
    Contributor

    I'm a bit out of my league here, but I did some digging and found some potentially relevant upstream context that might help:

    What I Found

    There appear to be two separate issues affecting non-4KB page systems on ARM64 Linux:

    1. PartitionAlloc (Chromium's memory allocator) — This was fixed in Chromium commit a0ac9e3 which added 64KB page support. This fix made it into Electron and is likely why VSCode 1.97.2 (Electron 32.2.7, Chromium 128) worked.

    2. V8's --decommit-pooled-pages — A newer regression in V8 that affects non-4KB page systems. This was identified in Debian Bug #1089647 as the culprit for crashes on 16KB page systems starting around Chromium 131. The V8 commit in question is https://chromium-review.googlesource.com/c/v8/v8/+/5864909.

    Electron History

    Version Comparison

    VSCode Electron Chromium Status
    1.97.2 32.2.7 128 ✅ Works
    1.104+ 38-39 140-142 ❌ Crashes

    Possible Workaround to Test

    Could someone with affected hardware try launching VSCode with this flag?

    code --js-flags="--no-decommit-pooled-pages"
    

    This is the workaround Debian uses for Chromium on non-4KB page systems. If it works, it would confirm the V8 regression is the culprit.

    Next Steps (I think?)

    This might need a new upstream issue on Electron specifically for 64KB page support, since the 16KB fix may not cover it and the old issue (#35829) was closed. But I'm not 100% sure — someone more familiar with the codebase would know better.

    Hope this helps point things in the right direction!

  5. deepak1556 commented on Jan 26, 2026

    @deepak1556
    Collaborator

    The guard regions in V8 responsible for the crash in 16KB page size has been removed since Chromium 134, if this is still crashing on 64KB pages it must be a different cause. Please share the crash dumps to [email protected] following steps at https://github.com/microsoft/vscode/wiki/Native-Crash-Issues#creating-a-crash-report

  6. added
    info-needed
    freeze-slow-crash-leak
    linux
    and removed
    bug
    on Jan 26, 2026
  7. pawelmoll commented on Jan 26, 2026

    @pawelmoll
    Author

    I've just checked and the good news is that it works again:

    65536
    $ VSCode-linux-arm64/bin/code --version
    1.108.2
    c9d77990917f3102ada88be140d28b038d1dd7c7
    arm64
    

    so thank you, Florian Verdonck (@nojaf) for prompting me to have another go.

    If I may ask a question, Robo (@deepak1556)... Is there any chance to have the case covered by VSCode CI?

  8. deepak1556 commented on Jan 26, 2026

    @deepak1556
    Collaborator

    Thanks for verifying!

    Is there any chance to have the case covered by VSCode CI?

    Yes this is happening via #279402
    cc Dmitriy Vasyura (@dmitrivMS)

  9. removed
    info-needed
    on Jan 26, 2026
  10. locked and limited conversation to collaborators on Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

freeze-slow-crash-leaklinux

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions