Make crash reports reliable in multithreaded case

This commit is contained in:
Justine Tunney 2024-05-23 19:23:42 -07:00
parent 3b0ea2db4d
commit bf3531de81
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
3 changed files with 10 additions and 6 deletions

View file

@ -191,6 +191,8 @@ static relegated char *GetSymbolName(struct SymbolTable *st, int symbol) {
static relegated void __oncrash_impl(int sig, struct siginfo *si,
ucontext_t *ctx) {
if (sig != SIGTRAP && sig != SIGQUIT)
sigaddset(&ctx->uc_sigmask, sig);
#pragma GCC push_options
#pragma GCC diagnostic ignored "-Walloca-larger-than="
long size = __get_safe_size(10000, 4096);