1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-12 17:14:46 +02:00

Disable address sanitizer (ASan) now that we are preparing for 5.0.0 stable.

This can still be enabled during ./Config by answering to the last question:
--with-asan
But it is no longer enabled by default since it causes a slowdown of X and
increases memory by a factor Y.
This commit is contained in:
Bram Matthys
2019-12-05 20:16:44 +01:00
parent bf61973a6d
commit d9166bd62d
3 changed files with 10 additions and 19 deletions
+2 -4
View File
@@ -14,10 +14,8 @@ if [ "$1" = "start" ] ; then
if [ -r $PID_FILE ] ; then
mv -f $PID_FILE $PID_BACKUP
fi
# We use AddressSanitizer in development builds, but ASan does not dump core
# by default because older gcc/clang might dump a 16TB core file.
# We explicitly enable it here. Note that this only applies to 5.0.0-alpha
# and 5.0.0-beta releases and explicit --with-asan development builds:
# When built with --with-asan, ASan does not dump core by default because
# older gcc/clang might dump a 16TB core file. We explicitly enable it here.
export ASAN_OPTIONS="abort_on_error=1:disable_coredump=0:unmap_shadow_on_exit=1:log_path=@TMPDIR@/unrealircd_asan:detect_leaks=0"
# Check if ~/Unrealxxx/unrealircd.conf exists but the file