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

Memory leaks #6

Open
gipert opened this issue Jan 18, 2021 · 0 comments
Open

Memory leaks #6

gipert opened this issue Jan 18, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@gipert
Copy link
Owner

gipert commented Jan 18, 2021

Even after #5, there's a small memory leak I cannot fix. Here's the relevant Valgrind output, which seems to blame ROOT (but that's difficult to believe).

$ valgrind --leak-check=full --suppressions=/etc/root/valgrind-root.supp ../bin/gerda-factory phIIAfterLAr-2nbb-all-systematics.json
==707858== Memcheck, a memory error detector
==707858== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==707858== Using Valgrind-3.16.1 and LibVEX; rerun with -h for copyright info
==707858== Command: ../bin/gerda-factory phIIAfterLAr-2nbb-all-systematics.json
==707858==
...
==707858==
==707858== 11,374,736 (95,000 direct, 11,279,736 indirect) bytes in 95 blocks are definitely lost in loss record 10,617 of 10,617
==707858==    at 0x483ADEF: operator new(unsigned long) (vg_replace_malloc.c:342)
==707858==    by 0x4A5600A: TStorage::ObjectAlloc(unsigned long) (in /usr/lib/root/libCore.so)
==707858==    by 0x54C332A: ??? (in /usr/lib/root/libHist.so)
==707858==    by 0x53DAD73: TH1::Clone(char const*) const (in /usr/lib/root/libHist.so)
==707858==    by 0x135780: GerdaFastFactory::AddComponent(TH1 const*, float) (GerdaFastFactory.cc:37)
==707858==    by 0x11614A: main (gerda-factory.cc:307)
==707858==
==707858== LEAK SUMMARY:
==707858==    definitely lost: 95,016 bytes in 96 blocks
==707858==    indirectly lost: 11,279,736 bytes in 366 blocks
==707858==      possibly lost: 21,721,447 bytes in 9,769 blocks
==707858==    still reachable: 2,372,866 bytes in 21,252 blocks
==707858==                       of which reachable via heuristic:
==707858==                         newarray           : 24,952 bytes in 39 blocks
==707858==                         multipleinheritance: 31,072 bytes in 3 blocks
==707858==         suppressed: 84,811 bytes in 828 blocks
==707858== Reachable blocks (those to which a pointer was found) are not shown.
==707858== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==707858==
==707858== For lists of detected and suppressed errors, rerun with: -s
==707858== ERROR SUMMARY: 1036 errors from 1036 contexts (suppressed: 51693 from 274)

I'll leave this here for the record.

@gipert gipert added the bug Something isn't working label Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant