From 51edc1bc553817ee5502307ad0dd64cf819b9327 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Fri, 28 Jun 2024 18:15:39 +0100 Subject: [PATCH] flake: enable abort_on_error for ASan So we get a coredump which we can inspect. Signed-off-by: Yuxuan Shui --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index e49c3ec0..06638028 100644 --- a/flake.nix +++ b/flake.nix @@ -64,7 +64,7 @@ # See: https://github.com/NixOS/nixpkgs/issues/287763 export LD_LIBRARY_PATH+=":/run/opengl-driver/lib" export UBSAN_OPTIONS="disable_coredump=0:unmap_shadow_on_exit=1:print_stacktrace=1" - export ASAN_OPTIONS="disable_coredump=0:unmap_shadow_on_exit=1" + export ASAN_OPTIONS="disable_coredump=0:unmap_shadow_on_exit=1:abort_on_error=1" ''; }); in rec {