fix: avoid startup crash when V8 sandbox is disabled#49210
Conversation
|
Please follow the steps here to edit and re-export the existing patch https://github.com/electron/electron/blob/main/docs/development/patches.md#editing-an-existing-patch |
Hello @deepak1556 , Sorry if this is a basic question, but I’m not entirely sure how this process works. The instructions say: Editing an existing patch I assume this means I need to run gclient sync and then modify the same files that the existing patch touches. However, I’m unsure on how the tooling knows which specific patch I’m editing. The instructions also mention: Which commit SHA is this referring to?
I apologise if this is obvious, I’m a bit lost on the workflow here. Also, I’m currently in transit (flying from Asia to Europe), so I won’t be able to update this pull request until Friday. Thanks in advance for your help. |
|
Using build-tools:
|
|
Everything should be fine now. Please let me know if I missed something. |
This is probably obvious, but just to make it explicit for anyone reading this: the V8 Sandbox requires a 64-bit system so it should be safe to replace |
|
@david-metrica, could you update this PR to have signed commits? This repo enforces commit signatures, so the lack of them in this PR blocks merging here. |
5cad60a to
b5c7ee2
Compare
|
@dsanders11 Sorry! I didn't notice that! It should be fine now. Let me know if I am missing anything else. |
|
@david-metrica could you rebase this? then we can get it merged :) |
9d04895 to
daa5f8a
Compare
|
@codebytere Please check. It should be fine now. |
|
@david-metrica can you rebase one more time? There was an issue on main that has now been resolved. |
daa5f8a to
a40bea2
Compare
@jkleinsc @codebytere Done! |
|
Release Notes Persisted
|
|
I have automatically backported this PR to "41-x-y", please check out #49504 |
|
I have automatically backported this PR to "40-x-y", please check out #49505 |
|
/trop run backport-to 40-x-y |
|
The backport process for this PR has been manually initiated - sending your PR to |
|
I have automatically backported this PR to "40-x-y", please check out #49884 |
Description of Change
Fixes #49199
This fixes startup crash in custom builds where V8 sandbox is disabled.
32-bit builds do not enable the V8 sandbox, so checking ARCH_CPU_32_BIT alongside !V8_ENABLE_SANDBOX is redundant.
For more information refer to:
#49199 (Issue where this was solved)
#48699 (Same problem but the issue was unresolved)
Checklist
npm testpassesRelease Notes
notes: Fixed startup crash when V8 sandbox is disabled.