question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v1.27.105 Linux - /opt/brave/crashpad_handler needs chmod 755 (rwxr-xr-x) permissions

See original GitHub issue

Description

Linux client - /opt/brave/crashpad_handler needs chmod 755 (rwxr-xr-x) before brave will start.

Steps to Reproduce

  1. Download and Install v1.27.105 binary from linux zip.
  2. run brave.
  3. watch it fail with [13127:13127:0715/180320.407098:FATAL:double_fork_and_exec.cc(131)] execv /opt/brave/crashpad_handler: Permission denied (13)

Actual result:

[13127:13127:0715/180320.407098:FATAL:double_fork_and_exec.cc(131)] execv /opt/brave/crashpad_handler: Permission denied (13)

Expected result:

Brave starts and runs like every stable version before this.

Reproduces how often:

Easily reproduced. Brave will fail to start if this is not changed.

Brave version (brave://version info)

1.27.105

Version/Channel Information:

  • Can you reproduce this issue with the current release? Yes

Other Additional Information:

Typing “sudo chmod 755 /opt/brave/crashpad_handler” resolves the issue, and manually setting permissions on the file was added to this version’s ebuild in Gentoo to work-around this issue in the package.

Miscellaneous Information:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
wknapikcommented, Jul 23, 2021

Yeah, same here, can’t repro on up-to-date Arch Linux with the same zip file. The file in question is executable and the browser works as expected.

2reactions
mariosprcommented, Jul 23, 2021

@jason-oliveira Hi Jason, thanks for the report but I’m a bit confused because I couldn’t reproduce the problem myself, not even using exactly the same link you provide in the description (https://github.com/brave/brave-browser/releases/download/v1.27.105/brave-browser-1.27.105-linux-amd64.zip), see below:

Downloading the ZIP file

$ wget https://github.com/brave/brave-browser/releases/download/v1.27.105/brave-browser-1.27.105-linux-amd64.zip
--2021-07-23 11:48:22--  https://github.com/brave/brave-browser/releases/download/v1.27.105/brave-browser-1.27.105-linux-amd64.zip
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-releases.githubusercontent.com/110178895/3d8f08c9-11df-45fc-b6fc-bcde1cb75da3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210723%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210723T094626Z&X-Amz-Expires=300&X-Amz-Signature=1e58da5de1cdcc83237c2713ec5351ca3b335176383f21739e2e43b0d8b00019&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=110178895&response-content-disposition=attachment%3B%20filename%3Dbrave-browser-1.27.105-linux-amd64.zip&response-content-type=application%2Foctet-stream [following]
--2021-07-23 11:48:22--  https://github-releases.githubusercontent.com/110178895/3d8f08c9-11df-45fc-b6fc-bcde1cb75da3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210723%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210723T094626Z&X-Amz-Expires=300&X-Amz-Signature=1e58da5de1cdcc83237c2713ec5351ca3b335176383f21739e2e43b0d8b00019&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=110178895&response-content-disposition=attachment%3B%20filename%3Dbrave-browser-1.27.105-linux-amd64.zip&response-content-type=application%2Foctet-stream
Resolving github-releases.githubusercontent.com (github-releases.githubusercontent.com)... 185.199.110.154, 185.199.109.154, 185.199.108.154, ...
Connecting to github-releases.githubusercontent.com (github-releases.githubusercontent.com)|185.199.110.154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 123222747 (118M) [application/octet-stream]
Saving to: ‘brave-browser-1.27.105-linux-amd64.zip’

brave-browser-1.27.105-linux-amd64.zip                                 100%[==========================================================================================================================================================================>] 117,51M  8,29MB/s    in 14s     

2021-07-23 11:48:37 (8,22 MB/s) - ‘brave-browser-1.27.105-linux-amd64.zip’ saved [123222747/123222747]

Unzipping the file

$ unzip brave-browser-1.27.105-linux-amd64.zip -d brave-browser-1.27.105-linux-amd64
Archive:  brave-browser-1.27.105-linux-amd64.zip
   creating: brave-browser-1.27.105-linux-amd64/cron/
  inflating: brave-browser-1.27.105-linux-amd64/cron/brave-browser  
  inflating: brave-browser-1.27.105-linux-amd64/v8_context_snapshot.bin  
  inflating: brave-browser-1.27.105-linux-amd64/brave_200_percent.pak  
   creating: brave-browser-1.27.105-linux-amd64/swiftshader/
  inflating: brave-browser-1.27.105-linux-amd64/swiftshader/libGLESv2.so  
  inflating: brave-browser-1.27.105-linux-amd64/swiftshader/libEGL.so  
  inflating: brave-browser-1.27.105-linux-amd64/resources.pak  
  inflating: brave-browser-1.27.105-linux-amd64/default-app-block  
  inflating: brave-browser-1.27.105-linux-amd64/brave_resources.pak  
  inflating: brave-browser-1.27.105-linux-amd64/crashpad_handler  
   creating: brave-browser-1.27.105-linux-amd64/MEIPreload/
  inflating: brave-browser-1.27.105-linux-amd64/MEIPreload/manifest.json  
  inflating: brave-browser-1.27.105-linux-amd64/MEIPreload/preloaded_data.pb  
 extracting: brave-browser-1.27.105-linux-amd64/product_logo_24.png  
  inflating: brave-browser-1.27.105-linux-amd64/libGLESv2.so  
  inflating: brave-browser-1.27.105-linux-amd64/product_logo_256.png  
  inflating: brave-browser-1.27.105-linux-amd64/brave-browser  

  [...]

 extracting: brave-browser-1.27.105-linux-amd64/product_logo_48.png  
  inflating: brave-browser-1.27.105-linux-amd64/brave  
 extracting: brave-browser-1.27.105-linux-amd64/product_logo_16.png  
 extracting: brave-browser-1.27.105-linux-amd64/product_logo_128.png  
  inflating: brave-browser-1.27.105-linux-amd64/libvk_swiftshader.so  
 extracting: brave-browser-1.27.105-linux-amd64/product_logo_32.png 

Listing the uncompressed files

$ cd brave-browser-1.27.105-linux-amd64/
$ ls -l 
total 244916
-rwxr-xr-x 1 mario mario 202233352 jul 15 00:40 brave
-rw-r--r-- 1 mario mario    492817 jul 15 00:40 brave_100_percent.pak
-rw-r--r-- 1 mario mario    556382 jul 15 00:40 brave_200_percent.pak
-rwxr-xr-x 1 mario mario      1831 jul 15 00:40 brave-browser
-rw-r--r-- 1 mario mario  14664283 jul 15 00:40 brave_resources.pak
-rw-r--r-- 1 mario mario    785814 jul 15 00:40 chrome_100_percent.pak
-rw-r--r-- 1 mario mario   1346406 jul 15 00:40 chrome_200_percent.pak
-rwxr-xr-x 1 mario mario    237200 jul 15 00:40 chrome-sandbox
-rwxr-xr-x 1 mario mario   1041672 jul 15 00:40 crashpad_handler     # NOTE IT HAS PERMISSIONS 755 ALREADY SET
drwxr-xr-x 2 mario mario      4096 jul 15 00:40 cron
-rw-r--r-- 1 mario mario       494 jul 15 00:40 default-app-block
-rw-r--r-- 1 mario mario  10144432 jul 15 00:40 icudtl.dat
-rw-r--r-- 1 mario mario    244928 jul 15 00:40 libEGL.so
-rw-r--r-- 1 mario mario   7230192 jul 15 00:40 libGLESv2.so
-rw-r--r-- 1 mario mario   4140984 jul 15 00:40 libvk_swiftshader.so
-rw-r--r-- 1 mario mario     16726 jul 15 00:40 LICENSE
drwxr-xr-x 2 mario mario      4096 jul 15 00:40 locales
drwxr-xr-x 2 mario mario      4096 jul 15 00:40 MEIPreload
-rw-r--r-- 1 mario mario      9427 jul 15 00:40 product_logo_128.png
-rw-r--r-- 1 mario mario       668 jul 15 00:40 product_logo_16.png
-rw-r--r-- 1 mario mario      1137 jul 15 00:40 product_logo_24.png
-rw-r--r-- 1 mario mario     25383 jul 15 00:40 product_logo_256.png
-rw-r--r-- 1 mario mario      1617 jul 15 00:40 product_logo_32.png
-rw-r--r-- 1 mario mario      4852 jul 15 00:40 product_logo_32.xpm
-rw-r--r-- 1 mario mario      2739 jul 15 00:40 product_logo_48.png
-rw-r--r-- 1 mario mario      3900 jul 15 00:40 product_logo_64.png
drwxr-xr-x 4 mario mario      4096 jul 15 00:40 resources
-rw-r--r-- 1 mario mario   7280176 jul 15 00:40 resources.pak
drwxr-xr-x 2 mario mario      4096 jul 15 00:40 swiftshader
-rw-r--r-- 1 mario mario    164366 jul 15 00:40 v8_context_snapshot.bin
-rw-r--r-- 1 mario mario       107 jul 15 00:40 vk_swiftshader_icd.json
-rwxr-xr-x 1 mario mario     37394 jul 15 00:40 xdg-mime
-rwxr-xr-x 1 mario mario     33273 jul 15 00:40 xdg-settings

Launching brave without issues

$ ./brave-browser --user-data-dir=/tmp/brave-browser-1.27.105

…which results on this: Screenshot from 2021-07-23 12-01-10

@jason-oliveira How are you uncompressing the ZIP file? FWIW I got exactly the same results using unzip from the command line as well as GNOME Archive Manager 3.38.1, so I’m really surprised you’re getting different results. It sounds as something like umask was messing up your permissions but still very surprising.

If you could provide additional information in how you exactly extract things, and which versions of software components you’re using that would be helpful. Thanks and sorry not to have an answer for you right now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Linux permissions: making sense of 755 and rwxr-xr-x
Changing Linux permissions using symbolic notation. Using the chmod command, one can add or remove permissions from a file or a directory. The ......
Read more >
Modify permissions to -rwxr-xr-x [duplicate] - Ask Ubuntu
No you will need to run the command using the change permission program chmod like so: chmod 755 filename. Explained: change the permission...
Read more >
chmod - file permissions
Use the chmod (change mode) command to change permissions on files and directories. ... The file permissions for the directory public_html are rwxr-xr-x...
Read more >
What is the Meaning of chmod 755, and How to execute and ...
In Linux, chmod is a built-in command that manages the access permission of file objects. The number defined after chmod represents the permissions....
Read more >
What does file permission 755 mean | Edureka Community
When you perform chmod 755 filename command you allow everyone to read and execute the file, the owner is allowed to write to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found