aboutsummaryrefslogtreecommitdiffstats
path: root/executor/subprocess.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-06-26 16:06:14 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-06-26 14:39:28 +0000
commit6271cc7c97723fed48c6a953662320a0effe1b19 (patch)
treee9de459c5637ceeaba601bfffb2106331f738727 /executor/subprocess.h
parentd0c45d930b994cc90babaabf83b094b74f666e19 (diff)
executor: disable lsan for exec subprocesses
Somehow it's very slow in syzbot arm64 image. This speeds up pkg/runtest tests a hundred of times.
Diffstat (limited to 'executor/subprocess.h')
-rw-r--r--executor/subprocess.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/executor/subprocess.h b/executor/subprocess.h
index ef4bd9656..4477cc482 100644
--- a/executor/subprocess.h
+++ b/executor/subprocess.h
@@ -40,8 +40,10 @@ public:
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};