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

[mono] Exit early to prevent endless loop when crashing #105249

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/mono/mono/mini/mini-posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,8 @@ dump_native_stacktrace (const char *signal, MonoContext *mctx)
g_assertion_disable_global (assert_printer_callback);
} else {
g_async_safe_printf ("\nAn error has occurred in the native fault reporting. Some diagnostic information will be unavailable.\n");

g_async_safe_printf ("\nExiting early due to double fault.\n");
_exit (-1);
}

#ifdef HAVE_BACKTRACE_SYMBOLS
Expand Down Expand Up @@ -847,11 +848,6 @@ dump_native_stacktrace (const char *signal, MonoContext *mctx)
// If we can't fork, do as little as possible before exiting
}

if (double_faulted) {
g_async_safe_printf("\nExiting early due to double fault.\n");
_exit (-1);
}

#endif
#else
#ifdef HOST_ANDROID
Expand Down
Loading