Skip to content

Commit

Permalink
executor: disable lsan for exec subprocesses
Browse files Browse the repository at this point in the history
Somehow it's very slow in syzbot arm64 image.
This speeds up pkg/runtest tests a hundred of times.
  • Loading branch information
dvyukov committed Jun 26, 2024
1 parent d0c45d9 commit 6271cc7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions executor/subprocess.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ class Subprocess
fail("posix_spawnattr_setflags failed");

const char* child_envp[] = {
// Tell ASAN to not mess with our NONFAILING.
"ASAN_OPTIONS=handle_segv=0 allow_user_segv_handler=1",
// Tell ASAN to not mess with our NONFAILING and disable leak checking
// (somehow lsan is very slow in syzbot arm64 image and we are not very interested
// in leaks in the exec subprocess, it does not use malloc/new anyway).
"ASAN_OPTIONS=handle_segv=0 allow_user_segv_handler=1 detect_leaks=0",
// Disable rseq since we don't use it and we want to [ab]use it ourselves for kernel testing.
"GLIBC_TUNABLES=glibc.pthread.rseq=0",
nullptr};
Expand Down

0 comments on commit 6271cc7

Please sign in to comment.