-
Notifications
You must be signed in to change notification settings - Fork 1k
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
LeakSanitizer not working in gcc 4.8.2 #699
Comments
It's hard to say without an example. Note that leak detector is disabled on 32-bit platforms as it's considered to not be reliable there. |
Just to check, could you try with
? |
The code: compile: g++ -fsanitize=address -o 1 /tmp/1.cpp |
Is it related to the libasan's version ? |
Yes, AFAIK LSan is available in GCC 4.9+. |
gcc-4_8-branch doesn't even contain libsanitizer/lsan/ directory. Please try more recent GCC versions. |
Let me try gcc 4.9. Thanks a lot! |
Closing then. |
I'm using Here is an interesting bit (bug?) with gcc 4.9.2 though. |
@rootkea lsan is enabled as part of asan, so if you have |
Hm, it seems that for gcc 4.9 LSan is disabled by default when using with ASan. Use |
I did |
I have the same problem with rootkea |
First I just hard code a memory leak in the program. After I compiled the binary with -fsanitize=address. It showed nothing. Is it normal situation or Did I miss something?
The text was updated successfully, but these errors were encountered: