mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
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:
parent
42cd6aebe4
commit
e419aa8283
@ -71,7 +71,7 @@ in stdenv.mkDerivation {
|
|||||||
${lib.optionalString sanitizersWorking ''
|
${lib.optionalString sanitizersWorking ''
|
||||||
printf "checking whether sanitizers are fully functional... ">&2
|
printf "checking whether sanitizers are fully functional... ">&2
|
||||||
$CC -o sanitizers -fsanitize=address,undefined ${./sanitizers.c}
|
$CC -o sanitizers -fsanitize=address,undefined ${./sanitizers.c}
|
||||||
${emulator} ./sanitizers
|
ASAN_OPTIONS=use_sigaltstack=0 ${emulator} ./sanitizers
|
||||||
''}
|
''}
|
||||||
|
|
||||||
touch $out
|
touch $out
|
||||||
|
Loading…
Reference in New Issue
Block a user