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

app.relaunch crashes under sandboxed environment #7738

Closed
CharlieHess opened this issue Oct 25, 2016 · 6 comments
Closed

app.relaunch crashes under sandboxed environment #7738

CharlieHess opened this issue Oct 25, 2016 · 6 comments

Comments

@CharlieHess
Copy link
Contributor

  • Electron version: 1.3.7+
  • Operating system: macOS

When your entitlements are set to run from the sandbox, code like this:

app.relaunch();
app.exit(0);
process.exit(0);

Will trigger the following crash:

Could not set sandbox profile data: Operation not permitted (1)

crash-report.txt

@lipis
Copy link

lipis commented Nov 9, 2016

Anything new with this one?! No pressure.. just curious :)

@oldj
Copy link

oldj commented Nov 10, 2016

I got the same error, and found something here:

It is also not possible to call sandbox_init() more than once. If you attempt this, the kernel will report a sandbox violation "deny forbidden-sandbox-reinit" and kill the process. It is not possible to avoid this error; if a Sandbox MAC label has been applied to the process, and another one is attempted, then it reports the violation:

I do not know if this related?

@herrmannplatz
Copy link
Contributor

herrmannplatz commented Mar 8, 2017

Still present in 1.6.3. Are you interested in more logs?

@mat1th
Copy link

mat1th commented Mar 23, 2017

Maybe this issue is related #8957. And this issue is fixed in the latest release with pull request #8971.

@zcbenz
Copy link
Member

zcbenz commented May 31, 2017

I'm closing this issue since it is reported to have been fixed by #8971.

@zcbenz zcbenz closed this as completed May 31, 2017
@atomrc
Copy link

atomrc commented Jul 16, 2018

Hey guys.

I am still experiencing this issue with electron v1.7.4 when calling app.relaunch(); app.exit();.
@CharlieHess Can you confirm that v1.6.4 fixed the issue for you?
(since #8971 is supposed to be in v1.6.4).

The problem seems to occur with a signed version of the app.

Here is my crash log
crashlog.wire.txt

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

No branches or pull requests

8 participants