1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

selftest: preforkrestartdc doesn't need gdb-backtraces

There are tests in this environment that kill processes with SEGV
signals, which causes a backtrace that is entirely spurious from a
debugging point of view.

We can turn that off, saving processor time and moments of developer
confusion.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: David Mulder <dmulder@suse.com>
This commit is contained in:
Douglas Bagnall 2021-02-11 22:19:31 +13:00 committed by David Mulder
parent 80faba100d
commit 9e19b148f6

View File

@ -2743,6 +2743,11 @@ sub setup_preforkrestartdc
return undef; return undef;
} }
# We treat processes in this environment cruelly, sometimes
# sending them SIGSEGV signals. We don't need gdb_backtrace
# dissecting these fake crashes in precise detail.
$env->{PLEASE_NO_GDB_BACKTRACE} = '1';
$env->{NSS_WRAPPER_MODULE_SO_PATH} = undef; $env->{NSS_WRAPPER_MODULE_SO_PATH} = undef;
$env->{NSS_WRAPPER_MODULE_FN_PREFIX} = undef; $env->{NSS_WRAPPER_MODULE_FN_PREFIX} = undef;