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.

Segmentation fault when launching a second window via terminal

See original GitHub issue

Description

Segmentation fault when launching a second window via terminal.

Steps to Reproduce

  1. Launch brave from terminal
  2. Open a new terminal window and launch a second window
  3. Console logs segmentation fault and exits but the second browser window is still opened

Actual result:

Release (Manjaro): No crash dump ID generated for release on Ubuntu

User namespaces are not detected as enabled on your system, brave will run with the sandbox disabled
Opening in existing browser session.
[106257:106257:0417/082009.710955:ERROR:sandbox_linux.cc(364)] InitializeSandbox() called with multiple threads in process gpu-process.
Segmentation fault (core dumped)

Beta: Crash Dump

brave-browser-beta 
--2019-04-17 08:46:19--  https://laptop-updates.brave.com/1/bc-crashes
Resolving laptop-updates.brave.com (laptop-updates.brave.com)... 151.101.21.7
Connecting to laptop-updates.brave.com (laptop-updates.brave.com)|151.101.21.7|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16 [text/html]
Saving to: ‘/dev/fd/4’

     0K  
 Crash dump id:  5ad446cca388b589 
                                                  100% 2.18M=0s

2019-04-17 08:46:19 (2.18 MB/s) - ‘/dev/fd/4’ saved [16/16]

Segmentation fault (core dumped)

Dev: Crash dump

brave-browser-dev
--2019-04-17 08:47:01--  https://laptop-updates.brave.com/1/bc-crashes
Resolving laptop-updates.brave.com (laptop-updates.brave.com)... 151.101.21.7
Connecting to laptop-updates.brave.com (laptop-updates.brave.com)|151.101.21.7|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16 [text/html]
Saving to: ‘/dev/fd/4’

     0K          
 Crash dump id:  16e3a3a988197e80 
                                          100% 2.06M=0s

2019-04-17 08:47:01 (2.06 MB/s) - ‘/dev/fd/4’ saved [16/16]

Segmentation fault (core dumped)

Expected result:

No segmentation fault to be shown when launching a second window via terminal

Reproduces how often:

Easy

Brave version (brave://version info)

Brave 0.62.51 Chromium: 73.0.3683.103 (Official Build) (64-bit)
Revision e82a658d8159cabbd4938c1660f9bb00b4a82a23-refs/branch-heads/3683@{#902}
OS Linux

Reproducible on current release:

  • Does it reproduce on brave-browser dev/beta builds? Yes

Website problems only:

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

Additional Information

Issue originally reported on community. https://community.brave.com/t/second-launch-gives-segmentation-fault/53664/5

cc: @fmarier @bbondy

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:18
  • Comments:21 (9 by maintainers)

github_iconTop GitHub Comments

8reactions
maximbazcommented, Jun 23, 2019

Workaround to make xdg-open work as expected is to make sure the executable that brave.desktop is calling always returns 0 exit code, for example make it execute a wrapper script like this one:

#!/bin/sh

/usr/bin/brave "$@" || true
7reactions
davidpodrebaraccommented, Apr 26, 2019

I have a similar problem, opening external links opens 3 new tabs with the same url. Opening links directly from the terminal results in segmentation fault, but it only opens 1 new tab.

Read more comments on GitHub >

github_iconTop Results From Across the Web

segmentation fault in a simple command line program
I am trying to create a simple program that calls cat with system() on a file location entered as a command argument. But...
Read more >
Identify what's causing segmentation faults (segfaults) - IU KB
A segmentation fault (aka segfault) is a common condition that causes programs to crash; they are often associated with a file named core...
Read more >
Running application ends with "Segmentation Fault"
A segmentation fault is the result of a memory access violation. The program has referred to a memory address outside of what was...
Read more >
26048 – console window does not show Segmentation fault
It just shows the program to have terminated. When the same program is run on command line, it will output "Segmentation Fault" and...
Read more >
Segmentation Fault With Secondary Particle Biasing ...
Please do you have any suggestions in this regards? I attached a screen shot of the gdb terminal taken just immediately after the...
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