-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[2019-06][merp] Don't install SIGTERM handler in EnableMicrosoftTelemetry #17296
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1003,11 +1003,13 @@ dump_native_stacktrace (const char *signal, MonoContext *mctx) | |
| dump_for_merp = mono_merp_enabled (); | ||
| #endif | ||
|
|
||
| #ifndef DISABLE_STRUCTURED_CRASH | ||
| mini_register_sigterm_handler (); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should probably just be in the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't we want to install it if
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, I was misreading the |
||
| #endif | ||
|
|
||
| if (!dump_for_merp) { | ||
| #ifdef DISABLE_STRUCTURED_CRASH | ||
| leave = TRUE; | ||
| #else | ||
| mini_register_sigterm_handler (); | ||
| #endif | ||
| } | ||
|
|
||
|
|
||
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.
To avoid race conditions of installing the handler on multiple concurrent crashing threads?
To avoid the heap allocations in the crashing path (see the signal chaining)?
Uh oh!
There was an error while loading. Please reload this page.
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.
Suggest, perhaps, install the handler at the same time, but use a boolean to enable/disable it.
I'm just guessing.