• Marko Mäkelä's avatar
    MDEV-16660: Increase the DEFAULT_THREAD_STACK for ASAN · f5fdb9ce
    Marko Mäkelä authored
    To allow cmake -DWITH_ASAN=ON to work out of the box when using
    newer compilers, we must increase the default thread stack size.
    
    By design, AddressSanitizer will allocate some "sentinel" areas in
    stack frames so that it can better catch buffer overflows, by trapping
    access to memory addresses that reside between stack-allocated variables.
    
    Apparently, some parameters related to this have been changed
    recently, possibly to allow -fsanitize=address to catch more errors.
    f5fdb9ce
my_pthread.h 27.5 KB