Llvm symbols are exposed to cling!


ROOT Version: root_v6.14.00
Platform: Ubuntukylin-18.04.1-i386
Compiler: cmake
__

我在最后编译自己的B1文件时,./B1会出来可视化图像,但是/run/beamOn 1 后可视化消失,终端出现如下错误,请问这是什么原因造成的呢

/test1/muonmountain-build$ ./B1

Available UI session types: [ Qt, GAG, tcsh, csh ]

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 (kSigSegmentationViolation).

This is the entire stack trace of all threads:

===========================================================

Thread 8 (Thread 0xa3b28b40 (LWP 13517)):

#0 0xb7f81d09 in __kernel_vsyscall ()

#1 0xb4ba13eb in __GI___nanosleep (requested_time=0xa3abd780, remaining=0xa3abd780) at ../sysdeps/unix/sysv/linux/nanosleep.c:28

#2 0xb73dcffa in G4VisManager::G4VisSubThread(void*) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4vis_management.so

#3 0xb4b963bd in start_thread (arg=0xa3b28b40) at pthread_create.c:463

#4 0xb4aace16 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108

Thread 7 (Thread 0xaafffb40 (LWP 13514)):

#0 0xb7f81d09 in __kernel_vsyscall ()

#1 0xb4aa5303 in __GI___select (nfds=5, readfds=0xaaf9472c, writefds=0x0, exceptfds=0x0, timeout=0x0) at ../sysdeps/unix/sysv/linux/select.c:41

#2 0xb38ed4b9 in () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#3 0xb37f5d3e in () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#4 0xb4b963bd in start_thread (arg=0xaafffb40) at pthread_create.c:463

#5 0xb4aace16 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108

Thread 6 (Thread 0xac3c4b40 (LWP 13513)):

#0 0xb7f81d09 in __kernel_vsyscall ()

#1 0xb4b9c810 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0xe9a3cc) at ../sysdeps/unix/sysv/linux/futex-internal.h:88

#2 0xb4b9c810 in __pthread_cond_wait_common (abstime=0x0, mutex=0xe9a35c, cond=0xe9a3a4) at pthread_cond_wait.c:502

#3 0xb4b9c810 in __pthread_cond_wait (cond=0xe9a3a4, mutex=0xe9a35c) at pthread_cond_wait.c:655

#4 0xb4e51002 in G4MTBarrier::ThisWorkerReady() () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4global.so

#5 0xb72134f0 in G4MTRunManager::ThisWorkerWaitForNextAction() () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so

#6 0xb7220d76 in G4WorkerRunManager::DoWork() () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so

#7 0xb722914f in G4MTRunManagerKernel::StartThread(void*) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so

#8 0xb4b963bd in start_thread (arg=0xac3c4b40) at pthread_create.c:463

#9 0xb4aace16 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108

Thread 5 (Thread 0xad3c5b40 (LWP 13512)):

#0 0xb7f81d09 in __kernel_vsyscall ()

#1 0xb4b9c810 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0xe9a3cc) at ../sysdeps/unix/sysv/linux/futex-internal.h:88

#2 0xb4b9c810 in __pthread_cond_wait_common (abstime=0x0, mutex=0xe9a35c, cond=0xe9a3a4) at pthread_cond_wait.c:502

#3 0xb4b9c810 in __pthread_cond_wait (cond=0xe9a3a4, mutex=0xe9a35c) at pthread_cond_wait.c:655

#4 0xb4e51002 in G4MTBarrier::ThisWorkerReady() () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4global.so

#5 0xb72134f0 in G4MTRunManager::ThisWorkerWaitForNextAction() () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so

#6 0xb7220d76 in G4WorkerRunManager::DoWork() () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so

#7 0xb722914f in G4MTRunManagerKernel::StartThread(void*) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so

#8 0xb4b963bd in start_thread (arg=0xad3c5b40) at pthread_create.c:463

#9 0xb4aace16 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108

Thread 4 (Thread 0xae91db40 (LWP 13511)):

#0 0xb7f81d09 in __kernel_vsyscall ()

#1 0xb4aa243b in __GI___poll (fds=0xae0037a0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29

#2 0xb3219730 in g_poll () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0

#3 0xb320a1ca in () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0

#4 0xb320a314 in g_main_context_iteration () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0

#5 0xb3946115 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#6 0xb3911c7d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#7 0xb391200e in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#8 0xb37f30eb in QThread::exec() () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#9 0xb38f14c6 in () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#10 0xb37f5d3e in () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#11 0xb4b963bd in start_thread (arg=0xae91db40) at pthread_create.c:463

#12 0xb4aace16 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108

Thread 3 (Thread 0xb0effb40 (LWP 13509)):

#0 0xb7f81d09 in __kernel_vsyscall ()

#1 0xb4aa243b in __GI___poll (fds=0xe948d0, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29

#2 0xb3219730 in g_poll () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0

#3 0xb320a1ca in () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0

#4 0xb320a619 in g_main_loop_run () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0

#5 0xb2820fb5 in () at /usr/lib/i386-linux-gnu/libgio-2.0.so.0

#6 0xb32325da in () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0

#7 0xb4b963bd in start_thread (arg=0xb0effb40) at pthread_create.c:463

#8 0xb4aace16 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108

Thread 2 (Thread 0xb189cb40 (LWP 13508)):

#0 0xb7f81d09 in __kernel_vsyscall ()

#1 0xb4aa243b in __GI___poll (fds=0xb0f005d0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29

#2 0xb3219730 in g_poll () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0

#3 0xb320a1ca in () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0

#4 0xb320a314 in g_main_context_iteration () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0

#5 0xb320a370 in () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0

#6 0xb32325da in () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0

#7 0xb4b963bd in start_thread (arg=0xb189cb40) at pthread_create.c:463

#8 0xb4aace16 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108

Thread 1 (Thread 0xb2da2240 (LWP 13507)):

#0 0xb7f81d09 in __kernel_vsyscall ()

#1 0xb4a72e9b in __GI___waitpid (pid=13535, stat_loc=0xbff3a548, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:28

#2 0xb49f0e91 in do_system (line=line

entry=0x2e822c0 "/home/wangzhaoqing/G4/myfile/sources/root-build/etc/gdb-backtrace.sh 13507 1>&2") at ../sysdeps/posix/system.c:149

#3 0xb49f121e in __libc_system (line=0x2e822c0 "/home/wangzhaoqing/G4/myfile/sources/root-build/etc/gdb-backtrace.sh 13507 1>&2") at ../sysdeps/posix/system.c:185

#4 0xb4ba2488 in system_compat (line=0x2e822c0 "/home/wangzhaoqing/G4/myfile/sources/root-build/etc/gdb-backtrace.sh 13507 1>&2") at pt-system.c:40

#5 0xb7be1da4 in TUnixSystem::Exec(char const*) (shellcmd=<optimized out>, this=0xcf1a50) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/unix/src/TUnixSystem.cxx:2119

#6 0xb7be1da4 in TUnixSystem::StackTrace() (this=<optimized out>) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/unix/src/TUnixSystem.cxx:2413

#7 0xb7be4ddb in TUnixSystem::DispatchSignals(ESignals) (this=0xcf1a50, sig=kSigSegmentationViolation) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/unix/src/TUnixSystem.cxx:3644

#8 0xb7be4f88 in SigHandler(ESignals) (sig=kSigSegmentationViolation) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/unix/src/TUnixSystem.cxx:408

#9  0xb7f81d14 in <signal handler called> ()

#10 0xa012c6f5 in llvm::object::ELFObjectFileBase::getFeatures() const () at /home/chenlingxin/G4/myfile/sources/root-build/lib/libCling.so

#11 0xa7143d1d in llvm::RuntimeDyld::loadObject(llvm::object::ObjectFile const&) () at /usr/lib/i386-linux-gnu/libLLVM-6.0.so.1

#12 0xa7130038 in std::_Function_handler<llvm::Expected<unsigned long long> (), llvm::orc::RTDyldObjectLinkingLayer::ConcreteLinkedObject<std::shared_ptr<llvm::RuntimeDyld::MemoryManager>, std::shared_ptr<llvm::JITSymbolResolver>, llvm::orc::RTDyldObjectLinkingLayer::addObject(std::shared_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile> >, std::shared_ptr<llvm::JITSymbolResolver>)::{lambda(std::_List_iterator<std::unique_ptr<llvm::orc::RTDyldObjectLinkingLayerBase::LinkedObject, std::default_delete<llvm::orc::RTDyldObjectLinkingLayerBase::LinkedObject> > >, llvm::RuntimeDyld&, std::shared_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile> > const&, std::function<void ()>)#1}>::getSymbolMaterializer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)::{lambda()#1}>::_M_invoke(std::_Any_data const&) () at /usr/lib/i386-linux-gnu/libLLVM-6.0.so.1

#13 0x9eb5acb9 in std::_Function_handler<llvm::Expected<unsigned long long> (), llvm::orc::LazyEmittingLayer<llvm::orc::IRCompileLayer<cling::IncrementalJIT::RemovableObjectLinkingLayer, llvm::orc::SimpleCompiler> >::EmissionDeferredModule::find(llvm::StringRef, bool, llvm::orc::IRCompileLayer<cling::IncrementalJIT::RemovableObjectLinkingLayer, llvm::orc::SimpleCompiler>&)::{lambda()#1}>::_M_invoke(std::_Any_data const&) () at /home/chenlingxin/G4/myfile/sources/root-build/lib/libCling.so

#14 0x9eb4efd0 in cling::IncrementalExecutor::getPointerToGlobalFromJIT(llvm::GlobalValue const&) () at /home/chenlingxin/G4/myfile/sources/root-build/lib/libCling.so

#15 0x9eaea433 in cling::Interpreter::Interpreter(int, char const* const*, char const*, bool, cling::Interpreter const*) () at /home/chenlingxin/G4/myfile/sources/root-build/lib/libCling.so

#16 0x9ea4e849 in cling::Interpreter::Interpreter(int, char const* const*, char const*, bool) (noRuntime=false, llvmdir=<optimized out>, argv=<optimized out>, argc=<optimized out>, this=0x29ae0e0) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/interpreter/cling/include/cling/Interpreter/Interpreter.h:317

#17 0x9ea4e849 in TCling::TCling(char const*, char const*, char const* const*) (this=<optimized out>, name=<optimized out>, title=<optimized out>, argv=<optimized out>) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/metacling/src/TCling.cxx:1241

#18 0x9ea4fb16 in CreateInterpreter(void*, char const**) (interpLibHandle=0x29b4d20, argv=0xbff3d9ac) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/metacling/src/TCling.cxx:616

#19 0xb79e39dd in TROOT::InitInterpreter() (this=<optimized out>) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/base/src/TROOT.cxx:2090

#20 0xb79e3fc1 in ROOT::Internal::GetROOT2() () at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/base/src/TROOT.cxx:388

#21 0xb7a99967 in TEnv::Getvalue(char const*) const (this=<optimized out>, name=<optimized out>) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/base/src/TEnv.cxx:454

#22 0xb7a99e2c in TEnv::GetValue(char const*, char const*) const (this=0xcf45b0, name=0xb7c17d4a "Url.Special", dflt=0xb7c17d80 "file: rfio: hpss: castor: dcache: dcap:") at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/base/src/TEnv.cxx:537

#23 0xb7b08d74 in TUrl::GetSpecialProtocols() () at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/base/src/TUrl.cxx:594

#24 0xb7b096f0 in TUrl::SetUrl(char const*, bool) (this=0x2986ae8, url=<optimized out>, defaultIsFile=true) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/base/src/TUrl.cxx:144

#25 0xb7b09d77 in TUrl::TUrl(char const*, bool) (this=<optimized out>, url=<optimized out>, defaultIsFile=true) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/base/src/TUrl.cxx:78

#26 0xb7697dec in TFile::TFile(char const*, char const*, char const*, int) (this=0x2986980, fname1=0x43238d "my.root", option=0x432384 "RECREATE", ftitle=0x43233a "", compress=4) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/io/io/src/TFile.cxx:325

#27 0x0042f030 in B1Run::B1Run() ()

#28 0x0042f9fa in B1RunAction::GenerateRun() ()

#29 0xb720f9bc in G4RunManager::RunInitialization() () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so

#30 0xb7208c21 in G4RunManager::BeamOn(int, char const*, int) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so

#31 0xb722b2a8 in G4RunMessenger::SetNewValue(G4UIcommand*, G4String) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so

#32 0xb4e92a44 in G4UIcommand::DoIt(G4String) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4intercoms.so

#33 0xb4eb4145 in G4UImanager::ApplyCommand(char const*) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4intercoms.so

#34 0xb4eb4b2e in G4UImanager::ApplyCommand(G4String const&) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4intercoms.so

#35 0xb7d949a7 in G4VBasicShell::ExecuteCommand(G4String const&) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4interfaces.so

#36 0xb7d9d02f in G4VBasicShell::ApplyShellCommand(G4String const&, bool&, bool&) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4interfaces.so

#37 0xb7d875de in G4UIQt::CommandEnteredCallback() () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4interfaces.so

#38 0xb7d900c4 in G4UIQt::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4interfaces.so

#39 0xb3928d8b in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#40 0xb404a7a2 in QLineEdit::returnPressed() () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#41 0xb404abb1 in () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#42 0xb3928d8b in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#43 0xb42ecbb2 in QLineControl::accepted() () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#44 0xb4050251 in QLineControl::processKeyEvent(QKeyEvent*) () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#45 0xb4044c19 in QLineEdit::keyPressEvent(QKeyEvent*) () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#46 0xb3c2ac72 in QWidget::event(QEvent*) () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#47 0xb404acc7 in QLineEdit::event(QEvent*) () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#48 0xb3bcb68a in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#49 0xb3bd4a39 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#50 0xb391359a in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#51 0xb3bc97b7 in () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#52 0xb3c85a4d in () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#53 0xb3c85fa7 in () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#54 0xb3c5b4ab in QApplication::x11ProcessEvent(_XEvent*) () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#55 0xb06d0829 in () at /usr/lib/i386-linux-gnu/qt4/plugins/inputmethods/qtim-fcitx.so

#56 0xb3926cea in QMetaCallEvent::placeMetaCall(QObject*) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#57 0xb392eec1 in QObject::event(QEvent*) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#58 0xb3bcb68a in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#59 0xb3bd2991 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#60 0xb391359a in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#61 0xb3917286 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#62 0xb39175b5 in QCoreApplication::sendPostedEvents(QObject*, int) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#63 0xb3945fb1 in () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#64 0xb3209ff0 in g_main_context_dispatch () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0

#65 0xb320a269 in () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0

#66 0xb320a314 in g_main_context_iteration () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0

#67 0xb3946115 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#68 0xb3c88ba6 in () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#69 0xb3911c7d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#70 0xb391200e in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#71 0xb3918616 in QCoreApplication::exec() () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#72 0xb3bc9524 in QApplication::exec() () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#73 0xb7d83fba in G4UIQt::SessionStart() () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4interfaces.so

#74 0x004219e0 in main ()

===========================================================

The lines below might hint at the cause of the crash.

You may get help by asking at the ROOT forum http://root.cern.ch/forum

Only if you are really convinced it is a bug in ROOT then please submit a

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.

===========================================================

#10 0xa012c6f5 in llvm::object::ELFObjectFileBase::getFeatures() const () at /home/wangzhaoqing/G4/myfile/sources/root-build/lib/libCling.so

#11 0xa7143d1d in llvm::RuntimeDyld::loadObject(llvm::object::ObjectFile const&) () at /usr/lib/i386-linux-gnu/libLLVM-6.0.so.1

#12 0xa7130038 in std::_Function_handler<llvm::Expected<unsigned long long> (), llvm::orc::RTDyldObjectLinkingLayer::ConcreteLinkedObject<std::shared_ptr<llvm::RuntimeDyld::MemoryManager>, std::shared_ptr<llvm::JITSymbolResolver>, llvm::orc::RTDyldObjectLinkingLayer::addObject(std::shared_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile> >, std::shared_ptr<llvm::JITSymbolResolver>)::{lambda(std::_List_iterator<std::unique_ptr<llvm::orc::RTDyldObjectLinkingLayerBase::LinkedObject, std::default_delete<llvm::orc::RTDyldObjectLinkingLayerBase::LinkedObject> > >, llvm::RuntimeDyld&, std::shared_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile> > const&, std::function<void ()>)#1}>::getSymbolMaterializer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)::{lambda()#1}>::_M_invoke(std::_Any_data const&) () at /usr/lib/i386-linux-gnu/libLLVM-6.0.so.1

#13 0x9eb5acb9 in std::_Function_handler<llvm::Expected<unsigned long long> (), llvm::orc::LazyEmittingLayer<llvm::orc::IRCompileLayer<cling::IncrementalJIT::RemovableObjectLinkingLayer, llvm::orc::SimpleCompiler> >::EmissionDeferredModule::find(llvm::StringRef, bool, llvm::orc::IRCompileLayer<cling::IncrementalJIT::RemovableObjectLinkingLayer, llvm::orc::SimpleCompiler>&)::{lambda()#1}>::_M_invoke(std::_Any_data const&) () at /home/chenlingxin/G4/myfile/sources/root-build/lib/libCling.so

#14 0x9eb4efd0 in cling::IncrementalExecutor::getPointerToGlobalFromJIT(llvm::GlobalValue const&) () at /home/chenlingxin/G4/myfile/sources/root-build/lib/libCling.so

#15 0x9eaea433 in cling::Interpreter::Interpreter(int, char const* const*, char const*, bool, cling::Interpreter const*) () at /home/wangzhaoqing/G4/myfile/sources/root-build/lib/libCling.so

#16 0x9ea4e849 in cling::Interpreter::Interpreter(int, char const* const*, char const*, bool) (noRuntime=false, llvmdir=<optimized out>, argv=<optimized out>, argc=<optimized out>, this=0x29ae0e0) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/interpreter/cling/include/cling/Interpreter/Interpreter.h:317

#17 0x9ea4e849 in TCling::TCling(char const*, char const*, char const* const*) (this=<optimized out>, name=<optimized out>, title=<optimized out>, argv=<optimized out>) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/metacling/src/TCling.cxx:1241

#18 0x9ea4fb16 in CreateInterpreter(void*, char const**) (interpLibHandle=0x29b4d20, argv=0xbff3d9ac) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/metacling/src/TCling.cxx:616

