cc-wrapper-test: add workaround for asan allocation error

Miminal program fail with address sanitizer error failed to allocate 0x0 (0) bytes of SetAlternateSignalStack
https://bugzilla.redhat.com/show_bug.cgi?id=1950244
This commit is contained in:
Nick Cao
2022-12-25 09:19:28 +01:00
committed by Rick van Schijndel
parent 42cd6aebe4
commit e419aa8283
+1 -1
View File
@@ -71,7 +71,7 @@ in stdenv.mkDerivation {
${lib.optionalString sanitizersWorking ''
printf "checking whether sanitizers are fully functional... ">&2
$CC -o sanitizers -fsanitize=address,undefined ${./sanitizers.c}
${emulator} ./sanitizers
ASAN_OPTIONS=use_sigaltstack=0 ${emulator} ./sanitizers
''}
touch $out