Skip to content

Commit

Permalink
Fix segfault while profiling multitasking
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Nov 6, 2021
1 parent 2ece1cd commit 564ddfe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/signals-unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,8 @@ void usr2_handler(int sig, siginfo_t *info, void *ctx)
if (ct == NULL)
return;
jl_ptls_t ptls = ct->ptls;
if (ptls == NULL)
return;
int errno_save = errno;
sig_atomic_t request = jl_atomic_exchange(&ptls->signal_request, 0);
#if !defined(JL_DISABLE_LIBUNWIND)
Expand Down

0 comments on commit 564ddfe

Please sign in to comment.