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 hoarding triggered by the TPluginManager #14199

Closed
1 task done
pcanal opened this issue Dec 8, 2023 · 0 comments · Fixed by #14200
Closed
1 task done

Memory hoarding triggered by the TPluginManager #14199

pcanal opened this issue Dec 8, 2023 · 0 comments · Fixed by #14200

Comments

@pcanal
Copy link
Member

pcanal commented Dec 8, 2023

Check duplicate issues.

  • Checked for duplicates

Description

As seen in art-framework-suite/art#142 the stack trace below is hoarding memory:

==201374== 672,560 bytes in 6,005 blocks are definitely lost in loss record 29,240 of 29,249
==201374==    at 0x4C2B15C: malloc (vg_replace_malloc.c:431)
==201374==    by 0xF344E725: clang::Parser::AnnotateTemplateIdToken(clang::OpaquePtr<clang::TemplateName>, clang::TemplateNameKind, clang::CXXScopeSpec&, clang::SourceLocation, clang::UnqualifiedId&, bool, bool) (in /cvmfs/mu2e.opensciencegrid.org/artexternals/root/v6_28_06b/Linux64bit+3.10-2.17-e28-p3915-prof/lib/libCling.so.6.28.06)
==201374==    by 0xF33E28E0: clang::Parser::ParseOptionalCXXScopeSpecifier(clang::CXXScopeSpec&, clang::OpaquePtr<clang::QualType>, bool, bool, bool*, bool, clang::IdentifierInfo**, bool, bool) (in /cvmfs/mu2e.opensciencegrid.org/artexternals/root/v6_28_06b/Linux64bit+3.10-2.17-e28-p3915-prof/lib/libCling.so.6.28.06)
==201374==    by 0xF345DBD2: clang::Parser::TryAnnotateCXXScopeToken(bool) (in /cvmfs/mu2e.opensciencegrid.org/artexternals/root/v6_28_06b/Linux64bit+3.10-2.17-e28-p3915-prof/lib/libCling.so.6.28.06)
==201374==    by 0xF2A57896: cling::LookupHelper::findScope(llvm::StringRef, cling::LookupHelper::DiagSetting, clang::Type const**, bool) const (in /cvmfs/mu2e.opensciencegrid.org/artexternals/root/v6_28_06b/Linux64bit+3.10-2.17-e28-p3915-prof/lib/libCling.so.6.28.06)
==201374==    by 0xF29824CD: GetClassSharedLibsForModule (TCling.cxx:6957)
==201374==    by 0xF29824CD: TCling::GetClassSharedLibs(char const*) (TCling.cxx:7061)
==201374==    by 0xF2965186: TCling::ShallowAutoLoadImpl(char const*) (TCling.cxx:6119)
==201374==    by 0xF2983220: TCling::DeepAutoLoadImpl(char const*, std::unordered_set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, bool) (TCling.cxx:6172)
==201374==    by 0xF2983743: TCling::AutoLoad(char const*, bool) (TCling.cxx:6284)
==201374==    by 0xF29838A5: TCling::AutoLoad(std::type_info const&, bool) (TCling.cxx:6103)
==201374==    by 0x14EB2D47: TClass::GetClass(std::type_info const&, bool, bool, unsigned long, unsigned long) (TClass.cxx:3316)
==201374==    by 0x139AA957: GetClass (TClass.h:628)
==201374==    by 0x139AA957: GetClassHelper<std::tuple<char const*> > (TClass.h:644)
==201374==    by 0x139AA957: GetClass<std::tuple<char const*> > (TClass.h:654)
==201374==    by 0x139AA957: long TPluginHandler::ExecPluginImpl<char const*>(char const* const&) (TPluginManager.h:175)
==201374==    by 0x139A9B5C: ExecPlugin<char const*> (TPluginManager.h:218)
==201374==    by 0x139A9B5C: ROOT::Math::Factory::CreateMinimizer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (Factory.cxx:100)

Reproducer

See art-framework-suite/art#142

ROOT version

master, v6.30, v6.28

Installation method

from source

Operating system

All

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant