Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault at startup on arm linux #33596

Closed
rillian opened this issue Oct 12, 2023 · 13 comments · Fixed by brave/brave-core#20963
Closed

Segfault at startup on arm linux #33596

rillian opened this issue Oct 12, 2023 · 13 comments · Fixed by brave/brave-core#20963

Comments

@rillian
Copy link

rillian commented Oct 12, 2023

Description

Brave no longer launches on my Fedora aarch64 machine

Steps to Reproduce

  1. Follow https://brave.com/linux to install Brave beta on an rpm-based distro
  2. Launch Brave

@brave/qa-team please see #33596 (comment) re: making sure that Widevine is working.

Actual result:

$ brave-browser-nightly 
[4107:4107:1012/083955.241627:ERROR:policy_logger.cc(154)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(163) Cloud management controller initialization aborted as CBCM is not enabled.
[1012/083955.447407:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1012/083955.484423:ERROR:directory_reader_posix.cc(42)] opendir /home/giles/.config/BraveSoftware/Brave-Browser-Nightly/Crash Reports/attachments/30d5e582-e6af-4bc6-8921-d9b2d59590f0: No such file or directory (2)
[4142:4142:0100/000000.057798:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[4142:4142:0100/000000.498866:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[4142:4142:0100/000000.499113:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[4142:4142:0100/000000.499310:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[4142:4142:0100/000000.499553:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[4142:4142:0100/000000.499739:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[4142:4142:0100/000000.499914:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[4142:4142:0100/000000.500091:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[4144:4150:1012/083958.507583:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -3
[4142:4142:0100/000000.510130:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[4142:4142:0100/000000.510405:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[4142:4142:0100/000000.510848:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[4142:4142:0100/000000.511036:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[4142:4142:0100/000000.511222:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[4142:4142:0100/000000.511387:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[4142:4142:0100/000000.511502:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[4142:4142:0100/000000.511625:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
/usr/bin/brave-browser-nightly: line 48:  4107 Segmentation fault      (core dumped) "$HERE/brave" "$@"

Expected result:

Browser should launch normally.

Reproduces how often:

Always, staring sometime in the last week.

Brave version (brave://version info)

1.60.86

Version/Channel Information:

  • Can you reproduce this issue with the current release? 1.59.117 works as expected
  • Can you reproduce this issue with the beta channel? 1.60.86 crashes
  • Can you reproduce this issue with the nightly channel? 1.61.13 crashes

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields?
  • Does the issue resolve itself when disabling Brave Rewards?
  • Is the issue reproducible on the latest version of Chrome?

Miscellaneous Information:

This is up-to-date Fedora Linux 38 on aarch64

@waddon1
Copy link

waddon1 commented Nov 3, 2023

Also getting the same issue on Manjaro Aarch64 on 1.62.21 nightly

@pogmommy
Copy link

pogmommy commented Nov 3, 2023

Same issue on aarch64 debian after upgrading to 1.60.110 via apt, the flatpak version also will not launch. Downgrading to the apt version 1.59.124 worked.

$ brave-browser 
[1103/120215.792333:ERROR:file_io_posix.cc(152)] open /home/pogmommy/.config/BraveSoftware/Brave-Browser/Crash Reports/pending/f2c461b0-0668-4bb7-b154-a0e03e1076cb.lock: File exists (17)
[1103/120215.792408:ERROR:file_io_posix.cc(152)] open /home/pogmommy/.config/BraveSoftware/Brave-Browser/Crash Reports/pending/499b9305-71a5-49a3-bf6d-72845abdcfac.lock: File exists (17)
Gtk-Message: 12:02:15.835: Failed to load module "appmenu-gtk-module"
[8399:8399:1103/120215.951237:ERROR:policy_logger.cc(157)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(163) Cloud management controller initialization aborted as CBCM is not enabled.
[1103/120216.007141:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1103/120216.007182:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1103/120216.007610:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1103/120216.008113:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1103/120216.009776:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1103/120216.009805:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1103/120216.010322:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1103/120216.015359:ERROR:file_io_posix.cc(152)] open /home/pogmommy/.config/BraveSoftware/Brave-Browser/Crash Reports/pending/f2c461b0-0668-4bb7-b154-a0e03e1076cb.lock: File exists (17)
[1103/120216.015392:ERROR:file_io_posix.cc(152)] open /home/pogmommy/.config/BraveSoftware/Brave-Browser/Crash Reports/pending/499b9305-71a5-49a3-bf6d-72845abdcfac.lock: File exists (17)
[8438:8438:0100/000000.018013:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[8438:8438:0100/000000.555645:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[8438:8438:0100/000000.555660:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[8438:8438:0100/000000.555680:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[8438:8438:0100/000000.555688:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[8438:8438:0100/000000.555701:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[8438:8438:0100/000000.555708:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[8438:8438:0100/000000.555714:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[8438:8438:0100/000000.556025:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[8438:8438:0100/000000.556035:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[8438:8438:0100/000000.556042:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[8438:8438:0100/000000.556049:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[8438:8438:0100/000000.556055:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[8438:8438:0100/000000.556061:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[8438:8438:0100/000000.556070:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[8438:8438:0100/000000.556076:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
/usr/bin/brave-browser: line 48:  8399 Segmentation fault      (core dumped) "$HERE/brave" "$@"

@rillian
Copy link
Author

rillian commented Nov 9, 2023

Crashing on my librem5/PureOS as well now. Anyone know how to get symbols when one can't build locally?

@wknapik
Copy link
Contributor

wknapik commented Nov 9, 2023

cc @rebron

@rillian rillian changed the title Segfault on startup Fedora arm linux Segfault at startup on arm linux Nov 9, 2023
@SergeyZhukovsky SergeyZhukovsky self-assigned this Nov 13, 2023
@SergeyZhukovsky
Copy link
Member

SergeyZhukovsky commented Nov 13, 2023

The crash it seems related to Android Widevine work brave/brave-core#18958 and it crashes in that place on Linux arm64 https://github.com/brave/brave-core/blob/v1.61.69/browser/profiles/brave_renderer_updater.cc#L195. We don't support Widevine on Linux arm64 yet #33081, it's safe to make a temp fix for it.

@kjozwiak
Copy link
Member

kjozwiak commented Nov 13, 2023

@brave/qa-team quick note re: the above verifications. We'll get @rillian to help us verify the RC with arm64 once we get 1.60.x builds with the above. However, as per @SergeyZhukovsky, we'll need to ensure that Widevine is working as well. Technically it will be verified by default when running through our passes via https://github.com/brave/qa-resources/blob/master/WikiTemplate/Desktop/Reduced/wikitemplate-ReducedDesktop.md#widevine. However, still a good idea to double check and make sure Widevine is still working as expected.

A check on Win should be good enough hence adding the OS/Windows label.

@kjozwiak
Copy link
Member

The above requires 1.60.118 or higher for 1.60.x verification 👍

@rillian
Copy link
Author

rillian commented Nov 14, 2023

Confirming the startup issue is fixed with Brave beta v1.61.75 deb and rpm packages from the github releases page.

@rillian
Copy link
Author

rillian commented Nov 14, 2023

Confirming the startup issue is fixed with Brave v1.62.52 nightly published to the rpm package feed.

@btlechowski
Copy link

btlechowski commented Nov 15, 2023

Verified with

Brave 1.60.118 Chromium: 119.0.6045.163 (Official Build) (64-bit)
Revision b0599b790dbdfe28428202afe2b54758a044ccfc
OS Linux

Sanity checked Widevine

Netflix

image image

hbo

image image

@GeetaSarvadnya
Copy link

GeetaSarvadnya commented Nov 15, 2023

Verification PASSED on

Brave | 1.60.118 Chromium: 119.0.6045.163 (Official Build) (64-bit)
-- | --
Revision | b0599b790dbdfe28428202afe2b54758a044ccfc
OS | Windows 10 Version 22H2 (Build 19045.3570)

As per the comments from #33596 (comment), verified the sanity testing on Widevine also verified Netflix and Hbomax

Widevine_PASSED
  • Confirmed that Widevine settings is disabled by default
  • Confirm that Install and run google Widevine notfication is shown when any video is played via CNN.COM
  • Confirm that the Widevine settings is enabled once user Allow and install the Widevine via notification
  • Confirm that the Install and run google Widevine notfication is shown when user open any video via NETFLIX.COM
  • Confirm that user can play any videos on netflix after installing the Widevine via notification
  • Confirmed that Install and run google Widevine notfication is shown when user open any video via HBOMAX.COM
  • Confirm that user can play any videos on hbomax.com after installing the Widevine via notification
Example Example Example Example Example Example
image image image image image image

@rillian
Copy link
Author

rillian commented Nov 15, 2023

Confirming the startup issue is fixed with Brave release v1.60.118 rpm package from the github releases page.

@LaurenWags
Copy link
Member

thank you @rillian! 😄

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