cmssw: root fwlite interactive plot for PackedCandidates segfaults
this was initially noticed in CMSSW_13_0_9, but is also reproduced in CMSSW_13_2_0_pre2
local version on cmsdev34:
FWLiteEnabler::enable();
e = new TChain("Events");
e->Add("/build/slava77/RawReference/Muon0/Run2023D-PromptReco-v1/MINIAOD/11189a7c-8a53-4ecf-b1bd-2351a0d1e91b.root");
e->SetAlias("p", "patPackedCandidates_packedPFCandidates__RECO.obj");
e->Draw("p.phi():p.eta()", "p.fromPV()>0&&p.hasTrackDetails()&&p.pt()>1", "", 10);
crashes
adding more or less variables or reading a remote copy of the file root://cms-xrd-global.cern.ch//store/data/Run2023D/Muon0/MINIAOD/PromptReco-v1/000/369/956/00000/11189a7c-8a53-4ecf-b1bd-2351a0d1e91b.root sometimes succeeds
There are clang/cling warnings/errors preceding the crash, but some of them are present also in non-crashing variant. The crashing variant seems to most consistently have this right before the crash
In file included from TrackingToolsPatternTools_xr dictionary payload:86:
/cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/src/TrackingTools/PatternTools/interface/TrackConstraintAssociation.h:19:45: error: typedef redefinition with different types ('pair<...>' vs 'pair<...>')
typedef std::pair<GlobalPoint, GlobalError> VertexConstraint;
^
TrackingToolsPatternTools_xr dictionary forward declarations' payload:30:45: note: previous definition is here
typedef std::pair<GlobalPoint, GlobalError> VertexConstraint __attribute__((annotate("$clingAutoload$TrackingTools/PatternTools/interface/TrackConstraintAssociation.h"))) ;
^
*** Break *** segmentation violation
The stack trace follows:
===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0 0x00007f4e4df9e60c in waitpid () from /lib64/libc.so.6
#1 0x00007f4e4df1bf62 in do_system () from /lib64/libc.so.6
#2 0x00007f4e4ecc605c in TUnixSystem::StackTrace() () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/lcg/root/6.26.11-fec5b250e1cd56b91a094709de26e5b8/bin/../lib/libCore.so
#3 0x00007f4e4ecc3755 in TUnixSystem::DispatchSignals(ESignals) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/lcg/root/6.26.11-fec5b250e1cd56b91a094709de26e5b8/bin/../lib/libCore.so
#4 <signal handler called>
#5 0x00007f4e4b7feeec in clang::CXXRecordDecl::getLambdaCallOperator() const () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/external/slc7_amd64_gcc11/lib/libCling.so
#6 0x00007f4e4935be18 in clang::RecursiveASTVisitor<cling::(anonymous namespace)::StaticVarCollector>::TraverseLambdaExpr(clang::LambdaExpr*, llvm::SmallVectorImpl<llvm::PointerIntPair<clang::Stmt*, 1u, bool, llvm::PointerLikeTypeTraits<clang::Stmt*>, llvm::PointerIntPairInfo<clang::Stmt*, 1u, llvm::PointerLikeTypeTraits<clang::Stmt*> > > >*) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/external/slc7_amd64_gcc11/lib/libCling.so
#7 0x00007f4e493582c5 in clang::RecursiveASTVisitor<cling::(anonymous namespace)::StaticVarCollector>::TraverseStmt(clang::Stmt*, llvm::SmallVectorImpl<llvm::PointerIntPair<clang::Stmt*, 1u, bool, llvm::PointerLikeTypeTraits<clang::Stmt*>, llvm::PointerIntPairInfo<clang::Stmt*, 1u, llvm::PointerLikeTypeTraits<clang::Stmt*> > > >*) [clone .constprop.0] () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/external/slc7_amd64_gcc11/lib/libCling.so
#8 0x00007f4e49354415 in clang::RecursiveASTVisitor<cling::(anonymous namespace)::StaticVarCollector>::TraverseDecl(clang::Decl*) [clone .part.0] () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/external/slc7_amd64_gcc11/lib/libCling.so
#9 0x00007f4e49354cce in clang::RecursiveASTVisitor<cling::(anonymous namespace)::StaticVarCollector>::TraverseDeclStmt(clang::DeclStmt*, llvm::SmallVectorImpl<llvm::PointerIntPair<clang::Stmt*, 1u, bool, llvm::PointerLikeTypeTraits<clang::Stmt*>, llvm::PointerIntPairInfo<clang::Stmt*, 1u, llvm::PointerLikeTypeTraits<clang::Stmt*> > > >*) [clone .constprop.0] () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/external/slc7_amd64_gcc11/lib/libCling.so
#10 0x00007f4e493582c5 in clang::RecursiveASTVisitor<cling::(anonymous namespace)::StaticVarCollector>::TraverseStmt(clang::Stmt*, llvm::SmallVectorImpl<llvm::PointerIntPair<clang::Stmt*, 1u, bool, llvm::PointerLikeTypeTraits<clang::Stmt*>, llvm::PointerIntPairInfo<clang::Stmt*, 1u, llvm::PointerLikeTypeTraits<clang::Stmt*> > > >*) [clone .constprop.0] () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/external/slc7_amd64_gcc11/lib/libCling.so
#11 0x00007f4e4935859b in cling::DeclUnloader::VisitFunctionDecl(clang::FunctionDecl*) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/external/slc7_amd64_gcc11/lib/libCling.so
#12 0x00007f4e4932ac74 in cling::TransactionUnloader::unloadDeserializedDeclarations(cling::Transaction*, cling::DeclUnloader&) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/external/slc7_amd64_gcc11/lib/libCling.so
#13 0x00007f4e4932b14e in cling::TransactionUnloader::RevertTransaction(cling::Transaction*) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/external/slc7_amd64_gcc11/lib/libCling.so
#14 0x00007f4e4931079e in cling::Interpreter::unload(cling::Transaction&) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/external/slc7_amd64_gcc11/lib/libCling.so
#15 0x00007f4e4939203f in cling::IncrementalParser::commitTransaction(llvm::PointerIntPair<cling::Transaction*, 2u, cling::IncrementalParser::EParseResult, llvm::PointerLikeTypeTraits<cling::Transaction*>, llvm::PointerIntPairInfo<cling::Transaction*, 2u, llvm::PointerLikeTypeTraits<cling::Transaction*> > >&, bool) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/external/slc7_amd64_gcc11/lib/libCling.so
#16 0x00007f4e493933a9 in cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/external/slc7_amd64_gcc11/lib/libCling.so
#17 0x00007f4e4930d93b in cling::Interpreter::parseForModule(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/external/slc7_amd64_gcc11/lib/libCling.so
#18 0x00007f4e49242b36 in ExecAutoParse(char const*, bool, cling::Interpreter*) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/external/slc7_amd64_gcc11/lib/libCling.so
#19 0x00007f4e49250d96 in TCling::AutoParseImplRecurse(char const*, bool) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/external/slc7_amd64_gcc11/lib/libCling.so
#20 0x00007f4e49250bc5 in TCling::AutoParseImplRecurse(char const*, bool) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/external/slc7_amd64_gcc11/lib/libCling.so
#21 0x00007f4e49255b35 in TCling::AutoParse(char const*) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/external/slc7_amd64_gcc11/lib/libCling.so
#22 0x00007f4e49231a0a in TClingLookupHelper__AutoParse(char const*) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/external/slc7_amd64_gcc11/lib/libCling.so
#23 0x00007f4e49198a17 in ROOT::TMetaUtils::TClingLookupHelper::GetPartiallyDesugaredNameWithScopeHandling(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> >&, bool) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/external/slc7_amd64_gcc11/lib/libCling.so
#24 0x00007f4e4ec4c6ec in TClassEdit::TSplitType::ShortType(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, int) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/lcg/root/6.26.11-fec5b250e1cd56b91a094709de26e5b8/bin/../lib/libCore.so
#25 0x00007f4e4ec4d4a1 in TClassEdit::GetNormalizedName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string_view<char, std::char_traits<char> >) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/lcg/root/6.26.11-fec5b250e1cd56b91a094709de26e5b8/bin/../lib/libCore.so
#26 0x00007f4e4ec68f3c in TClass::GetClass(char const*, bool, bool, unsigned long, unsigned long) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/lcg/root/6.26.11-fec5b250e1cd56b91a094709de26e5b8/bin/../lib/libCore.so
#27 0x00007f4e45817799 in edm::TypeWithDict::byName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/lib/slc7_amd64_gcc11/libFWCoreReflection.so
#28 0x00007f4e45818045 in edm::TypeWithDict::byName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/lib/slc7_amd64_gcc11/libFWCoreReflection.so
#29 0x00007f4e334d8dd6 in edm::BranchDescription::initFromDictionary() () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/lib/slc7_amd64_gcc11/libDataFormatsProvenance.so
#30 0x00007f4e471890c1 in fwlite::internal::BranchMapReaderStrategyV17::updateFile(TFile*) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/lib/slc7_amd64_gcc11/libFWCoreFWLite.so
#31 0x00007f4e4718956d in fwlite::internal::BranchMapReaderStrategyV17::BranchMapReaderStrategyV17(TFile*, int) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/lib/slc7_amd64_gcc11/libFWCoreFWLite.so
#32 0x00007f4e47189753 in fwlite::BranchMapReader::newStrategy(TFile*, int) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/lib/slc7_amd64_gcc11/libFWCoreFWLite.so
#33 0x00007f4e471898d5 in fwlite::BranchMapReader::updateFile(TFile*) () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/lib/slc7_amd64_gcc11/libFWCoreFWLite.so
#34 0x00007f4e47189a22 in BareRootProductGetter::getIt(edm::ProductID const&) const () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/lib/slc7_amd64_gcc11/libFWCoreFWLite.so
#35 0x00007f4e3357dfc9 in edm::RefCore::tryToGetProductPtr(std::type_info const&, edm::EDProductGetter const*) const () from /cvmfs/cms.cern.ch/slc7_amd64_gcc11/cms/cmssw/CMSSW_13_0_9/lib/slc7_amd64_gcc11/libDataFormatsCommon.so
I know that historically calling the TTree::Draw on PackedCandidates data that needs unpacking was pretty brittle, but perhaps there can be a resolution.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 34 (29 by maintainers)
Commits related to this issue
- Add test for enum with two autoload annotations This is a heavily reduced case that shows the problem originally reported in https://github.com/cms-sw/cmssw/issues/42234. — committed to hahnjo/roottest by hahnjo a year ago
- [TCling] Fix suppression of enum forward declarations There can be multiple attributes in the forward declaration, see the added test in roottest/cling/dict/enum (reduced from a case reported by CMS ... — committed to hahnjo/root by hahnjo a year ago
- [TCling] Fix suppression of enum forward declarations There can be multiple attributes in the forward declaration, see the added test in roottest/cling/dict/enum (reduced from a case reported by CMS ... — committed to root-project/root by hahnjo a year ago
- Add test for enum with two autoload annotations This is a heavily reduced case that shows the problem originally reported in https://github.com/cms-sw/cmssw/issues/42234. — committed to root-project/roottest by hahnjo a year ago
- Add test for enum with two autoload annotations This is a heavily reduced case that shows the problem originally reported in https://github.com/cms-sw/cmssw/issues/42234. (cherry picked from commit ... — committed to hahnjo/roottest by hahnjo a year ago
- [TCling] Fix suppression of enum forward declarations There can be multiple attributes in the forward declaration, see the added test in roottest/cling/dict/enum (reduced from a case reported by CMS ... — committed to hahnjo/root by hahnjo a year ago
- Add test for enum with two autoload annotations This is a heavily reduced case that shows the problem originally reported in https://github.com/cms-sw/cmssw/issues/42234. (cherry picked from commit ... — committed to hahnjo/roottest by hahnjo a year ago
- [TCling] Fix suppression of enum forward declarations There can be multiple attributes in the forward declaration, see the added test in roottest/cling/dict/enum (reduced from a case reported by CMS ... — committed to hahnjo/root by hahnjo a year ago
- [TCling] Fix suppression of enum forward declarations There can be multiple attributes in the forward declaration, see the added test in roottest/cling/dict/enum (reduced from a case reported by CMS ... — committed to root-project/root by hahnjo a year ago
- [TCling] Fix suppression of enum forward declarations There can be multiple attributes in the forward declaration, see the added test in roottest/cling/dict/enum (reduced from a case reported by CMS ... — committed to root-project/root by hahnjo a year ago
- Add test for enum with two autoload annotations This is a heavily reduced case that shows the problem originally reported in https://github.com/cms-sw/cmssw/issues/42234. (cherry picked from commit ... — committed to root-project/roottest by hahnjo a year ago
- Add test for enum with two autoload annotations This is a heavily reduced case that shows the problem originally reported in https://github.com/cms-sw/cmssw/issues/42234. (cherry picked from commit ... — committed to root-project/roottest by hahnjo a year ago
- [TCling] Fix suppression of enum forward declarations There can be multiple attributes in the forward declaration, see the added test in roottest/cling/dict/enum (reduced from a case reported by CMS ... — committed to maksgraczyk/root by hahnjo a year ago
@hahnjo , yes PR tests can be run by using the correct cms/v6.2x… branches. @aandvalenzuela , can you please open cms-sw/root PRs using https://github.com/root-project/root/pull/13326 and https://github.com/root-project/root/pull/13327 for root6.26 and root 6.28 branches of 13.3.X release cycles