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

chore: add V8 crash information to crashReporter #24771

Merged
merged 2 commits into from Jul 30, 2020

Conversation

codebytere
Copy link
Member

Description of Change

This PR restores our use of a custom V8 fatal error handler with the purpose of improving crash reports for crashes originating in V8. When a v8 crash occurs, the message and location will be added as extra parameters to the crash report for more effective debugging.

cc @MarshallOfSound

Checklist

Release Notes

Notes: Added V8 crash message and location information to crashReport parameters.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jul 29, 2020
Copy link
Member

@MarshallOfSound MarshallOfSound left a comment

Choose a reason for hiding this comment

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

Fantastic stuff 🥳

shell/common/api/electron_api_v8_util.cc Outdated Show resolved Hide resolved
shell/common/node_bindings.cc Show resolved Hide resolved
shell/common/node_bindings.cc Outdated Show resolved Hide resolved
@codebytere codebytere changed the title feat: add V8 crash information to crashReporter chore: add V8 crash information to crashReporter Jul 29, 2020
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jul 30, 2020
@MarshallOfSound MarshallOfSound merged commit 948cc08 into master Jul 30, 2020
@release-clerk
Copy link

release-clerk bot commented Jul 30, 2020

Release Notes Persisted

Added V8 crash message and location information to crashReport parameters.

@MarshallOfSound MarshallOfSound deleted the restore-fatalerrorcb branch July 30, 2020 02:04
@trop
Copy link
Contributor

trop bot commented Jul 30, 2020

I was unable to backport this PR to "10-x-y" cleanly;
you will need to perform this backport manually.

@trop trop bot removed the target/10-x-y label Jul 30, 2020
@trop
Copy link
Contributor

trop bot commented Jul 30, 2020

I was unable to backport this PR to "9-x-y" cleanly;
you will need to perform this backport manually.

@trop
Copy link
Contributor

trop bot commented Aug 5, 2020

@codebytere has manually backported this PR to "9-x-y", please check out #24864

@trop
Copy link
Contributor

trop bot commented Aug 5, 2020

@codebytere has manually backported this PR to "10-x-y", please check out #24866

Comment on lines +148 to +149
volatile int* zero = nullptr;
*zero = 0;
Copy link
Member

Choose a reason for hiding this comment

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

Hm, why introduce new crash code rather than calling ElectronBindings::Crash()?

Copy link
Member Author

Choose a reason for hiding this comment

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

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.

None yet

3 participants