From a8d7ae83fb9ed979006af25cb0dd6a12f3b95b70 Mon Sep 17 00:00:00 2001 From: Max <628527+Maximus-@users.noreply.github.com> Date: Tue, 11 Feb 2020 14:55:46 -0800 Subject: [PATCH] Added `disable_coredump=0` environment variable (#127) This environment variable tells ASAN to use `madvise` to indicate to the kernel not to include reserved-but-not-commited memory in core dumps. --- .azure/scripts/run-executable.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure/scripts/run-executable.ps1 b/.azure/scripts/run-executable.ps1 index c37d7bc31..e30b05199 100644 --- a/.azure/scripts/run-executable.ps1 +++ b/.azure/scripts/run-executable.ps1 @@ -142,7 +142,7 @@ function Start-Executable { } } else { $pinfo.FileName = "bash" - $pinfo.Arguments = "-c `"ulimit -c unlimited && $($Path) $($Arguments) && echo Done`"" + $pinfo.Arguments = "-c `"ulimit -c unlimited && ASAN_OPTIONS=disable_coredump=0 $($Path) $($Arguments) && echo Done`"" $pinfo.WorkingDirectory = $LogDir } }