key4hep / key4hep-spack

A Spack recipe repository of Key4hep software.
10 stars 24 forks source link

MarlinReco broken with weird ROOT error on several stacks #612

Closed tmadlener closed 4 months ago

tmadlener commented 4 months ago

This is a resurfacing of https://github.com/key4hep/key4hep-spack/issues/558, I think. However, it is no longer in LCFIPlus, but rather in MarlinReco, resp. at least one processor from it.

I have so far reproduced this on the following stacks:

Things seem to work on the Ubuntu 22.04 nightlies

"Interestingly" it crashes gdb when running in there, so I am not entirely sure what is going on and where and why things are breaking. The partial backtrace that I was able to retrieve locally is the following:

0x00007ffff231a003 in clang::Sema::getTemplateDepth(clang::Scope*) const () from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
(gdb) bt
#0  0x00007ffff231a003 in clang::Sema::getTemplateDepth(clang::Scope*) const () from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
#1  0x00007ffff1dd12f9 in clang::Sema::EnterTemplatedContext(clang::Scope*, clang::DeclContext*) ()
   from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
#2  0x00007ffff1e9202e in clang::Sema::ActOnReenterTemplateScope(clang::Decl*, llvm::function_ref<clang::Scope* ()>) ()
   from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
#3  0x00007ffff1ae493b in clang::Parser::ReenterTemplateScopes(clang::Parser::MultiParseScope&, clang::Decl*) ()
   from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
#4  0x00007ffff1b13036 in clang::Parser::ParseLexedMethodDeclaration(clang::Parser::LateParsedMethodDeclaration&) ()
   from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
#5  0x00007ffff1b0849d in clang::Parser::ParseLexedMethodDeclarations(clang::Parser::ParsingClass&) ()
   from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
#6  0x00007ffff1a5eedf in clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, clang::SourceLocation, clang::ParsedAttributesWithRange&, unsigned int, clang::Decl*) ()
   from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
#7  0x00007ffff1a610d8 in clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext, clang::ParsedAttributesWithRange&) () from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
#8  0x00007ffff1a3b70a in clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*) () from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
#9  0x00007ffff1afdc24 in clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributesWithRange&, clang::ParsingDeclSpec&, clang::AccessSpecifier) ()
   from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
#10 0x00007ffff1afe432 in clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributesWithRange&, clang::ParsingDeclSpec*, clang::AccessSpecifier) [clone .part.0] ()
   from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
#11 0x00007ffff1b059d7 in clang::Parser::ParseExternalDeclaration(clang::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) ()
   from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
#12 0x00007ffff1a55c19 in clang::Parser::ParseInnerNamespace(llvm::SmallVector<clang::Parser::InnerNamespaceInfo, 4u> const&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) () from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
#13 0x00007ffff1a5ab57 in clang::Parser::ParseNamespace(clang::DeclaratorContext, clang::SourceLocation&, clang::SourceLocation) ()
   from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
#14 0x00007ffff1a42998 in clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributesWithRange&, clang::SourceLocation*) ()
   from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
#15 0x00007ffff1b054fb in clang::Parser::ParseExternalDeclaration(clang::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) ()
   from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
#16 0x00007ffff1b06a65 in clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, bool) ()
   from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
#17 0x00007ffff11f0a10 in cling::IncrementalParser::ParseInternal(llvm::StringRef) () from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
#18 0x00007ffff11f1a20 in cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) ()
   from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
#19 0x00007ffff1154bf6 in cling::Interpreter::parseForModule(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
   from /home/tmadlener/work/.spack/spackages/root/6.30.06/skylake-ubuntu22.04-gcc12.3.0/ymnj77t/lib/root/libCling.so
tmadlener commented 4 months ago

Closing this again because it seems to have vanished again. One observation that I made is that I was running out of disk quota on the EL9 machine I tested this, and it might be related, because after freeing up some space, things started working again.