-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Valgrind reports leak when constructing TChain #13130
Comments
This is likely something to be added to the suppression file: jitting allocates and never deallocates. |
Indeed, @pcanal invested a lot of time to avoid these cases but we still have to allocate some memory on making lookups. |
This isn't jitting, and clang should not leak this. Please leave it open for me to look at in a couple of weeks. Thanks for the report! |
I get 0 bytes lost on Ubuntu 22.04 and 3b06c87 (valgrind 3.18) |
Just for the records, working with a software that uses ROOT as a library and switching on the address sanitiser in our unit tests, we get the following report with all
Using ROOT I am not sure this is exactly the same problem of this issue, but I did not want to open a new issue at first as in the description |
Thanks - could you
Thanks for investing your time here! |
@vepadulano , not clear from the conversation to me, but is the comment above about the suppression file and how cling allocates addressing your original issue? If yes,could you close this item? |
This seems another occurrence: https://root-forum.cern.ch/t/memory-leak-during-repeated-fitting/58299/16 that also gets solved when going into 6.30. So maybe a backport for 6.28 would be useful. |
I am closing since the behaviour is not reproducible. |
A reproducer was found and a new issue was opened: #16121 |
Check duplicate issues.
Description
I see
definitely lost: 8,904 bytes in 76 blocks
with valgrind in a few different places, which apparently all boil down to the following series of callsFull report from valgrind
valgrind_report.txt
Reproducer
ROOT was built with the following configuration
This is the reproducer
Compile and run with valgrind
ROOT version
master@1be2785
Installation method
built from source
Operating system
Fedora 37
Additional context
Compiler: GCC 12
I have arrived to the minimal reproducer above starting from the code in RSample.cxx which creates a temporary TChain in the constructor.
The text was updated successfully, but these errors were encountered: