-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[merp] Create a signal ('source') breadcrumb for the crash dump process #19072
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
Conversation
lambdageek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks ok.
- I don't like
signal. Maybedump_cause? argh, naming is difficult. - The
create_foo_breadcrumbfunctions should be less copy/pasted. - What do you think about adding some kind of
BreadcrumbTypeenum and using that to pick thefile_for_whatever_bitmapfunction? that way we don't have to copy/paste too much if we need to add an additional breadcrumb once we know some additional stuff that we want to preserve?
4e4de4a to
859c8d5
Compare
For example, the system name of a signal ('segv') or 'MANAGED_EXCEPTION' are typical arguments.
859c8d5 to
3436ce8
Compare
Updated with some refactoring & more palatable argument name. I did not go for the enum yet
|
@monojenkins build pkg |
| create_stage_mark_file (void) | ||
| file_for_dump_reason_breadcrumb (const char *directory, const char *dump_reason, gchar *buff, size_t sizeof_buff) | ||
| { | ||
| g_snprintf (buff, sizeof_buff, "%s%scrash_reason_%s", directory, G_DIR_SEPARATOR_S, dump_reason); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw both of these breadcrumbs should be dump_stage and dump_reason (since we now have crash_stage breadcrumbs from managed exception reporting)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think colloquially an unhandled managed exception is a "crash" too. I wouldn't worry too much about the distinction in the file names.
|
@monojenkins build failed |
|
@monojenkins backport to 2020-02 |
/cc @kdubau @lambdageek
Addresses #18715