Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@alexischr
Copy link
Contributor

@alexischr alexischr commented Feb 27, 2020

/cc @kdubau @lambdageek

Addresses #18715

Copy link
Member

@lambdageek lambdageek left a comment

Choose a reason for hiding this comment

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

looks ok.

  1. I don't like signal. Maybe dump_cause? argh, naming is difficult.
  2. The create_foo_breadcrumb functions should be less copy/pasted.
  3. What do you think about adding some kind of BreadcrumbType enum and using that to pick the file_for_whatever_bitmap function? 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?

@alexischr alexischr force-pushed the merp-signal-breadcrumb branch 2 times, most recently from 4e4de4a to 859c8d5 Compare March 2, 2020 17:59
For example, the system name of a signal ('segv') or 'MANAGED_EXCEPTION' are typical arguments.
@alexischr alexischr force-pushed the merp-signal-breadcrumb branch from 859c8d5 to 3436ce8 Compare March 2, 2020 18:10
@alexischr alexischr dismissed lambdageek’s stale review March 2, 2020 18:13

Updated with some refactoring & more palatable argument name. I did not go for the enum yet

@alexischr
Copy link
Contributor Author

@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);
Copy link
Contributor Author

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)

Copy link
Member

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.

@alexischr
Copy link
Contributor Author

@monojenkins build failed

@lambdageek lambdageek merged commit 0ec7957 into mono:master Mar 3, 2020
@alexischr
Copy link
Contributor Author

@monojenkins backport to 2020-02
@monojenkins backport to 2019-12

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.

2 participants