build: add ubsan default options

Use print_stacktrace=1 for UBSAN by default.
This commit is contained in:
ii14
2023-04-22 03:27:32 +02:00
parent 33687f5e87
commit 4cc69f45b4
6 changed files with 17 additions and 7 deletions

View File

@@ -187,7 +187,7 @@ master build. To view the defects, just request access; you will be approved.
```
- When running Neovim, use
```
UBSAN_OPTIONS=print_stacktrace=1 ASAN_OPTIONS=log_path=/tmp/nvim_asan,handle_abort=1,handle_sigill=1 nvim args...
ASAN_OPTIONS=log_path=/tmp/nvim_asan nvim args...
```
- If Neovim exits unexpectedly, check `/tmp/nvim_asan.{PID}` (or your preferred `log_path`) for log files with error messages.