Hi all,
now playing a bit with positioning of ROOT::EnableImplicitMT(1); in the code, I can get a bus error if ‘ROOT::EnableImplicitMT(1);’ is called before I create my ‘event loop class’ that initializes the TTree setup:
*** Break *** bus error
===========================================================
There was a crash.
This is the entire stack trace of all threads:
#0 0x00002aaaaf797e0a in waitpid () from /lib64/libc.so.6
#1 0x00002aaaaf7154af in do_system () from /lib64/libc.so.6
#2 0x00002aaaab295093 in TUnixSystem::Exec (shellcmd=, this=0x63ab80) at /global/common/software/atlas/root-6.18.04/core/unix/src/TUnixSystem.cxx:2106
#3 TUnixSystem::StackTrace (this=0x63ab80) at /global/common/software/atlas/root-6.18.04/core/unix/src/TUnixSystem.cxx:2400
#4 0x00002aaaab2978d4 in TUnixSystem::DispatchSignals (this=0x63ab80, sig=kSigBus) at /global/common/software/atlas/root-6.18.04/core/unix/src/TUnixSystem.cxx:3631
#5
#6 std::vector<float, std::allocator >::resize (__new_size=, this=) at /global/common/software/atlas/build_root-6.18.04/include/Bytes.h:323
#7 TStreamerInfoActions::VectorLooper::ReadCollectionBasicType (buf=…, addr=, conf=0x1771fd0) at /global/common/software/atlas/root-6.18.04/io/io/src/TStreamerInfoActions.cxx:1881
#8 0x00002aaaab8bdf85 in TStreamerInfoActions::TConfiguredAction::operator() (this=0x1771f10, this=0x1771f10, object=0x732e636f72506974, buffer=…) at /global/common/software/atlas/build_root-6.18.04/include/TStreamerInfoActions.h:124
#9 TBufferFile::ApplySequence (this=0x48fe570, sequence=…, obj=0x732e636f72506974) at /global/common/software/atlas/root-6.18.04/io/io/src/TBufferFile.cxx:3564
#10 0x00002aaaad2bd31d in TBranchElement::ReadLeavesMember (this=0x2735050, b=…) at /global/common/software/atlas/root-6.18.04/tree/tree/src/TBranchElement.cxx:4421
#11 0x00002aaaad2b5417 in TBranch::GetEntry (this=this
entry=0x2735050, entry=entry
entry=10, getall=getall
entry=0) at /global/common/software/atlas/root-6.18.04/tree/tree/src/TBranch.cxx:1626
#12 0x00002aaaad2c5529 in TBranchElement::GetEntry (this=0x2735050, entry=10, getall=0) at /global/common/software/atlas/root-6.18.04/tree/tree/src/TBranchElement.cxx:2652
#13 0x00002aaaad31e639 in TTree::<lambda()>::operator()(void) const (__closure=0x7fffffff6450) at /global/common/software/atlas/root-6.18.04/tree/tree/src/TTree.cxx:5486
#14 0x00002aaaab5ec6df in std::function<void (unsigned int)>::operator()(unsigned int) const (__args#0=, this=) at /opt/gcc/8.2.0/snos/include/g++/bits/std_function.h:260
#15 tbb::internal::parallel_for_body<std::function<void (unsigned int)>, unsigned int>::operator()(tbb::blocked_range const&) const (r=…, this=0x2aaabe70fd58) at /global/common/software/atlas/build_root-6.18.04/include/tbb/parallel_for.h:178
#16 tbb::interface9::internal::start_for<tbb::blocked_range, tbb::internal::parallel_for_body<std::function<void (unsigned int)>, unsigned int>, tbb::auto_partitioner const>::run_body(tbb::blocked_range&) (r=…, this=0x2aaabe70fd40) at /global/common/software/atlas/build_root-6.18.04/include/tbb/parallel_for.h:116
#17 tbb::interface9::internal::dynamic_grainsize_mode<tbb::interface9::internal::adaptive_mode<tbb::interface9::internal::auto_partition_type> >::work_balance<tbb::interface9::internal::start_for<tbb::blocked_range, tbb::internal::parallel_for_body<std::function<void (unsigned int)>, unsigned int>, tbb::auto_partitioner const>, tbb::blocked_range >(tbb::interface9::internal::start_for<tbb::blocked_range, tbb::internal::parallel_for_body<std::function<void (unsigned int)>, unsigned int>, tbb::auto_partitioner const>&, tbb::blocked_range&) (range=…, start=…, this=0x2aaabe70fd68) at /global/common/software/atlas/build_root-6.18.04/include/tbb/partitioner.h:454
#18 tbb::interface9::internal::partition_type_base<tbb::interface9::internal::auto_partition_type>::execute<tbb::interface9::internal::start_for<tbb::blocked_range, tbb::internal::parallel_for_body<std::function<void (unsigned int)>, unsigned int>, tbb::auto_partitioner const>, tbb::blocked_range >(tbb::interface9::internal::start_for<tbb::blocked_range, tbb::internal::parallel_for_body<std::function<void (unsigned int)>, unsigned int>, tbb::auto_partitioner const>&, tbb::blocked_range&) (range=…, start=…, this=0x2aaabe70fd68) at /global/common/software/atlas/build_root-6.18.04/include/tbb/partitioner.h:257
#19 tbb::interface9::internal::start_for<tbb::blocked_range, tbb::internal::parallel_for_body<std::function<void (unsigned int)>, unsigned int>, tbb::auto_partitioner const>::execute() (this=0x2aaabe70fd40) at /global/common/software/atlas/build_root-6.18.04/include/tbb/parallel_for.h:143
#20 0x00002aaab03955c5 in tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::local_wait_for_all (this=0x2aaabe70b200, parent=…, child=) at …/…/include/tbb/machine/gcc_ia32_common.h:100
#21 0x00002aaab0392ac8 in tbb::internal::generic_scheduler::local_spawn_root_and_wait (this=0x2aaabe70b200, first=0x2aaabe70fd40, next=
0x2aaabe70fd38: 0x0) at …/…/src/tbb/scheduler_utility.h:45
#22 0x00002aaaab5eab78 in tbb::task::spawn_root_and_wait (root=…) at /global/common/software/atlas/build_root-6.18.04/include/tbb/task.h:921
#23 tbb::interface9::internal::start_for<tbb::blocked_range, tbb::internal::parallel_for_body<std::function<void (unsigned int)>, unsigned int>, tbb::auto_partitioner const>::run(tbb::blocked_range const&, tbb::internal::parallel_for_body<std::function<void (unsigned int)>, unsigned int> const&, tbb::auto_partitioner const&) (partitioner=…, body=…, range=…) at /global/common/software/atlas/build_root-6.18.04/include/tbb/parallel_for.h:96
#24 tbb::parallel_for<tbb::blocked_range, tbb::internal::parallel_for_body<std::function<void (unsigned int)>, unsigned int> >(tbb::blocked_range const&, tbb::internal::parallel_for_body<std::function<void (unsigned int)>, unsigned int> const&, tbb::auto_partitioner const&) (partitioner=…, body=…, range=…) at /global/common/software/atlas/build_root-6.18.04/include/tbb/parallel_for.h:216
#25 tbb::strict_ppl::parallel_for_impl<unsigned int, std::function<void (unsigned int)>, tbb::auto_partitioner const>(unsigned int, unsigned int, unsigned int, std::function<void (unsigned int)> const&, tbb::auto_partitioner const&) (first=0, last=, step=1, f=…, partitioner=…) at /global/common/software/atlas/build_root-6.18.04/include/tbb/parallel_for.h:284
#26 0x00002aaaab5eabde in tbb::strict_ppl::parallel_for_impl<unsigned int, std::function<void (unsigned int)>, tbb::auto_partitioner const>(unsigned int, unsigned int, unsigned int, std::function<void (unsigned int)> const&, tbb::auto_partitioner const&) (partitioner=…, f=…, step=, last=, first=) at /global/common/software/atlas/root-6.18.04/core/imt/src/TThreadExecutor.cxx:150
#27 tbb::strict_ppl::parallel_for<unsigned int, std::function<void (unsigned int)> >(unsigned int, unsigned int, unsigned int, std::function<void (unsigned int)> const&) (f=…, step=, last=, first=) at /global/common/software/atlas/build_root-6.18.04/include/tbb/parallel_for.h:291
#28 ROOT::TThreadExecutor::<lambda()>::operator() (__closure=) at /global/common/software/atlas/root-6.18.04/core/imt/src/TThreadExecutor.cxx:150
#29 tbb::interface7::internal::delegated_function<const ROOT::TThreadExecutor::ParallelFor(unsigned int, unsigned int, unsigned int, const std::function<void(unsigned int)>&)::<lambda()>, void>::operator()(void) const (this=) at /global/common/software/atlas/build_root-6.18.04/include/tbb/task_arena.h:94
#30 0x00002aaab038f443 in tbb::interface7::internal::isolate_within_arena (d=…, reserved=reserved
entry=0) at …/…/src/tbb/arena.cpp:994
#31 0x00002aaaab5ebd45 in tbb::interface7::internal::isolate_impl<void, const ROOT::TThreadExecutor::ParallelFor(unsigned int, unsigned int, unsigned int, const std::function<void(unsigned int)>&)::<lambda()> > (f=…) at /global/common/software/atlas/root-6.18.04/core/imt/src/TThreadExecutor.cxx:149
#32 tbb::interface7::this_task_arena::isolate<ROOT::TThreadExecutor::ParallelFor(unsigned int, unsigned int, unsigned int, const std::function<void(unsigned int)>&)::<lambda()> > (f=…) at /global/common/software/atlas/build_root-6.18.04/include/tbb/task_arena.h:381
#33 ROOT::TThreadExecutor::ParallelFor(unsigned int, unsigned int, unsigned int, std::function<void (unsigned int)> const&) (this=this
entry=0x7fffffff6420, start=, start
entry=0, end=, step=, step
entry=1, f=…) at /global/common/software/atlas/root-6.18.04/core/imt/src/TThreadExecutor.cxx:149
#34 0x00002aaaad322bde in ROOT::TThreadExecutor::Foreach<TTree::GetEntry(Long64_t, Int_t)::<lambda()> > (nChunks=0, nTimes=, func=…, this=0x7fffffff6420) at /opt/gcc/8.2.0/snos/include/g++/new:169
#35 TTree::GetEntry (this=0x13cca30, entry=, getall=) at /global/common/software/atlas/root-6.18.04/tree/tree/src/TTree.cxx:5497
#36 0x00002aaaaad14273 in Charm::EventLoopBase::loop(long long, long long) () from /global/homes/m/mmuskinj/work/build/charmpp/src/libCharmpp.so
#37 0x00002aaaaad12d6c in Charm::EventLoopBase::run(long long, long long) () from /global/homes/m/mmuskinj/work/build/charmpp/src/libCharmpp.so
#38 0x00000000004017e2 in main ()