Skip to content

Commit

Permalink
Enable abort_on_error for ASAN; (microsoft#161)
Browse files Browse the repository at this point in the history
Abort on error ensures that ASAN calls abort(), which is signals SIGABRT, which, when uncaught, creates a core dump.
  • Loading branch information
mxms0 authored Feb 20, 2020
1 parent 6f2d068 commit ce212c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .azure/scripts/run-executable.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit ce212c7

Please sign in to comment.