#19 0xb79e39dd in TROOT::InitInterpreter() (this=<optimized out>) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/base/src/TROOT.cxx:2090

#20 0xb79e3fc1 in ROOT::Internal::GetROOT2() () at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/base/src/TROOT.cxx:388

#21 0xb7a99967 in TEnv::Getvalue(char const*) const (this=<optimized out>, name=<optimized out>) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/base/src/TEnv.cxx:454

#22 0xb7a99e2c in TEnv::GetValue(char const*, char const*) const (this=0xcf45b0, name=0xb7c17d4a "Url.Special", dflt=0xb7c17d80 "file: rfio: hpss: castor: dcache: dcap:") at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/base/src/TEnv.cxx:537

#23 0xb7b08d74 in TUrl::GetSpecialProtocols() () at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/base/src/TUrl.cxx:594

#24 0xb7b096f0 in TUrl::SetUrl(char const*, bool) (this=0x2986ae8, url=<optimized out>, defaultIsFile=true) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/base/src/TUrl.cxx:144

#25 0xb7b09d77 in TUrl::TUrl(char const*, bool) (this=<optimized out>, url=<optimized out>, defaultIsFile=true) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/base/src/TUrl.cxx:78

#26 0xb7697dec in TFile::TFile(char const*, char const*, char const*, int) (this=0x2986980, fname1=0x43238d "my.root", option=0x432384 "RECREATE", ftitle=0x43233a "", compress=4) at /home/chenlingxin/G4/myfile/sources/root-6.14.00/io/io/src/TFile.cxx:325

#27 0x0042f030 in B1Run::B1Run() ()

#28 0x0042f9fa in B1RunAction::GenerateRun() ()

#29 0xb720f9bc in G4RunManager::RunInitialization() () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so

#30 0xb7208c21 in G4RunManager::BeamOn(int, char const*, int) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so

#31 0xb722b2a8 in G4RunMessenger::SetNewValue(G4UIcommand*, G4String) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so

#32 0xb4e92a44 in G4UIcommand::DoIt(G4String) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4intercoms.so

#33 0xb4eb4145 in G4UImanager::ApplyCommand(char const*) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4intercoms.so

#34 0xb4eb4b2e in G4UImanager::ApplyCommand(G4String const&) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4intercoms.so

#35 0xb7d949a7 in G4VBasicShell::ExecuteCommand(G4String const&) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4interfaces.so

#36 0xb7d9d02f in G4VBasicShell::ApplyShellCommand(G4String const&, bool&, bool&) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4interfaces.so

#37 0xb7d875de in G4UIQt::CommandEnteredCallback() () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4interfaces.so

#38 0xb7d900c4 in G4UIQt::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4interfaces.so

#39 0xb3928d8b in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#40 0xb404a7a2 in QLineEdit::returnPressed() () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#41 0xb404abb1 in () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#42 0xb3928d8b in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#43 0xb42ecbb2 in QLineControl::accepted() () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#44 0xb4050251 in QLineControl::processKeyEvent(QKeyEvent*) () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#45 0xb4044c19 in QLineEdit::keyPressEvent(QKeyEvent*) () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#46 0xb3c2ac72 in QWidget::event(QEvent*) () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#47 0xb404acc7 in QLineEdit::event(QEvent*) () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#48 0xb3bcb68a in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#49 0xb3bd4a39 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#50 0xb391359a in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#51 0xb3bc97b7 in () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#52 0xb3c85a4d in () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#53 0xb3c85fa7 in () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#54 0xb3c5b4ab in QApplication::x11ProcessEvent(_XEvent*) () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#55 0xb06d0829 in () at /usr/lib/i386-linux-gnu/qt4/plugins/inputmethods/qtim-fcitx.so

#56 0xb3926cea in QMetaCallEvent::placeMetaCall(QObject*) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#57 0xb392eec1 in QObject::event(QEvent*) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#58 0xb3bcb68a in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#59 0xb3bd2991 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#60 0xb391359a in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#61 0xb3917286 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#62 0xb39175b5 in QCoreApplication::sendPostedEvents(QObject*, int) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#63 0xb3945fb1 in () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#64 0xb3209ff0 in g_main_context_dispatch () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0

#65 0xb320a269 in () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0

#66 0xb320a314 in g_main_context_iteration () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0

#67 0xb3946115 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#68 0xb3c88ba6 in () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#69 0xb3911c7d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#70 0xb391200e in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#71 0xb3918616 in QCoreApplication::exec() () at /usr/lib/i386-linux-gnu/libQtCore.so.4

#72 0xb3bc9524 in QApplication::exec() () at /usr/lib/i386-linux-gnu/libQtGui.so.4

#73 0xb7d83fba in G4UIQt::SessionStart() () at /home/chenlingxin/G4/geant-02/geant4.10.03.p01-install/lib/libG4interfaces.so

#74 0x004219e0 in main ()

===========================================================

段错误

I cannot do Chinese (?) but you must not link the B1 binary against libCling - I bet that’s what’s causing it?

Thank you for your reply! I’m a novice for geant4, I do not know how to stop the linking between B1 binary and libCling.
And I had closed the OpenGL and Qt visualization,when i run with " ./B1 run.mac " again, there has an error message " Break segmentation violation ",the full error report is shown below:

plastic scintillator C9-H10 1.032 273.15 6.32421e+08
 Material:plastic scintillator with formula: C9-H10 added! 
     Nb of Material = 4
     Nb of Isotope =  0
     Nb of Element =  5
water H2-O 1 273.15 6.32421e+08
 Material:water with formula: H2-O added! 
     Nb of Material = 5
     Nb of Isotope =  0
     Nb of Element =  5

The materials defined are : 


***** Table : Nb of materials = 5 *****

 Material:   Vacuum    density:  0.000 kg/m3   RadL: 204309949.270 pc   Nucl.Int.Length: 113427275.267 pc 
                       Imean:  19.200 eV   temperature:   2.73 K  pressure:   0.00 atm

   --->  Element:  H ( H)   Z =  1.0   N =     1   A =  1.008 g/mole
         --->  Isotope:    H1   Z =  1   N =   1   A =   1.01 g/mole   abundance: 99.989 %
         --->  Isotope:    H2   Z =  1   N =   2   A =   2.01 g/mole   abundance:  0.011 %
          ElmMassFraction: 100.00 %  ElmAbundance 100.00 % 


 Material:      Air    density:  1.290 mg/cm3  RadL: 287.552 m    Nucl.Int.Length: 660.320 m  
                       Imean:  84.699 eV   temperature: 273.15 K  pressure:   1.00 atm

   --->  Element:  N ( N)   Z =  7.0   N =    14   A = 14.007 g/mole
         --->  Isotope:   N14   Z =  7   N =  14   A =  14.00 g/mole   abundance: 99.632 %
         --->  Isotope:   N15   Z =  7   N =  15   A =  15.00 g/mole   abundance:  0.368 %
          ElmMassFraction:  78.00 %  ElmAbundance  80.20 % 

   --->  Element:  O ( O)   Z =  8.0   N =    16   A = 15.999 g/mole
         --->  Isotope:   O16   Z =  8   N =  16   A =  15.99 g/mole   abundance: 99.757 %
         --->  Isotope:   O17   Z =  8   N =  17   A =  17.00 g/mole   abundance:  0.038 %
         --->  Isotope:   O18   Z =  8   N =  18   A =  18.00 g/mole   abundance:  0.205 %
          ElmMassFraction:  22.00 %  ElmAbundance  19.80 % 


 Material: carbonate    density:  2.600 g/cm3   RadL:   9.241 cm   Nucl.Int.Length:  37.421 cm 
                       Imean: 123.236 eV 

   --->  Element: Ca (Ca)   Z = 20.0   N =    40   A = 40.078 g/mole
         --->  Isotope:  Ca40   Z = 20   N =  40   A =  39.96 g/mole   abundance: 96.941 %
         --->  Isotope:  Ca42   Z = 20   N =  42   A =  41.96 g/mole   abundance:  0.647 %
         --->  Isotope:  Ca43   Z = 20   N =  43   A =  42.96 g/mole   abundance:  0.135 %
         --->  Isotope:  Ca44   Z = 20   N =  44   A =  43.96 g/mole   abundance:  2.086 %
         --->  Isotope:  Ca46   Z = 20   N =  46   A =  45.95 g/mole   abundance:  0.004 %
         --->  Isotope:  Ca48   Z = 20   N =  48   A =  47.95 g/mole   abundance:  0.187 %
          ElmMassFraction:  40.04 %  ElmAbundance  20.00 % 

   --->  Element:  C ( C)   Z =  6.0   N =    12   A = 12.011 g/mole
         --->  Isotope:   C12   Z =  6   N =  12   A =  12.00 g/mole   abundance: 98.930 %
         --->  Isotope:   C13   Z =  6   N =  13   A =  13.00 g/mole   abundance:  1.070 %
          ElmMassFraction:  12.00 %  ElmAbundance  20.00 % 

   --->  Element:  O ( O)   Z =  8.0   N =    16   A = 15.999 g/mole
         --->  Isotope:   O16   Z =  8   N =  16   A =  15.99 g/mole   abundance: 99.757 %
         --->  Isotope:   O17   Z =  8   N =  17   A =  17.00 g/mole   abundance:  0.038 %
         --->  Isotope:   O18   Z =  8   N =  18   A =  18.00 g/mole   abundance:  0.205 %
          ElmMassFraction:  47.96 %  ElmAbundance  60.00 % 


 Material: plastic scintillator    density:  1.032 g/cm3   RadL:  42.544 cm   Nucl.Int.Length:  69.969 cm 
                       Imean:  64.684 eV 

   --->  Element:  C ( C)   Z =  6.0   N =    12   A = 12.011 g/mole
         --->  Isotope:   C12   Z =  6   N =  12   A =  12.00 g/mole   abundance: 98.930 %
         --->  Isotope:   C13   Z =  6   N =  13   A =  13.00 g/mole   abundance:  1.070 %
          ElmMassFraction:  91.47 %  ElmAbundance  47.37 % 

   --->  Element:  H ( H)   Z =  1.0   N =     1   A =  1.008 g/mole
         --->  Isotope:    H1   Z =  1   N =   1   A =   1.01 g/mole   abundance: 99.989 %
         --->  Isotope:    H2   Z =  1   N =   2   A =   2.01 g/mole   abundance:  0.011 %
          ElmMassFraction:   8.53 %  ElmAbundance  52.63 % 


 Material:    water    density:  1.000 g/cm3   RadL:  36.083 cm   Nucl.Int.Length:  75.375 cm 
                       Imean:  68.998 eV 

   --->  Element:  H ( H)   Z =  1.0   N =     1   A =  1.008 g/mole
         --->  Isotope:    H1   Z =  1   N =   1   A =   1.01 g/mole   abundance: 99.989 %
         --->  Isotope:    H2   Z =  1   N =   2   A =   2.01 g/mole   abundance:  0.011 %
          ElmMassFraction:  11.19 %  ElmAbundance  66.67 % 

   --->  Element:  O ( O)   Z =  8.0   N =    16   A = 15.999 g/mole
         --->  Isotope:   O16   Z =  8   N =  16   A =  15.99 g/mole   abundance: 99.757 %
         --->  Isotope:   O17   Z =  8   N =  17   A =  17.00 g/mole   abundance:  0.038 %
         --->  Isotope:   O18   Z =  8   N =  18   A =  18.00 g/mole   abundance:  0.205 %
          ElmMassFraction:  88.81 %  ElmAbundance  33.33 % 



Visualization Manager instantiating with verbosity "warnings (3)"...
Visualization Manager initialising...
Registering graphics systems...

You have successfully registered the following graphics systems.
Current available graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRep (HepRepXML)
G4HepRepFile (HepRepFile)
RayTracer (RayTracer)
VRML1FILE (VRML1FILE)
VRML2FILE (VRML2FILE)
gMocrenFile (gMocrenFile)
OpenGLImmediateQt (OGLIQt, OGLI)
OpenGLStoredQt (OGLSQt, OGL, OGLS)
OpenGLImmediateX (OGLIX, OGLIQt_FALLBACK)
OpenGLStoredX (OGLSX, OGLSQt_FALLBACK)

Registering model factories...

You have successfully registered the following model factories.
Registered model factories:
  generic
  drawByAttribute
  drawByCharge
  drawByOriginVolume
  drawByParticleID
  drawByEncounteredVolume

Registered filter factories:
  attributeFilter
  chargeFilter
  originVolumeFilter
  particleFilter
  encounteredVolumeFilter

You have successfully registered the following user vis actions.
Run Duration User Vis Actions: none
End of Event User Vis Actions: none
End of Run User Vis Actions: none

Some /vis commands (optionally) take a string to specify colour.
Available colours:
  black, blue, brown, cyan, gray, green, grey, magenta, red, white, yellow


phot:   for  gamma    SubType= 12  BuildTable= 0
      LambdaPrime table from 200 keV to 100 TeV in 61 bins 
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
       PhotoElectric :  Emin=        0 eV    Emax=      100 TeV   AngularGenSauterGavrila

compt:   for  gamma    SubType= 13  BuildTable= 1
      Lambda table from 100 eV  to 1 MeV, 7 bins per decade, spline: 1
      LambdaPrime table from 1 MeV to 100 TeV in 56 bins 
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
       Klein-Nishina :  Emin=        0 eV    Emax=      100 TeV

conv:   for  gamma    SubType= 14  BuildTable= 1
      Lambda table from 1.022 MeV to 100 TeV, 18 bins per decade, spline: 1
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
        BetheHeitler :  Emin=        0 eV    Emax=       80 GeV
     BetheHeitlerLPM :  Emin=       80 GeV   Emax=      100 TeV

Rayl:   for  gamma    SubType= 11  BuildTable= 1
      Lambda table from 100 eV  to 100 keV, 7 bins per decade, spline: 0
      LambdaPrime table from 100 keV to 100 TeV in 63 bins 
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
   LivermoreRayleigh :  Emin=        0 eV    Emax=      100 TeV   CullenGenerator

msc:   for e-    SubType= 10
      RangeFactor= 0.04, stepLimitType: 1, latDisplacement: 1
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
            UrbanMsc :  Emin=        0 eV    Emax=      100 TeV  Table with 84 bins Emin=    100 eV    Emax=    100 TeV

eIoni:   for  e-    SubType= 2
      dE/dx and range tables from 100 eV  to 100 TeV in 84 bins
      Lambda tables from threshold to 100 TeV, 7 bins per decade, spline: 1
      finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
        MollerBhabha :  Emin=        0 eV    Emax=      100 TeV

eBrem:   for  e-    SubType= 3
      dE/dx and range tables from 100 eV  to 100 TeV in 84 bins
      Lambda tables from threshold to 100 TeV, 7 bins per decade, spline: 1
      LPM flag: 1 for E > 1 GeV,  VertexHighEnergyTh(GeV)= 100000
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
             eBremSB :  Emin=        0 eV    Emax=        1 GeV   DipBustGen
            eBremLPM :  Emin=        1 GeV   Emax=      100 TeV   DipBustGen

SynRad:  Incoherent Synchrotron Radiation
      good description for long magnets at all energies

msc:   for e+    SubType= 10
      RangeFactor= 0.04, stepLimitType: 1, latDisplacement: 1
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
            UrbanMsc :  Emin=        0 eV    Emax=      100 TeV  Table with 84 bins Emin=    100 eV    Emax=    100 TeV

eIoni:   for  e+    SubType= 2
      dE/dx and range tables from 100 eV  to 100 TeV in 84 bins
      Lambda tables from threshold to 100 TeV, 7 bins per decade, spline: 1
      finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
        MollerBhabha :  Emin=        0 eV    Emax=      100 TeV

eBrem:   for  e+    SubType= 3
      dE/dx and range tables from 100 eV  to 100 TeV in 84 bins
      Lambda tables from threshold to 100 TeV, 7 bins per decade, spline: 1
      LPM flag: 1 for E > 1 GeV,  VertexHighEnergyTh(GeV)= 100000
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
             eBremSB :  Emin=        0 eV    Emax=        1 GeV   DipBustGen
            eBremLPM :  Emin=        1 GeV   Emax=      100 TeV   DipBustGen

annihil:   for  e+, integral: 1     SubType= 5  BuildTable= 0
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
            eplus2gg :  Emin=        0 eV    Emax=      100 TeV

msc:   for proton    SubType= 10
      RangeFactor= 0.2, stepLimitType: 0, latDisplacement: 0
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
            UrbanMsc :  Emin=        0 eV    Emax=      100 TeV  Table with 84 bins Emin=    100 eV    Emax=    100 TeV

hIoni:   for  proton    SubType= 2
      dE/dx and range tables from 100 eV  to 100 TeV in 84 bins
      Lambda tables from threshold to 100 TeV, 7 bins per decade, spline: 1
      finalRange(mm)= 0.1, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
               Bragg :  Emin=        0 eV    Emax=        2 MeV
          BetheBloch :  Emin=        2 MeV   Emax=      100 TeV

hBrems:   for  proton    SubType= 3
      dE/dx and range tables from 100 eV  to 100 TeV in 84 bins
      Lambda tables from threshold to 100 TeV, 7 bins per decade, spline: 1
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
               hBrem :  Emin=        0 eV    Emax=      100 TeV

hPairProd:   for  proton    SubType= 4
      dE/dx and range tables from 100 eV  to 100 TeV in 84 bins
      Lambda tables from threshold to 100 TeV, 7 bins per decade, spline: 1
      Sampling table 17x1001; from 7.50618 GeV to 100 TeV 
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
           hPairProd :  Emin=        0 eV    Emax=      100 TeV

msc:   for mu+    SubType= 10
      RangeFactor= 0.2, step limit type: 0, lateralDisplacement: 0, polarAngleLimit(deg)= 180
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
            UrbanMsc :  Emin=        0 eV    Emax=      100 TeV  Table with 84 bins Emin=    100 eV    Emax=    100 TeV

muIoni:   for  mu+    SubType= 2
      dE/dx and range tables from 100 eV  to 100 TeV in 84 bins
      Lambda tables from threshold to 100 TeV, 7 bins per decade, spline: 1
      finalRange(mm)= 0.1, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
               Bragg :  Emin=        0 eV    Emax=      200 keV
          BetheBloch :  Emin=      200 keV   Emax=        1 GeV
        MuBetheBloch :  Emin=        1 GeV   Emax=      100 TeV

