Skip to content

VSCode doesn't start on aarch64/arm64 RHEL8 #174505

Closed as not planned
Closed as not planned

Description

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

  • VS Code Version: code-1.75.1-1675892189 or code-insiders-1.76.0-1676438994 in the examples below, but older versions behaved the same way
  • OS Version: aarch64 (aka arm64) RHEL8, more details below

Steps to Reproduce:

  1. Get an aarch64 aka arm64 system running RHEL 8. For example I've used a "Standard D2pls v5" VM in Azure. Detailed information below.
  2. Install latest arm64/aarch64 rpm with VS Code or VS Code Insider.
  3. Try running code or code-insider and see how it crashes with SIGTRAP.

Important note:

the same versions of VS Code work fine on aarch64 Ubuntu 22.04 and (!!!) RHEL 9. One important difference immediately coming to my mind is page size. Ubuntu always kept 4kb pages as on x86, while RHEL 7 and 8 are using 64kb page size by default. Then RHEL 9 reverted back to 4 kb... And we've seen (long in the past) problems with Javascript JIT engines running on non-4kb-page systems, both Mozilla's SpiderMonkey and Google's V8. If your Electron wrapper is using an affected version of V8, it may be the "simplest" explanation of the problem.

Examples:

[azureuser@vscode-test-rhel8 ~]$ sudo rpm -i code-1.75.1-1675892189.el7.aarch64.rpm 
[azureuser@vscode-test-rhel8 ~]$ code
/usr/bin/code: line 62: 28694 Trace/breakpoint trap   (core dumped) ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" --ms-enable-electron-run-as-node "$@"
[azureuser@vscode-test-rhel8 ~]$ code --disable-extensions
/usr/bin/code: line 62: 28709 Trace/breakpoint trap   (core dumped) ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" --ms-enable-electron-run-as-node "$@"
[azureuser@vscode-test-rhel8 ~]$ sudo rpm -i code-insiders-1.76.0-1676438994.el7.aarch64.rpm 
[azureuser@vscode-test-rhel8 ~]$ code-insiders 
/usr/bin/code-insiders: line 62: 28744 Trace/breakpoint trap   (core dumped) ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" --ms-enable-electron-run-as-node "$@"
[azureuser@vscode-test-rhel8 ~]$ code-insiders --disable-extensions
/usr/bin/code-insiders: line 62: 28758 Trace/breakpoint trap   (core dumped) ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" --ms-enable-electron-run-as-node "$@"

Detailed information about the system:

[azureuser@vscode-test-rhel8 ~]$ lsb_release -a
LSB Version:	:core-4.1-aarch64:core-4.1-noarch
Distributor ID:	RedHatEnterprise
Description:	Red Hat Enterprise Linux release 8.6 (Ootpa)
Release:	8.6
Codename:	Ootpa
[azureuser@vscode-test-rhel8 ~]$ curl -s -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance/compute?api-version=2021-02-01" | jq
{
  "azEnvironment": "AzurePublicCloud",
  "customData": "",
  "evictionPolicy": "",
  "isHostCompatibilityLayerVm": "false",
  "licenseType": "",
  "location": "westeurope",
  "name": "vscode-test-rhel8",
  "offer": "rhel-arm64",
  "osProfile": {
    "adminUsername": "azureuser",
    "computerName": "vscode-test-rhel8",
    "disablePasswordAuthentication": "true"
  },
  "osType": "Linux",
  "placementGroupId": "",
  "plan": {
    "name": "",
    "product": "",
    "publisher": ""
  },
  "platformFaultDomain": "0",
  "platformUpdateDomain": "0",
  "priority": "",
  "provider": "Microsoft.Compute",
  "publicKeys": [
    {
      "keyData": "ssh-rsa xxx\n",
      "path": "/home/azureuser/.ssh/authorized_keys"
    }
  ],
  "publisher": "redhat",
  "resourceGroupName": "vscode-test",
  "resourceId": "/subscriptions/4024882c-a819-44ea-ba29-01dfea79e88e/resourceGroups/vscode-test/providers/Microsoft.Compute/virtualMachines/vscode-test-rhel8",
  "securityProfile": {
    "secureBootEnabled": "false",
    "virtualTpmEnabled": "false"
  },
  "sku": "8_6-arm64",
  "storageProfile": {
    "dataDisks": [],
    "imageReference": {
      "id": "",
      "offer": "rhel-arm64",
      "publisher": "redhat",
      "sku": "8_6-arm64",
      "version": "latest"
    },
    "osDisk": {
      "caching": "ReadWrite",
      "createOption": "FromImage",
      "diffDiskSettings": {
        "option": ""
      },
      "diskSizeGB": "64",
      "encryptionSettings": {
        "enabled": "false"
      },
      "image": {
        "uri": ""
      },
      "managedDisk": {
        "id": "/subscriptions/4024882c-a819-44ea-ba29-01dfea79e88e/resourceGroups/vscode-test/providers/Microsoft.Compute/disks/vscode-test-rhel8_disk1_2db5418ac5f74084a99612dd16c2d714",
        "storageAccountType": "Premium_LRS"
      },
      "name": "vscode-test-rhel8_disk1_2db5418ac5f74084a99612dd16c2d714",
      "osType": "Linux",
      "vhd": {
        "uri": ""
      },
      "writeAcceleratorEnabled": "false"
    },
    "resourceDisk": {
      "size": "0"
    }
  },
  "subscriptionId": "4024882c-a819-44ea-ba29-01dfea79e88e",
  "tags": "",
  "tagsList": [],
  "userData": "",
  "version": "8.6.2022060901",
  "vmId": "b49cd070-da6d-4bfb-a9aa-1834e7368da5",
  "vmScaleSetName": "",
  "vmSize": "Standard_D2pls_v5",
  "zone": ""
}

Activity

  1. DeepblueLam commented on Aug 3, 2023

    @DeepblueLam

    The same problem :

    [opc@vscli ~]$ code tunnel
    /usr/bin/code: line 62: 1146992 Trace/breakpoint trap   (core dumped) ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" --ms-enable-electron-run-as-node "$@"
    

    NodeJs Ver:

    [opc@vscli ~]$ node -v
    v18.14.2
    

    Linux Ver:

    Linux vscli 5.4.17-2136.321.4.1.el8uek.aarch64 #2 SMP Thu Jul 20 01:00:34 PDT 2023 aarch64 aarch64 aarch64 GNU/Linux
    
  2. deepak1556 commented on Dec 5, 2023

    @deepak1556
    Collaborator
  3. added
    *out-of-scope
    on Dec 5, 2023
  4. pawelmoll commented on Jul 2, 2024

    @pawelmoll
    Author

    Change making Chromium work on aarch64/arm64 Linux with 64k pages has been just merged upstream:

    chromium/chromium@a0ac9e3

    Can this issue be reopened or should I open a new one?

  5. nojaf commented on Sep 23, 2025

    @nojaf
    Contributor

    Hello Paweł Moll (@pawelmoll), what is the latest update on this?
    Did this ever get resolved?

  6. jgiannuzzi commented on Sep 25, 2025

    @jgiannuzzi

    I can confirm that linux-arm64 v1.97.0 works on both 4k and 64k pages kernel (tested with Ubuntu 24.04's 6.8.0-84-generic and 6.8.0-84-generic-64k kernels.

    However v1.104.1 crashes on the 64k pages kernel on the same system, which seems like a regression!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*out-of-scope

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions