Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running LeakSanitizer with Tomcat server #1844

Open
waseem-mq opened this issue Jan 26, 2025 · 0 comments
Open

Running LeakSanitizer with Tomcat server #1844

waseem-mq opened this issue Jan 26, 2025 · 0 comments

Comments

@waseem-mq
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant