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

Hack wrapper to work around segfault #3431

Merged
merged 1 commit into from
Sep 20, 2019

Conversation

fmarier
Copy link
Member

@fmarier fmarier commented Sep 14, 2019

Work-around for brave/brave-browser#4142 until the underlying crash is fixed.

Submitter Checklist:

Test Plan:

  1. Install the new brave-browser package.
  2. Make brave-browser the default browser (e.g. update-alternatives --config x-www-browser on Debian).
  3. Run xdg-open https://example.com and verify that it only opens one new tab and that it doesn't start another browser.

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

After-merge Checklist:

  • The associated issue milestone is set to the smallest version that the
    changes has landed on.
  • All relevant documentation has been updated.

@fmarier fmarier added this to the 0.72.x - Nightly milestone Sep 14, 2019
@fmarier fmarier self-assigned this Sep 14, 2019
@fmarier fmarier force-pushed the francois-work-around-segfault-4142 branch 2 times, most recently from d1f697d to e10c75d Compare September 20, 2019 20:30
The `brave` binary returns a non-zero error code and that causes
the wrapper to return a non-zero error code too. Since it's not
possible to override the error code with an `exec` call (`exec`
will terminate the shell immediately with a successful return
value), we need to keep the original shell around so that we can
hide the true return value of the `brave` binary.

This hack should be removed once we have fixed the crash.
@fmarier fmarier force-pushed the francois-work-around-segfault-4142 branch from e10c75d to daa14f1 Compare September 20, 2019 20:43
Copy link
Collaborator

@bridiver bridiver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved as short-term fix

@fmarier fmarier merged commit 80301ac into master Sep 20, 2019
@fmarier fmarier deleted the francois-work-around-segfault-4142 branch September 20, 2019 23:51
fmarier pushed a commit that referenced this pull request Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants