Skip to content

Electron segmentation fault on CentOS/RHEL 8 arm64 #21395

Closed

Description

@bugraturhan

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.3
    • 8.0.0-beta
    • 9.0.0-nightly.20191202
  • Operating System:

    • Centos/RHEL 8 aarch64

Expected Behavior

Electron running

Actual Behavior

Electron failing with segmentation fault.

To Reproduce

  • Run npm install electron
  • Run electron binary

Additional Information

Output from valgrind:

==1233== Memcheck, a memory error detector
==1233== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==1233== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==1233== Command: ./electron
==1233==
==1233==
==1233== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==1233==  Access not within mapped region at address 0x8
==1233==    at 0x68AADBC: _dl_relocate_object (in /usr/lib64/ld-2.28.so)
==1233==    by 0x68A3AEB: dl_main (in /usr/lib64/ld-2.28.so)
==1233==    by 0x68B50BB: _dl_sysdep_start (in /usr/lib64/ld-2.28.so)
==1233==    by 0x68A1903: _dl_start_final (in /usr/lib64/ld-2.28.so)
==1233==    by 0x68A1B7F: _dl_start (in /usr/lib64/ld-2.28.so)
==1233==    by 0x68A1087: ??? (in /usr/lib64/ld-2.28.so)

Also tried downloading v8.0.0-beta.4 zip file from releases tab and 9.0.0-nightly.20191202 from npm. Result is the same.

Activity

  1. ckerr commented on Dec 5, 2019

    @ckerr
    Member

    At first glance, this seems like it might be a system issue rather than an Electron issue: Electron's CI runs Electron arm64 tests for every release (and, indeed, before every PR is merged). You may want to try re-running this test under a different login and/or a different system to see if there is some local setting or configuration that might be causing the issue?

  2. added
    blocked/need-info ❌
    on Dec 5, 2019
  3. bugraturhan commented on Dec 6, 2019

    @bugraturhan
    Author

    I've tried a few more things, this time with different Linux distributions/configurations.

    • Tested on a clean CentOS install (in a VM this time, fwiw) and it did segfault

    • Did a clean install of Ubuntu 18.04 ARM and it did not segfault

    • Created a few basic Debian-based root filesystems with debootstrap using buster/testing/sid (which updates libc) and different kernels

      • It did not segfault on a Ubuntu kernel
      • It did segfault on a CentOS/RHEL kernel

    It might be a configuration issue indeed, maybe related to some default setting on CentOS/RHEL. If you (or anyone else) can help me what to look for I can provide more information. Or I can run some commands/tests on physical/virtual machines and provide output. Quite frankly, I'm at a loss here.

  4. codebytere commented on Jan 23, 2020

    @codebytere
    Member

    I'm closing this as there has been no further follow-up to the above, and this is not reproducible for maintainers either in CI or on local machines. Should something change, we can revisit this.

  5. bugraturhan commented on Jan 23, 2020

    @bugraturhan
    Author

    this is not reproducible for maintainers either in CI or on local machines

    I don't understand where this is coming from. It is trivially easy to reproduce, just run the arm64 binary on RHEL8.

  6. itas109 commented on Jun 29, 2020

    @itas109

    Electron segmentation fault on CentOS 7 arm64 also.
    May be a problem with chromium,because chromium is the same problem.

  7. centerorbit commented on Dec 19, 2020

    @centerorbit

    I had an electron build on a linux (debian with x11 and openbox) edge device, while SSH'd into it, I would get a 'segmentation fault' error if I tried to start the app remotely without first setting the display environment variable: export DISPLAY=:0.

    Just dropping this here in case it helps others.

  8. maxonxie commented on Jan 13, 2021

    @maxonxie

    Electron segmentation fault on CentOS 7 arm64 also.
    May be a problem with chromium,because chromium is the same problem.

    maybe need recompile electron, chromium segmentation because pagesize=64k on centos aarch64 , but chromium pagesize=4k , so rebuild chromium on centos can work.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked/need-info ❌

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions