flake: set UBSAN_OPTIONS so it's visible by default

Looks like a lot of ubsan violations are silent if neither
print_stacktrace nor abort_on_error is enabled.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2024-06-28 18:11:35 +01:00
parent 562529fefc
commit 12fbcb0c0f
No known key found for this signature in database
GPG Key ID: D3A4405BE6CC17F4
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@
# Workaround a NixOS limitation on sanitizers:
# 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"
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"
'';
});