I have some analysis code for ROOT, but I’m compiling it with g++ via rootcint.
I ran valgrind on it for a memcheck, and I’m getting a lot of output after the code has finished executing and ROOT is quit. I did have a few leaks that clearly existed in my code, but most of those were output during the code execution. I have the ROOT suppressions enabled, although it doesn’t seem to suppress almost any of my errors. (Could be a problem with my valgrind command? But the suppression file is called in its correct location.)
I checked a number of older posts on similar subjects, but I don’t have a good feel for what leaks are just part of ROOT that are intentionally not cleaned, or false positives. My feeling is I should get an expert opinion on the valgrind detected leaks that are not suppressed.
I’m happy to post my code, but that might take some explaining. At first, I just like to post my valgrind outputs, to see blindly if one can say these are standard things for ROOT or if I’m creating memory leaks in my code.
It’s not for the faint of heart, though. Almost 30,000 lines.
My ROOT version is slightly dated (5.24/00b). But there are other programs on my machine which prefer this version, so I’d prefer not to update right now.
gcc is 4.4.3.
OS is Gentoo Linux
The main program being called here is ana3.C. Only about ten of the reported leaks are directly descending from the program. I tried to fix all I could, but I’m new at this. So I feel like those are the most likely to be real leaks. The rest I have no idea about.
Any help would be greatly appreciated. Log file is attached.