-
Notifications
You must be signed in to change notification settings - Fork 1.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
Feature Request ASan: suppress indirect leaks #1250
Comments
Just curious: why do you think it would be useful? |
It is useful in cases where you have one direct leak yielding a myriad of indirect leaks. I stumbled over such a case yesterday and it was horrible to deal with. First I had to enlarge the scrollback buffer of my terminal, run the binary again, and always scroll up to find the direct leak. Also, direct leaks and indirect leaks have no real visual distinction, so I could have missed another direct leak in between of all those indirect leaks. In my case it would not have been only marginally useful, it would have helped a lot to have such an option. In hindsight, I probably should have redirected the error output into a file or pipe through
I cannot tell. Instead of adding another |
Note that lsan prints all direct leaks first, and only then prints indirect ones. I am happy to keep this request open in case more users want to ask for the same. |
This is an important note! That means that I can get a good result by using the |
Cool! Closing, but feel free to reopen if there is a use case. |
There are such use cases - see for instance openssl/openssl#22303 (comment) |
At OpenSSL we are having a hard time working around the limitations of So please re-open this issue. |
Here is an example how extremely bulky and inefficient the mem leak output can be |
Since this issue (for whatever reason) was not re-opened within reasonable time, I revived it in #1712. |
A nice feature of the AddressSanitizer/LeakSanitizer is that it can distinguish direct from indirect leaks. It would be great if it was possible to suppress the output of indirect leaks (instead only an informational note like "Output of 1337 indirect leaks omitted." should be printed).
The text was updated successfully, but these errors were encountered: