LLVM SYMBOLS ARE EXPOSED TO CLING problem

Dear ROOTers,

I have a program called AllPix that uses ROOT and GEANT4. I recently compiled the software using ROOT 6-06-02 and in certain circumstances, I encounter this crash at runtime :

[code]====================================================================

nalipour ******200
nalipour AllPixWriteROOTFile
Error in UnknownClass::InitInterpreter(): LLVM SYMBOLS ARE EXPOSED TO CLING! This will cause problems; please hide them or dlopen() them after the call to TROOT::InitInterpreter()!

*** Break *** segmentation violation

===========================================================
There was a crash.
This is the entire stack trace of all threads:

#0 0x00007fb3585e00ac in waitpid () from /lib64/libc.so.6
#1 0x00007fb358565092 in do_system () from /lib64/libc.so.6
#2 0x00007fb363f3a3b9 in TUnixSystem::StackTrace() () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCore.so
#3 0x00007fb363f3bf2c in TUnixSystem::DispatchSignals(ESignals) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCore.so
#4
#5 0x00007fb3491e39bc in clang::ASTContext::getConstantArrayType(clang::QualType, llvm::APInt const&, clang::ArrayType::ArraySizeModifier, unsigned int) const () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#6 0x00007fb348aa9379 in clang::ASTReader::readTypeRecord(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#7 0x00007fb348aaab8d in clang::ASTReader::GetType(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#8 0x00007fb348aab1a3 in clang::ASTReader::getLocalType(clang::serialization::ModuleFile&, unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#9 0x00007fb348aab1e7 in clang::ASTReader::readType(clang::serialization::ModuleFile&, llvm::SmallVector<unsigned long, 64u> const&, unsigned int&) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#10 0x00007fb348aaa9c7 in clang::ASTReader::readTypeRecord(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#11 0x00007fb348aaab8d in clang::ASTReader::GetType(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#12 0x00007fb348aab1a3 in clang::ASTReader::getLocalType(clang::serialization::ModuleFile&, unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#13 0x00007fb348aab1e7 in clang::ASTReader::readType(clang::serialization::ModuleFile&, llvm::SmallVector<unsigned long, 64u> const&, unsigned int&) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#14 0x00007fb348aab3cd in clang::ASTReader::GetTypeSourceInfo(clang::serialization::ModuleFile&, llvm::SmallVector<unsigned long, 64u> const&, unsigned int&) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#15 0x00007fb348ae01ca in clang::ASTDeclReader::VisitTypedefNameDecl(clang::TypedefNameDecl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#16 0x00007fb348ae028f in clang::ASTDeclReader::VisitTypedefDecl(clang::TypedefDecl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#17 0x00007fb348aecdc5 in clang::ASTDeclReader::Visit(clang::Decl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#18 0x00007fb348aed489 in clang::ASTReader::ReadDeclRecord(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#19 0x00007fb348a9b845 in clang::ASTReader::GetDecl(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#20 0x00007fb348ae011f in clang::ASTDeclReader::VisitTypedefNameDecl(clang::TypedefNameDecl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#21 0x00007fb348ae028f in clang::ASTDeclReader::VisitTypedefDecl(clang::TypedefDecl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#22 0x00007fb348aecdc5 in clang::ASTDeclReader::Visit(clang::Decl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#23 0x00007fb348aed489 in clang::ASTReader::ReadDeclRecord(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#24 0x00007fb348a9b845 in clang::ASTReader::GetDecl(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#25 0x00007fb348aaa9b3 in clang::ASTReader::readTypeRecord(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#26 0x00007fb348aaab8d in clang::ASTReader::GetType(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#27 0x00007fb348aab1a3 in clang::ASTReader::getLocalType(clang::serialization::ModuleFile&, unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#28 0x00007fb348aab1e7 in clang::ASTReader::readType(clang::serialization::ModuleFile&, llvm::SmallVector<unsigned long, 64u> const&, unsigned int&) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#29 0x00007fb348aaa8cf in clang::ASTReader::readTypeRecord(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#30 0x00007fb348aaab8d in clang::ASTReader::GetType(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#31 0x00007fb348aab1a3 in clang::ASTReader::getLocalType(clang::serialization::ModuleFile&, unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#32 0x00007fb348aab1e7 in clang::ASTReader::readType(clang::serialization::ModuleFile&, llvm::SmallVector<unsigned long, 64u> const&, unsigned int&) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#33 0x00007fb348aa9c39 in clang::ASTReader::readTypeRecord(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#34 0x00007fb348aaab8d in clang::ASTReader::GetType(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#35 0x00007fb348aab1a3 in clang::ASTReader::getLocalType(clang::serialization::ModuleFile&, unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#36 0x00007fb348ae123b in clang::ASTDeclReader::VisitValueDecl(clang::ValueDecl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#37 0x00007fb348ae13cf in clang::ASTDeclReader::VisitDeclaratorDecl(clang::DeclaratorDecl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#38 0x00007fb348ae1c7a in clang::ASTDeclReader::VisitFunctionDecl(clang::FunctionDecl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#39 0x00007fb348ae2b05 in clang::ASTDeclReader::VisitCXXMethodDecl(clang::CXXMethodDecl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#40 0x00007fb348aecd35 in clang::ASTDeclReader::Visit(clang::Decl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#41 0x00007fb348aed489 in clang::ASTReader::ReadDeclRecord(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#42 0x00007fb348a9b845 in clang::ASTReader::GetDecl(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#43 0x00007fb3493080f4 in clang::ASTContext::getCurrentKeyFunction(clang::CXXRecordDecl const*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#44 0x00007fb348df5543 in clang::Sema::ActOnEndOfTranslationUnit() () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#45 0x00007fb348dc680f in clang::Parser::ParseTopLevelDecl(clang::OpaquePtrclang::DeclGroupRef&) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#46 0x00007fb3489d694d in cling::IncrementalParser::ParseInternal(llvm::StringRef) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#47 0x00007fb3489d73fc in cling::IncrementalParser::Initialize(llvm::SmallVectorImpl<llvm::PointerIntPair<cling::Transaction*, 2u, cling::IncrementalParser::EParseResult, llvm::PointerLikeTypeTraitscling::Transaction* > >&) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#48 0x00007fb34892c425 in cling::Interpreter::Interpreter(int, char const* const*, char const*, bool) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#49 0x00007fb3488be305 in TCling::TCling(char const*, char const*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#50 0x00007fb3488bf57e in CreateInterpreter () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#51 0x00007fb363e73d98 in TROOT::InitInterpreter() () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCore.so
#52 0x00007fb363e74116 in ROOT::Internal::GetROOT2() () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCore.so
#53 0x00007fb363f25050 in TClass::GetClass(std::type_info const&, bool, bool) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCore.so
#54 0x000000000052c237 in TBranch* TTree::Branch<std::vector<int, std::allocator > >(char const*, std::vector<int, std::allocator >, int, int) ()
#55 0x000000000052b7c0 in AllPixWriteROOTFile::AllPixWriteROOTFile(int, TString) ()
#56 0x0000000000509ea3 in AllPixRunAction::GenerateRun() ()
#57 0x00007fb35d2d43bf in G4RunManager::RunInitialization (this=0xdaa160) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/run/src/G4RunManager.cc:326
#58 0x00007fb35d2cfb1d in G4RunManager::BeamOn (this=0xdaa160, n_event=1, macroFile=0x0, n_select=-1) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/run/src/G4RunManager.cc:272
#59 0x00000000004fe60c in AllPixPrimaryGeneratorMessenger::SetNewValue(G4UIcommand
, G4String) ()
#60 0x00007fb35986aa05 in G4UIcommand::DoIt (this=this
entry=0x1153d20, parameterList=…) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/intercoms/src/G4UIcommand.cc:230
#61 0x00007fb3598827d8 in G4UImanager::ApplyCommand (this=0xcce640, aCmd=) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/intercoms/src/G4UImanager.cc:523
#62 0x00007fb359883278 in G4UImanager::ApplyCommand (this=, aCmd=…) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/intercoms/src/G4UImanager.cc:441
#63 0x00007fb35985b5e7 in G4UIbatch::ExecCommand (this=this
entry=0x11b9900, command=…) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/intercoms/src/G4UIbatch.cc:170
#64 0x00007fb35985cc0b in G4UIbatch::SessionStart (this=0x11b9900) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/intercoms/src/G4UIbatch.cc:215
#65 0x00007fb35987db03 in G4UImanager::ExecuteMacroFile (this=this
entry=0xcce640, fileName=0x11b98d8 “macros/OneFEI4_vis.in”) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/intercoms/src/G4UImanager.cc:296
#66 0x00007fb359873da9 in G4UIcontrolMessenger::SetNewValue (this=0xccea50, command=command
entry=0xccf150, newValue=…) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/intercoms/src/G4UIcontrolMessenger.cc:313
#67 0x00007fb35986aa05 in G4UIcommand::DoIt (this=this
entry=0xccf150, parameterList=…) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/intercoms/src/G4UIcommand.cc:230
#68 0x00007fb3598827d8 in G4UImanager::ApplyCommand (this=0xcce640, aCmd=) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/intercoms/src/G4UImanager.cc:523
#69 0x00000000004acac3 in main ()

The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.

#5 0x00007fb3491e39bc in clang::ASTContext::getConstantArrayType(clang::QualType, llvm::APInt const&, clang::ArrayType::ArraySizeModifier, unsigned int) const () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#6 0x00007fb348aa9379 in clang::ASTReader::readTypeRecord(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#7 0x00007fb348aaab8d in clang::ASTReader::GetType(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#8 0x00007fb348aab1a3 in clang::ASTReader::getLocalType(clang::serialization::ModuleFile&, unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#9 0x00007fb348aab1e7 in clang::ASTReader::readType(clang::serialization::ModuleFile&, llvm::SmallVector<unsigned long, 64u> const&, unsigned int&) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#10 0x00007fb348aaa9c7 in clang::ASTReader::readTypeRecord(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#11 0x00007fb348aaab8d in clang::ASTReader::GetType(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#12 0x00007fb348aab1a3 in clang::ASTReader::getLocalType(clang::serialization::ModuleFile&, unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#13 0x00007fb348aab1e7 in clang::ASTReader::readType(clang::serialization::ModuleFile&, llvm::SmallVector<unsigned long, 64u> const&, unsigned int&) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#14 0x00007fb348aab3cd in clang::ASTReader::GetTypeSourceInfo(clang::serialization::ModuleFile&, llvm::SmallVector<unsigned long, 64u> const&, unsigned int&) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#15 0x00007fb348ae01ca in clang::ASTDeclReader::VisitTypedefNameDecl(clang::TypedefNameDecl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#16 0x00007fb348ae028f in clang::ASTDeclReader::VisitTypedefDecl(clang::TypedefDecl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#17 0x00007fb348aecdc5 in clang::ASTDeclReader::Visit(clang::Decl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#18 0x00007fb348aed489 in clang::ASTReader::ReadDeclRecord(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#19 0x00007fb348a9b845 in clang::ASTReader::GetDecl(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#20 0x00007fb348ae011f in clang::ASTDeclReader::VisitTypedefNameDecl(clang::TypedefNameDecl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#21 0x00007fb348ae028f in clang::ASTDeclReader::VisitTypedefDecl(clang::TypedefDecl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#22 0x00007fb348aecdc5 in clang::ASTDeclReader::Visit(clang::Decl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#23 0x00007fb348aed489 in clang::ASTReader::ReadDeclRecord(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#24 0x00007fb348a9b845 in clang::ASTReader::GetDecl(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#25 0x00007fb348aaa9b3 in clang::ASTReader::readTypeRecord(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#26 0x00007fb348aaab8d in clang::ASTReader::GetType(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#27 0x00007fb348aab1a3 in clang::ASTReader::getLocalType(clang::serialization::ModuleFile&, unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#28 0x00007fb348aab1e7 in clang::ASTReader::readType(clang::serialization::ModuleFile&, llvm::SmallVector<unsigned long, 64u> const&, unsigned int&) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#29 0x00007fb348aaa8cf in clang::ASTReader::readTypeRecord(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#30 0x00007fb348aaab8d in clang::ASTReader::GetType(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#31 0x00007fb348aab1a3 in clang::ASTReader::getLocalType(clang::serialization::ModuleFile&, unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#32 0x00007fb348aab1e7 in clang::ASTReader::readType(clang::serialization::ModuleFile&, llvm::SmallVector<unsigned long, 64u> const&, unsigned int&) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#33 0x00007fb348aa9c39 in clang::ASTReader::readTypeRecord(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#34 0x00007fb348aaab8d in clang::ASTReader::GetType(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#35 0x00007fb348aab1a3 in clang::ASTReader::getLocalType(clang::serialization::ModuleFile&, unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#36 0x00007fb348ae123b in clang::ASTDeclReader::VisitValueDecl(clang::ValueDecl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#37 0x00007fb348ae13cf in clang::ASTDeclReader::VisitDeclaratorDecl(clang::DeclaratorDecl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#38 0x00007fb348ae1c7a in clang::ASTDeclReader::VisitFunctionDecl(clang::FunctionDecl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#39 0x00007fb348ae2b05 in clang::ASTDeclReader::VisitCXXMethodDecl(clang::CXXMethodDecl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#40 0x00007fb348aecd35 in clang::ASTDeclReader::Visit(clang::Decl*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#41 0x00007fb348aed489 in clang::ASTReader::ReadDeclRecord(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#42 0x00007fb348a9b845 in clang::ASTReader::GetDecl(unsigned int) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#43 0x00007fb3493080f4 in clang::ASTContext::getCurrentKeyFunction(clang::CXXRecordDecl const*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#44 0x00007fb348df5543 in clang::Sema::ActOnEndOfTranslationUnit() () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#45 0x00007fb348dc680f in clang::Parser::ParseTopLevelDecl(clang::OpaquePtrclang::DeclGroupRef&) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#46 0x00007fb3489d694d in cling::IncrementalParser::ParseInternal(llvm::StringRef) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#47 0x00007fb3489d73fc in cling::IncrementalParser::Initialize(llvm::SmallVectorImpl<llvm::PointerIntPair<cling::Transaction*, 2u, cling::IncrementalParser::EParseResult, llvm::PointerLikeTypeTraitscling::Transaction* > >&) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#48 0x00007fb34892c425 in cling::Interpreter::Interpreter(int, char const* const*, char const*, bool) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#49 0x00007fb3488be305 in TCling::TCling(char const*, char const*) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#50 0x00007fb3488bf57e in CreateInterpreter () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCling.so
#51 0x00007fb363e73d98 in TROOT::InitInterpreter() () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCore.so
#52 0x00007fb363e74116 in ROOT::Internal::GetROOT2() () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCore.so
#53 0x00007fb363f25050 in TClass::GetClass(std::type_info const&, bool, bool) () from /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/root/lib/libCore.so
#54 0x000000000052c237 in TBranch* TTree::Branch<std::vector<int, std::allocator > >(char const*, std::vector<int, std::allocator >, int, int) ()
#55 0x000000000052b7c0 in AllPixWriteROOTFile::AllPixWriteROOTFile(int, TString) ()
#56 0x0000000000509ea3 in AllPixRunAction::GenerateRun() ()
#57 0x00007fb35d2d43bf in G4RunManager::RunInitialization (this=0xdaa160) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/run/src/G4RunManager.cc:326
#58 0x00007fb35d2cfb1d in G4RunManager::BeamOn (this=0xdaa160, n_event=1, macroFile=0x0, n_select=-1) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/run/src/G4RunManager.cc:272
#59 0x00000000004fe60c in AllPixPrimaryGeneratorMessenger::SetNewValue(G4UIcommand
, G4String) ()
#60 0x00007fb35986aa05 in G4UIcommand::DoIt (this=this
entry=0x1153d20, parameterList=…) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/intercoms/src/G4UIcommand.cc:230
#61 0x00007fb3598827d8 in G4UImanager::ApplyCommand (this=0xcce640, aCmd=) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/intercoms/src/G4UImanager.cc:523
#62 0x00007fb359883278 in G4UImanager::ApplyCommand (this=, aCmd=…) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/intercoms/src/G4UImanager.cc:441
#63 0x00007fb35985b5e7 in G4UIbatch::ExecCommand (this=this
entry=0x11b9900, command=…) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/intercoms/src/G4UIbatch.cc:170
#64 0x00007fb35985cc0b in G4UIbatch::SessionStart (this=0x11b9900) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/intercoms/src/G4UIbatch.cc:215
#65 0x00007fb35987db03 in G4UImanager::ExecuteMacroFile (this=this
entry=0xcce640, fileName=0x11b98d8 “macros/OneFEI4_vis.in”) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/intercoms/src/G4UImanager.cc:296
#66 0x00007fb359873da9 in G4UIcontrolMessenger::SetNewValue (this=0xccea50, command=command
entry=0xccf150, newValue=…) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/intercoms/src/G4UIcontrolMessenger.cc:313
#67 0x00007fb35986aa05 in G4UIcommand::DoIt (this=this
entry=0xccf150, parameterList=…) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/intercoms/src/G4UIcommand.cc:230
#68 0x00007fb3598827d8 in G4UImanager::ApplyCommand (this=0xcce640, aCmd=) at /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7/geant4/geant4.10.02.p01/source/intercoms/src/G4UImanager.cc:523
#69 0x00000000004acac3 in main ()

[/code]

To reproduce the error you can easily compile the software following the instruction on github :
github.com/ALLPix/allpix.git

The dependencies (GEANT4,ROOT,Xerces etc…) are conveniently installed in /afs/cern.ch/work/m/mbenoit/public/AllPixDependencies/CENTOS7

and the setup script setup.sh set everything needed. Make sure to overwrite the G4WORKDIR variable to a location where you have write access .

To reproduce the bug, copy the macro (bug.in) attached bug.in.zip (1.02 KB) to the macro folder of allpix (inside the git repo) and execute :

allpix macros/bug.in

an Open inventor windows should open. The bug occurs when you click the File menu, then Escape.

Sorry for such a complex procedure to reproduce this !


From Google I see that this problem can occur if I link directly to Cling when compiling with root but I checked and it is not the case.

The crash occurs at line 13 of this file : github.com/ALLPix/allpix/blob/A … OOTFile.cc

It occurs only when using GEANT4 OpenInventor visualization, otherwise it runs just fine.

Sorry for the long explanation but anybody has an idea what is going on ?

Hi,

You are probably linking with libCling.so and you shouldn’t. The recommended way to build with cmake projects using ROOT is documented in root.cern.ch/how/integrate-root … ject-cmake If possible avoid your own FindROOT.cmake.

Pere

Hi Mato,

as noted in my previous message, I looked for this already and this is not the case. libcling is not explicitly linked.

Cheers,

Mathieu

deleted

I will start a new discussion thread. Thanks!

deleted