muBrems:   for  mu+    SubType= 3
      dE/dx and range tables from 100 eV  to 100 TeV in 84 bins
      Lambda tables from threshold to 100 TeV, 7 bins per decade, spline: 1
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
              MuBrem :  Emin=        0 eV    Emax=      100 TeV

muPairProd:   for  mu+    SubType= 4
      dE/dx and range tables from 100 eV  to 100 TeV in 84 bins
      Lambda tables from threshold to 100 TeV, 7 bins per decade, spline: 1
      Sampling table 21x1001; from 1 GeV to 100 TeV 
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
          muPairProd :  Emin=        0 eV    Emax=      100 TeV

msc:   for mu-    SubType= 10
      RangeFactor= 0.2, step limit type: 0, lateralDisplacement: 0, polarAngleLimit(deg)= 180
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
            UrbanMsc :  Emin=        0 eV    Emax=      100 TeV  Table with 84 bins Emin=    100 eV    Emax=    100 TeV

muIoni:   for  mu-    SubType= 2
      dE/dx and range tables from 100 eV  to 100 TeV in 84 bins
      Lambda tables from threshold to 100 TeV, 7 bins per decade, spline: 1
      finalRange(mm)= 0.1, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
            ICRU73QO :  Emin=        0 eV    Emax=      200 keV
          BetheBloch :  Emin=      200 keV   Emax=        1 GeV
        MuBetheBloch :  Emin=        1 GeV   Emax=      100 TeV

muBrems:   for  mu-    SubType= 3
      dE/dx and range tables from 100 eV  to 100 TeV in 84 bins
      Lambda tables from threshold to 100 TeV, 7 bins per decade, spline: 1
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
              MuBrem :  Emin=        0 eV    Emax=      100 TeV

muPairProd:   for  mu-    SubType= 4
      dE/dx and range tables from 100 eV  to 100 TeV in 84 bins
      Lambda tables from threshold to 100 TeV, 7 bins per decade, spline: 1
      Sampling table 21x1001; from 1 GeV to 100 TeV 
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
          muPairProd :  Emin=        0 eV    Emax=      100 TeV
G4VDecayChannel::FillDaughters  [ kaon+ ]1:pi0 is not defined !!
 The BR of this decay mode is set to zero 
G4VDecayChannel::FillDaughters  [ kaon+ ]0:pi0 is not defined !!
 The BR of this decay mode is set to zero 
G4VDecayChannel::FillDaughters  [ kaon+ ]0:pi0 is not defined !!
 The BR of this decay mode is set to zero 
G4VDecayChannel::FillDaughters  [ kaon+ ]1:pi0 is not defined !!
 The BR of this decay mode is set to zero 
G4VDecayChannel::FillDaughters  [ kaon- ]1:pi0 is not defined !!
 The BR of this decay mode is set to zero 
G4VDecayChannel::FillDaughters  [ kaon- ]0:pi0 is not defined !!
 The BR of this decay mode is set to zero 
G4VDecayChannel::FillDaughters  [ kaon- ]0:pi0 is not defined !!
 The BR of this decay mode is set to zero 
G4VDecayChannel::FillDaughters  [ kaon- ]1:pi0 is not defined !!
 The BR of this decay mode is set to zero 
/
/B1/
/B1/MTplastic_scplastic_sc2plastic_sc3   *** Active 
scorer trackerCollection : 0
G4WT0 > /
G4WT0 > <trackerCollection> is not found.
G4WT0 > scorer trackerCollection : -1
G4WT1 > /
G4WT1 > <trackerCollection> is not found.
G4WT1 > scorer trackerCollection : -1
1

 *** Break *** segmentation violation
1

 *** Break *** segmentation violation
wangzhaoqing@wangzhaoqing-virtual-machine:~/G4/myfile/geant4_workdir/muon-original/test/muonmountain-build$ 


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

Thread 3 (Thread 0xb1c21b40 (LWP 3170)):
#0  0xb7eefd09 in __kernel_vsyscall ()
#1  0xb49e0e9b in __GI___waitpid (pid=3196, stat_loc=0xb1bb3808, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:28
#2  0xb495ee91 in do_system (line=line
entry=0xb09ccec0 "/home/wangzhaoqing/G4/myfile/sources/root-build/etc/gdb-backtrace.sh 3168 1>&2") at ../sysdeps/posix/system.c:149
#3  0xb495f21e in __libc_system (line=0xb09ccec0 "/home/wangzhaoqing/G4/myfile/sources/root-build/etc/gdb-backtrace.sh 3168 1>&2") at ../sysdeps/posix/system.c:185
#4  0xb4b10488 in system_compat (line=0xb09ccec0 "/home/wangzhaoqing/G4/myfile/sources/root-build/etc/gdb-backtrace.sh 3168 1>&2") at pt-system.c:40
#5  0xb7b4fda4 in TUnixSystem::Exec(char const*) (shellcmd=<optimized out>, this=0x1eb5a50) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/unix/src/TUnixSystem.cxx:2119
#6  0xb7b4fda4 in TUnixSystem::StackTrace() (this=<optimized out>) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/unix/src/TUnixSystem.cxx:2413
#7  0xb7b52ddb in TUnixSystem::DispatchSignals(ESignals) (this=0x1eb5a50, sig=kSigSegmentationViolation) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/unix/src/TUnixSystem.cxx:3644
#8  0xb7b52f88 in SigHandler(ESignals) (sig=kSigSegmentationViolation) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/unix/src/TUnixSystem.cxx:408
#9  0xb7eefd14 in <signal handler called> ()
#10 0x0046f326 in B1Run::RecordEvent(G4Event const*) ()
#11 0xb71884a7 in G4WorkerRunManager::DoEventLoop(int, char const*, int) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so
#12 0xb7176cbc in G4RunManager::BeamOn(int, char const*, int) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so
#13 0xb718eec7 in G4WorkerRunManager::DoWork() () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so
#14 0xb719714f in G4MTRunManagerKernel::StartThread(void*) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so
#15 0xb4b043bd in start_thread (arg=0xb1c21b40) at pthread_create.c:463
#16 0xb4a1ae16 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108

