mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-12 17:14:46 +02:00
ASan: log to tmp/unrealircd_asan.<pid> and attach this if the IRCd
crashes (has a core file) to the crash bug report. Also, disable leak detection since this is too noisy and would cause a core dump each time + bothering the user to submit a crash report + send this crashreport etc. We still enable this in our own tests though, but not for end-users.
This commit is contained in:
+2
-1
@@ -18,7 +18,8 @@ if [ "$1" = "start" ] ; then
|
||||
# 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:
|
||||
export ASAN_OPTIONS=abort_on_error=1:disable_coredump=0:unmap_shadow_on_exit=1
|
||||
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
|
||||
# ~/unrealircd/conf/unrealircd.conf does not.
|
||||
# If so, then assume a user-build and give the user a nice hint...
|
||||
|
||||
Reference in New Issue
Block a user