neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 24aebbb3de83ef57c01a92ee6315eb8a6e15e402
parent b8ad1bfe8bc23ed5ffbfe43df5fda3501f1d2802
Author: bfredl <bjorn.linse@gmail.com>
Date:   Fri, 10 Feb 2023 22:32:44 +0100

Merge pull request #21887 from bfredl/asanterror

build(ci): let ASAN print tracebacks for more errors (SIGABORT, SIGILL)
Diffstat:
M.github/workflows/env.sh | 2+-
MCONTRIBUTING.md | 2+-
Msrc/nvim/README.md | 4++--
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/env.sh b/.github/workflows/env.sh @@ -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) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md @@ -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. diff --git a/src/nvim/README.md b/src/nvim/README.md @@ -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"