From e419aa82837d755174fdfdb94038d30b3b383a91 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Fri, 2 Dec 2022 14:57:27 +0800 Subject: 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 --- pkgs/test/cc-wrapper/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/test/cc-wrapper') diff --git a/pkgs/test/cc-wrapper/default.nix b/pkgs/test/cc-wrapper/default.nix index b7c99cd5c87f0..6fd7d9f45db87 100644 --- a/pkgs/test/cc-wrapper/default.nix +++ b/pkgs/test/cc-wrapper/default.nix @@ -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 -- cgit 1.4.1