mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 12:45:17 -07:00
build(ci): let ASAN print tracebacks for more errors (SIGABORT, SIGILL)
This commit is contained in:
parent
b8ad1bfe8b
commit
87d0809545
2
.github/workflows/env.sh
vendored
2
.github/workflows/env.sh
vendored
@ -23,7 +23,7 @@ TSAN_OPTIONS=
|
||||
case "$FLAVOR" in
|
||||
asan)
|
||||
CLANG_SANITIZER=ASAN_UBSAN
|
||||
ASAN_OPTIONS="detect_leaks=1:check_initialization_order=1:log_path=$LOG_DIR/asan:intercept_tls_get_addr=0"
|
||||
ASAN_OPTIONS="detect_leaks=1:check_initialization_order=1:handle_abort=1:handle_sigill=1:log_path=$LOG_DIR/asan:intercept_tls_get_addr=0"
|
||||
UBSAN_OPTIONS="print_stacktrace=1 log_path=$LOG_DIR/ubsan"
|
||||
;;
|
||||
tsan)
|
||||
|
@ -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 nvim args...
|
||||
UBSAN_OPTIONS=print_stacktrace=1 ASAN_OPTIONS=log_path=/tmp/nvim_asan,handle_abort=1,handle_sigill=1 nvim args...
|
||||
```
|
||||
- If Neovim exits unexpectedly, check `/tmp/nvim_asan.{PID}` (or your preferred `log_path`) for log files with error messages.
|
||||
|
||||
|
@ -70,8 +70,8 @@ Create a directory to store logs:
|
||||
|
||||
Configure the sanitizer(s) via these environment variables:
|
||||
|
||||
# Change to detect_leaks=1 to detect memory leaks (slower).
|
||||
export ASAN_OPTIONS="detect_leaks=0:log_path=$HOME/logs/asan"
|
||||
# Change to detect_leaks=1 to detect memory leaks (slower, noisier).
|
||||
export ASAN_OPTIONS="detect_leaks=0:log_path=$HOME/logs/asan,handle_abort=1,handle_sigill=1"
|
||||
# Show backtraces in the logs.
|
||||
export UBSAN_OPTIONS=print_stacktrace=1
|
||||
export MSAN_OPTIONS="log_path=${HOME}/logs/msan"
|
||||
|
Loading…
Reference in New Issue
Block a user