compile trinitycore with -DASAN=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
start core with:
ASAN_OPTIONS=halt_on_error=0:verbosity=1:log_path=worldasan/worldasan:detect_stack_use_after_return=1 LSAN_OPTIONS=verbosity=1:log_threads=1 ./worldserver
enjoy your valgrind like debug without slowing your server like hell.
More read https://github.com/google/sanitizers/wiki/AddressSanitizer