Thread 2 (Thread 0xb2c22b40 (LWP 3169)):
#0  0xb7eefd09 in __kernel_vsyscall ()
#1  0xb49e0e9b in __GI___waitpid (pid=3194, stat_loc=0xb2bb4808, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:28
#2  0xb495ee91 in do_system (line=line
entry=0xb0bba080 "/home/wangzhaoqing/G4/myfile/sources/root-build/etc/gdb-backtrace.sh 3168 1>&2") at ../sysdeps/posix/system.c:149
#3  0xb495f21e in __libc_system (line=0xb0bba080 "/home/wangzhaoqing/G4/myfile/sources/root-build/etc/gdb-backtrace.sh 3168 1>&2") at ../sysdeps/posix/system.c:185
#4  0xb4b10488 in system_compat (line=0xb0bba080 "/home/wangzhaoqing/G4/myfile/sources/root-build/etc/gdb-backtrace.sh 3168 1>&2") at pt-system.c:40
#5  0xb7b4fda4 in TUnixSystem::Exec(char const*) (shellcmd=<optimized out>, this=0x1eb5a50) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/unix/src/TUnixSystem.cxx:2119
#6  0xb7b4fda4 in TUnixSystem::StackTrace() (this=<optimized out>) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/unix/src/TUnixSystem.cxx:2413
#7  0xb7b52ddb in TUnixSystem::DispatchSignals(ESignals) (this=0x1eb5a50, sig=kSigSegmentationViolation) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/unix/src/TUnixSystem.cxx:3644
#8  0xb7b52f88 in SigHandler(ESignals) (sig=kSigSegmentationViolation) at /home/wangzhaoqing/G4/myfile/sources/root-6.14.00/core/unix/src/TUnixSystem.cxx:408
#9  0xb7eefd14 in <signal handler called> ()
#10 0x0046f326 in B1Run::RecordEvent(G4Event const*) ()
#11 0xb71884a7 in G4WorkerRunManager::DoEventLoop(int, char const*, int) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so
#12 0xb7176cbc in G4RunManager::BeamOn(int, char const*, int) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so
#13 0xb718eec7 in G4WorkerRunManager::DoWork() () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so
#14 0xb719714f in G4MTRunManagerKernel::StartThread(void*) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so
#15 0xb4b043bd in start_thread (arg=0xb2c22b40) at pthread_create.c:463
#16 0xb4a1ae16 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108

Thread 1 (Thread 0xb2d10240 (LWP 3168)):
#0  0xb7eefd09 in __kernel_vsyscall ()
#1  0xb4b0a810 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x1f22d88) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#2  0xb4b0a810 in __pthread_cond_wait_common (abstime=0x0, mutex=0x1f22d48, cond=0x1f22d60) at pthread_cond_wait.c:502
#3  0xb4b0a810 in __pthread_cond_wait (cond=0x1f22d60, mutex=0x1f22d48) at pthread_cond_wait.c:655
#4  0xb4dbf064 in G4MTBarrier::Wait() () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4global.so
#5  0xb7186f7f in G4MTRunManager::RunTermination() () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so
#6  0xb7176c85 in G4RunManager::BeamOn(int, char const*, int) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so
#7  0xb71992a8 in G4RunMessenger::SetNewValue(G4UIcommand*, G4String) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so
#8  0xb4e00a44 in G4UIcommand::DoIt(G4String) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4intercoms.so
#9  0xb4e22145 in G4UImanager::ApplyCommand(char const*) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4intercoms.so
#10 0xb4e22b2e in G4UImanager::ApplyCommand(G4String const&) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4intercoms.so
#11 0xb4de8ee5 in G4UIbatch::ExecCommand(G4String const&) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4intercoms.so
#12 0xb4deaf59 in G4UIbatch::SessionStart() () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4intercoms.so
#13 0xb4e22b83 in G4UImanager::ExecuteMacroFile(char const*) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4intercoms.so
#14 0xb4e0eabb in G4UIcontrolMessenger::SetNewValue(G4UIcommand*, G4String) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4intercoms.so
#15 0xb4e00a44 in G4UIcommand::DoIt(G4String) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4intercoms.so
#16 0xb4e22145 in G4UImanager::ApplyCommand(char const*) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4intercoms.so
#17 0xb4e22b2e in G4UImanager::ApplyCommand(G4String const&) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4intercoms.so
#18 0x00462bab in main ()
===========================================================


The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum http://root.cern.ch/forum
Only if you are really convinced it is a bug in ROOT then please submit a
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.
===========================================================
#10 0x0046f326 in B1Run::RecordEvent(G4Event const*) ()
#11 0xb71884a7 in G4WorkerRunManager::DoEventLoop(int, char const*, int) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so
#12 0xb7176cbc in G4RunManager::BeamOn(int, char const*, int) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so
#13 0xb718eec7 in G4WorkerRunManager::DoWork() () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so
#14 0xb719714f in G4MTRunManagerKernel::StartThread(void*) () at /home/wangzhaoqing/G4/geant-02/geant4.10.03.p01-install/lib/libG4run.so
#15 0xb4b043bd in start_thread (arg=0xb1c21b40) at pthread_create.c:463
#16 0xb4a1ae16 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108



I think the points are " G4WT0 > <trackerCollection> is not found. " or " G4VDecayChannel::FillDaughters [ kaon+ ]1:pi0 is not defined !! " ?? But i don not how to solve the problems.

Chen.

The error messages you point out come from Geant4; please check with them.

is not ROOT either; please check with whomever has written that code.

Me neither. But I bet you got that binary from somewhere, so maybe ask there? If you built B1 yourself then please show the CMakeLists.txt or Makefile or whatever you use to steer the build; that should allow us to fix the linker error.

Cheers, Axel.

Hello,
I have the very same problem as reported initially by ruolin, viz.:
LLVM SYMBOLS ARE EXPOSED TO CLING!
With about the same context: Ubuntu,v16.04/ROOT,v6.12 in a GEANT4-based executable, w/ OpenGL for graphics.

And my executable is not linked against libCling.

I could see that the subject was already discussed, 2 years ago, in the root-forum, see:


But there no working solution is proposed, apart from a workaround suggested by the author of the ticket himself, viz.: calling gROOT->GetInterpreter() before the initialization of the OpenGL view. That does not work around in my case.

Then, would anybody know of a solution?
Yann Bedfer

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.