electron: [Bug]: Electron segmentation fault on CentOS7 aarch64(arm64)

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Electron Version:
    • 7.1.4
    • 10.1.1
  • Operating System:
    • centos 7.6 aarch64

Expected Behavior

Electron running normal

Actual Behavior

Electron failing with segmentation fault.

To Reproduce

wget https://github.com/electron/electron/releases/download/v10.1.1/electron-v10.1.1-linux-arm64.zip
unzip electron-v10.1.1-linux-arm64.zip
./electron
segmentation fault

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 20 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Same issue on Asahi linux which uses 16K pages

It’s said that:

Distributions, like CentOS, RedHat, or Oracle Linux, set the default page size to 64k ^1 ^redhat

However, Chromium seems to show no interest in 64 Ki page size in the foreseeable future:

The rare 64kb case is still not supported due to further changes needed to SlotSpanMetadata. ^chromium-3545665

SlotSpanMetadata is required to be 32 bits, however, with 64 KiB pages it requires ~34 bits. ^chromium-3545740

I think it is linux kernel’s PAGESIZE problem. PAGESIZE = 64k on cetos 7 aarch64 (redhat 7) but, PAGESIZE = 4K on other linux(such debian aarch64) PAGESIZE = 4K on centos 7 x86_64

$ getconf PAGESIZE
65535

i think two way can resolve it :

  • recompile centos 7 aarch64 linux kernel, change PAGESIZE 64K to PAGESIZE 4K
  • recomplire electron on centos 7 aarch64 with PAGESIZE 64K