if opt_sanitize == 'address' or opt_sanitize == 'address,undefined'
subdir('address-sanitizer-fiber-switching')
+ conf.set(
+ 'HAVE_LEAK_SANITIZER_INTERFACE',
+ cxx.has_header('sanitizer/lsan_interface.h'),
+ description: 'Have leak sanitizer inteface',
+ )
endif
if opt_sanitize != 'none'
threadWrapper(intptr_t const xargs)
{
#else
+ // If you see asan trouble in this function, run with
+ // ASAN_OPTIONS=detect_stack_use_after_return=0 or completely disable it by comping with
+ // -fsanitize-address-use-after-return=never. On debian clang versions up and including 14 do
+ // not seem to trigger a problem here, but starting from version 15 they do.
threadWrapper(transfer_t const theThread)
{
#endif