You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Electron segmentation fault on CentOS7 aarch64(arm64) #25387
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
if (current_cpu == "arm64") {
# Reduce the page size from 65536 in order to reduce binary size slightly
# by shrinking the alignment gap between segments. This also causes all
# segments to be mapped adjacently, which breakpad relies on.
ldflags += [ "-Wl,-z,**max-page-size=4096**" ]
print(ldflags)
}
Changing max page size from 4096 to 65536, fixed my issue.
Also running into this w/ CentOS 8: Output of uname -a: Linux [redacted] 5.4.17-2136.302.7.2.1.el8uek.aarch64 #2 SMP Tue Jan 18 12:11:39 PST 2022 aarch64 aarch64 aarch64 GNU/Linux.
This still seems to be an issue on CentOS 8 / RHEL 8 / Oracle Linux Server 8.6, with Electron 18.3.0, and the latest stable (19.0.0), and the latest beta (v20.0.0-beta.8).
Cypress users are affected by this as they try to use the linux-arm64 builds to test inside of A1 Ampere, more info: cypress-io/cypress#22820
@deepak1556 do you have any additional context on this issue? I see #34385 refs this
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
changed the title [-]Electron segmentation fault on CentOS7 aarch64(arm64)[/-][+][Bug]: Electron segmentation fault on CentOS7 aarch64(arm64)[/+]on Apr 2, 2023
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
Per #25387 (comment) - this isn't something Chromium currently supports correctly. Should they do so, we can revisit this, but i'm closing this out for now.
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
I got SIGTRAP dump when compiled chromium on Linux+ARM64 with 4kiB PAGESIZE, and run chromium on Linux+ARM64 with 64kiB PAGESIZE. If i compile chromium on Linux+ARM64 with 64kiB PAGESIZE, it'll not success, and i don't know way, have you ever meet this before?
if (current_cpu == "arm64") {
# Reduce the page size from 65536 in order to reduce binary size slightly
# by shrinking the alignment gap between segments. This also causes all
# segments to be mapped adjacently, which breakpad relies on.
ldflags += [ "-Wl,-z,**max-page-size=4096**" ]
print(ldflags)
}
Changing max page size from 4096 to 65536, fixed my issue.
Hi do you have a compiled version of electron, Thanks for your share
if (current_cpu == "arm64") {
# Reduce the page size from 65536 in order to reduce binary size slightly
# by shrinking the alignment gap between segments. This also causes all
# segments to be mapped adjacently, which breakpad relies on.
ldflags += [ "-Wl,-z,**max-page-size=4096**" ]
print(ldflags)
}
Changing max page size from 4096 to 65536, fixed my issue.
Hi do you have a compiled version of electron, Thanks for your share
Simple change compile scripts does not work. I had find there are quite a lot of code with 4096 hard code on it . but the code are not belong to electron, mybe chrominum
I had changed some of the code, and got a binary, it can simply run by with error when running https pages or call importCertificate
Activity
itas109 commentedon Sep 9, 2020
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
i think two way can resolve it :
bigben0123 commentedon Mar 19, 2021
In build/config/compiler
Changing max page size from 4096 to 65536, fixed my issue.
nornagon commentedon Apr 1, 2021
Can you attach a crash dump? A core dump will do.
abnerlee commentedon Jul 19, 2021
seems same error on 13.1.7, relates #21395
zachberger commentedon Mar 20, 2022
Same issue on Asahi linux which uses 16K pages
jesse-savary commentedon Apr 2, 2022
Also running into this w/ CentOS 8: Output of
uname -a:Linux [redacted] 5.4.17-2136.302.7.2.1.el8uek.aarch64 #2 SMP Tue Jan 18 12:11:39 PST 2022 aarch64 aarch64 aarch64 GNU/Linux.chore: backport a704c3a from chromium
chore: backport a704c3a from chromium (#34385)
flotwig commentedon Jul 15, 2022
This still seems to be an issue on CentOS 8 / RHEL 8 / Oracle Linux Server 8.6, with Electron 18.3.0, and the latest stable (19.0.0), and the latest beta (v20.0.0-beta.8).
Cypress users are affected by this as they try to use the
linux-arm64builds to test inside of A1 Ampere, more info: cypress-io/cypress#22820@deepak1556 do you have any additional context on this issue? I see #34385 refs this
Lemmingh commentedon Jul 23, 2022
It's said that:
However, Chromium seems to show no interest in 64 Ki page size in the foreseeable future:
Footnotes
https://dev.to/aws-heroes/postgresql-on-arm-default-page-size-matters-2n7a ↩
https://access.redhat.com/discussions/5966451#comment-2295711 ↩
https://chromium-review.googlesource.com/c/chromium/src/+/3545665 ↩
https://chromium-review.googlesource.com/c/chromium/src/+/3545740 ↩
github-actions commentedon Oct 31, 2022
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
7 remaining items
[-]Electron segmentation fault on CentOS7 aarch64(arm64)[/-][+][Bug]: Electron segmentation fault on CentOS7 aarch64(arm64)[/+]github-actions commentedon Jul 2, 2023
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
zebrapurring commentedon Jul 2, 2023
Bump
Z-eddy commentedon Sep 15, 2023
Bump,the same error
codebytere commentedon Oct 10, 2023
Per #25387 (comment) - this isn't something Chromium currently supports correctly. Should they do so, we can revisit this, but i'm closing this out for now.
chenamy2017 commentedon Mar 13, 2024
Bump,the same error.
Has anyone compiled the electron on arm64 with PAGESIZE=64K ? How to compile.
itas109 commentedon Mar 13, 2024
email to itas109#qq.com
Rtoax commentedon Apr 10, 2024
I got SIGTRAP dump when compiled chromium on Linux+ARM64 with 4kiB PAGESIZE, and run chromium on Linux+ARM64 with 64kiB PAGESIZE. If i compile chromium on Linux+ARM64 with 64kiB PAGESIZE, it'll not success, and i don't know way, have you ever meet this before?
liuhann commentedon Jun 18, 2024
Hi do you have a compiled version of electron, Thanks for your share
liuhann commentedon Jul 3, 2024
Simple change compile scripts does not work. I had find there are quite a lot of code with 4096 hard code on it . but the code are not belong to electron, mybe chrominum
I had changed some of the code, and got a binary, it can simply run by with error when running https pages or call importCertificate