From ce212c758e4ee9cbf7ed9c6a99a469271ed523a8 Mon Sep 17 00:00:00 2001 From: Max <628527+Maximus-@users.noreply.github.com> Date: Wed, 19 Feb 2020 16:30:26 -0800 Subject: [PATCH] Enable abort_on_error for ASAN; (#161) Abort on error ensures that ASAN calls abort(), which is signals SIGABRT, which, when uncaught, creates a core dump. --- .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 2139995fa..7e923c3af 100644 --- a/.azure/scripts/run-executable.ps1 +++ b/.azure/scripts/run-executable.ps1 @@ -145,7 +145,7 @@ function Start-Executable { } } else { $pinfo.FileName = "bash" - $pinfo.Arguments = "-c `"ulimit -c unlimited && ASAN_OPTIONS=disable_coredump=0 $($Path) $($Arguments) && echo Done`"" + $pinfo.Arguments = "-c `"ulimit -c unlimited && ASAN_OPTIONS=disable_coredump=0:abort_on_error=1 $($Path) $($Arguments) && echo Done`"" $pinfo.WorkingDirectory = $LogDir } }