I'm trying to run libAsan within a Tomcat server which runs loaded C libraries, the main purpose is to identify memory leaks inside these libraries.
Whenever I try to enable the detect_leaks flag (set to 1, or remove from options), my application server is stuck initializing, I don't see any errors indicating any issue.
(With this flag turned off or set to 0, tomcat is running normally)
Any idea if LeakSanitizer is compatible with tomcat server running on linux, or where to look for potential issues ?
This is my configuration inside catalina.sh:
export LD_PRELOAD=/usr/lib64/libasan.so.5
export ASAN_OPTIONS=alloc_dealloc_mismatch=1:new_delete_type_mismatch=1:check_printf=1:detect_leaks=0:halt_on_error=0:detect_stack_use_after_return=1:strict_string_checks=1:log_path=/tmp/asan_log:verbosity=1
I'm trying to run libAsan within a Tomcat server which runs loaded C libraries, the main purpose is to identify memory leaks inside these libraries.
Whenever I try to enable the detect_leaks flag (set to 1, or remove from options), my application server is stuck initializing, I don't see any errors indicating any issue.
(With this flag turned off or set to 0, tomcat is running normally)
Any idea if LeakSanitizer is compatible with tomcat server running on linux, or where to look for potential issues ?
This is my configuration inside catalina.sh:
export LD_PRELOAD=/usr/lib64/libasan.so.5
export ASAN_OPTIONS=alloc_dealloc_mismatch=1:new_delete_type_mismatch=1:check_printf=1:detect_leaks=0:halt_on_error=0:detect_stack_use_after_return=1:strict_string_checks=1:log_path=/tmp/asan_log:verbosity=1