You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Crash reporting on Linux is incompatible with sandbox #23124
On Linux, Electron uses breakpad, as opposed to crashpad which is the crash reporting tool on macOS and Windows. Breakpad requires manually initializing the crash reporter in every process to be monitored, including renderers. Initializing the crash reporter in the renderer currently requires calling crashReporter.start from within the renderer, which can only be done from JavaScript. Initializing the crash reporter requires performing privileged operations, such as installing signal handlers and writing to the filesystem. Thus, when the crash reporter is initialized on Linux in the renderer process, if the sandbox is enabled, the renderer process crashes.
IMO, this is also a good thing for the API, because it would reduce the differences between the crash reporter API on Linux vs. macOS/Windows, and it would mean that crashReporter could become a main-process-only module. It is, however, a breaking change.
Activity
deepak1556 commentedon Apr 15, 2020
💯
This would also eliminate another subtle bug users can run into on windows, if you start the crash reporter in the render process before the crash reporter on browser process , you can mess up the connection pipe to crashpad client https://github.com/electron/electron/blob/master/shell/common/crash_reporter/crash_reporter_win.cc#L91