Hello,
I am trying to run iterate_copy.C, which is supposed to loop over all files in a directory named Data, and run the program testprog.C on these files.
When I try to run this on macOS High Sierra (10.13.3), gcc version 4.2.1, ROOT version 6.12/06, I get the following error:
file name: reco_November2017T90PHscan_PH0_.root
*** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[] (no debug info)
[] (no debug info)
[] (no debug info)
[/Users/djaroslawski/Documents/root/lib/libCling.so] cling::IncrementalExecutor::executeWrapper(llvm::StringRef, cling::Value*) (no debug info)
[/Users/djaroslawski/Documents/root/lib/libCling.so] cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) (no debug info)
[/Users/djaroslawski/Documents/root/lib/libCling.so] cling::Interpreter::EvaluateInternal(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) (no debug info)
[/Users/djaroslawski/Documents/root/lib/libCling.so] cling::Interpreter::process(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, cling::Value*, cling::Transaction**, bool) (no debug info)
[/Users/djaroslawski/Documents/root/lib/libCling.so] cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) (no debug info)
[/Users/djaroslawski/Documents/root/lib/libCling.so] HandleInterpreterException(cling::MetaProcessor*, char const*, cling::Interpreter::CompilationResult&, cling::Value*) (no debug info)
[/Users/djaroslawski/Documents/root/lib/libCling.so] TCling::ProcessLine(char const*, TInterpreter::EErrorCode*) (no debug info)
[/Users/djaroslawski/Documents/root/lib/libRint.so] TRint::ProcessLineNr(char const*, char const*, int*) (no debug info)
[/Users/djaroslawski/Documents/root/lib/libRint.so] TRint::HandleTermInput() (no debug info)
[/Users/djaroslawski/Documents/root/lib/libCore.so] TUnixSystem::CheckDescriptors() (no debug info)
[/Users/djaroslawski/Documents/root/lib/libCore.so] TMacOSXSystem::DispatchOneEvent(bool) (no debug info)
[/Users/djaroslawski/Documents/root/lib/libCore.so] TSystem::InnerLoop() (no debug info)
[/Users/djaroslawski/Documents/root/lib/libCore.so] TSystem::Run() (no debug info)
[/Users/djaroslawski/Documents/root/lib/libCore.so] TApplication::Run(bool) (no debug info)
[/Users/djaroslawski/Documents/root/lib/libRint.so] TRint::Run(bool) (no debug info)
[/Users/djaroslawski/Documents/root/bin/root.exe] main (no debug info)
[/usr/lib/system/libdyld.dylib] start (no debug info)
Root >
HOWEVER, when I run the EXACT same program on our server, which has versions:
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18), ROOT 6.08/07
The code works as intended when not on macOS. Can anyone explain this phenomenon please?
Thanks you so much for your time and effort.
Attached is the google drive link with the relevant files in a tarball.
https://drive.google.com/file/d/1YNfTO6KvtQFJ5QvYrPFwAckLd20aOfuS