-
Notifications
You must be signed in to change notification settings - Fork 78
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
General Crash Reporting questions #365
Comments
@RichardLitt - thanks for these great questions!
I guess nodejs/node (core), nodejs/help (help) too, but probably same set of folks will answer, so this place looks great!
Probably if you could expand a little here? I am able to see multiple cases, but better wait for your clarification rather than guessing.
No, the report is fully part of node core. The original idea was from https://www.npmjs.com/package/node-report which now is maintained under nodejs organization, but the current functionality that is exposed through the said flag is fully part of the nodejs/node project with no third party dependency
code: https://github.com/nodejs/node/blob/master/src/node_report.h
I guess so, though I haven't tried. You might need to export NODE_OPTIONS with the report flags, in the shell where you spin up the app
No known issues with containers storing report logs. The said issue seems to be different.
They are same.
Yes. (may be some expansion may help, if anyone wants to?) Is there a way to add a plugin to N-API or nan in order to compile crash reports? cc @nodejs/n-api
we are trying to build one, please review #295 I hope I provided answers to some, but feel free to expand on wherever things lack, I or other can help explaining |
An unhandled Promise rejection will not exit the Node.js process by default. There's a flag to set this behavior though ( Native (C++) crashes will also cause the process to exit. |
Thank you, @mmarchini and @gireeshpunathil! This is really quite helpful. I'm following up with my team on all of these, and will get back to you! I apologise for the delay here. :) |
@gireeshpunathil Thank you, again. I took a look at #295, and left a comment there thinking how I can move that forward. Hope it helps! As for my questions above - I think your answers actually answered the questions for the team I was working with. As this isn't actionable, I am going to close it. I hope others are able to find use out of this, too. If any of this could or should be merged into any FAQ-like docs (should we make an FAQ.md doc?) to hep others out, let me know. |
Looks like a great idea to me. Shall we discuss this in the WG? (probably needs an issue in itself) |
Let me know if it is. Happy to stub out a PR. |
Thanks all for being on the call yesterday and for being willing to answer my questions around Node crash reporting. Specifically, I am interested in a few things. I want to get better knowledge of how crash reporting works, and whether or not I can send crash reports to a third party. I'm interesting in solutions to how users get and send their crash reports from Node and Electron (which I realize is out of scope for this project) to developers, especially when there are Node native plugins involved.
--experimental-report
use a third party vendor to create reports? Is it possible to choose a different module or vendor to create crash reports?--experimental-report
in an Electron app? Are there issues with containers storing these logs Diagnostic report on fatal error does not respect settings node#31576? Are these the same question?If any of these questions unintelligible or phrased badly, it's possibly because my lack of knowledge makes framing poor. Let me know if that seems to be the case!
The text was updated successfully, but these errors were encountered: