Skip to content

Commit

Permalink
ASAN: use a larger signal stack.
Browse files Browse the repository at this point in the history
Avoids segfault in libunwind (see #17706).
  • Loading branch information
maleadt committed Jul 31, 2016
1 parent a6d643c commit 08c04a8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/signals-unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@
#define HAVE_TIMER
#endif

#if defined(JL_USE_INTEL_JITEVENTS)
unsigned sig_stack_size = SIGSTKSZ;
#elif defined(_CPU_AARCH64_)
// The default SIGSTKSZ causes stack overflow in libunwind.
#if defined(JL_USE_INTEL_JITEVENTS) || /* required by VTune */ \
defined(_CPU_AARCH64_) || defined(JL_ASAN_ENABLED) /* prevent overflow in libunwind */
#define sig_stack_size (1 << 16)
#else
#define sig_stack_size SIGSTKSZ
Expand Down

0 comments on commit 08c04a8

Please sign in to comment.