Skip to content

Including LinkCollection doesn't work out of the box with ROOT #930

@dudarboh

Description

@dudarboh

Reproducible

$ source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh -r 2026-02-05 -d
$ root main.cpp
// main.cpp
#include <edm4hep/TrackerHitSimTrackerHitLinkCollection.h>

int main() {
    std::cout<<"Hello world!"<<std::endl;
    return 0;
}

Output

Processing main.cpp...
In module 'std' imported from input_line_1:1:
/cvmfs/sw.hsf.org/contrib/x86_64-almalinux9-gcc11.4.1-opt/gcc/14.2.0-yuyjov/lib/gcc/x86_64-pc-linux-gnu/14.2.0/../../../../include/c++/14.2.0/bits/stl_vector.h:369:35: error: arithmetic on a pointer to an incomplete type 'edm4hep::TrackerHit'
                      _M_impl._M_end_of_storage - _M_impl._M_start);
                      ~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/cvmfs/sw.hsf.org/contrib/x86_64-almalinux9-gcc11.4.1-opt/gcc/14.2.0-yuyjov/lib/gcc/x86_64-pc-linux-gnu/14.2.0/../../../../include/c++/14.2.0/bits/stl_vector.h:531:7: note: in instantiation of member function 'std::_Vector_base<edm4hep::TrackerHit, std::allocator<edm4hep::TrackerHit> >::~_Vector_base' requested here
      vector() = default;
      ^
libedm4hepDict dictionary payload:6363:28: note: in defaulted default constructor for 'std::vector<edm4hep::TrackerHit, std::allocator<edm4hep::TrackerHit> >' first required here
  obj->m_trackerHits = new std::vector<edm4hep::TrackerHit>();
                           ^
/cvmfs/sw-nightlies.hsf.org/key4hep/releases/2026-02-05/x86_64-almalinux9-gcc14.2.0-dbg/edm4hep/c877c7fadf412db3c1126e7b410d8074a78014f2_develop-pgsfeb/include/edm4hep/TrackerHit.h:40:49: note: in instantiation of template type alias 'TupleOfMutableTypes' requested here
  using InterfacedMutableTypes = podio::detail::TupleOfMutableTypes<interfaced_types>;
                                                ^
/cvmfs/sw-nightlies.hsf.org/key4hep/releases/2026-02-05/x86_64-almalinux9-gcc14.2.0-dbg/edm4hep/c877c7fadf412db3c1126e7b410d8074a78014f2_develop-pgsfeb/include/edm4hep/TrackerHit.h:25:7: note: definition of 'edm4hep::TrackerHit' is not complete until the closing '}'
class TrackerHit {
      ^
libedm4hepDict dictionary payload:21293:167: error: no member named 'TrackerHitSimTrackerHitLink' in namespace 'edm4hep'
  edm4hep::RecoMCParticleLink, edm4hep::CaloHitMCParticleLink, edm4hep::ClusterMCParticleLink, edm4hep::TrackMCParticleLink, edm4hep::CaloHitSimCaloHitLink, edm4hep::TrackerHitSimTrackerHitLink, edm4hep::VertexRecoParticleLink
                                                                                                                                                             ~~~~~~~~~^
/cvmfs/sw-nightlies.hsf.org/key4hep/releases/2026-02-05/x86_64-almalinux9-gcc14.2.0-dbg/edm4hep/c877c7fadf412db3c1126e7b410d8074a78014f2_develop-pgsfeb/include/edm4hep/TrackerHit.h:40:49: note: in instantiation of template type alias 'TupleOfMutableTypes' requested here
  using InterfacedMutableTypes = podio::detail::TupleOfMutableTypes<interfaced_types>;
                                                ^
libedm4hepDict dictionary payload:21297:217: error: no member named 'TrackerHitSimTrackerHitLinkCollection' in namespace 'edm4hep'
  edm4hep::RecoMCParticleLinkCollection, edm4hep::CaloHitMCParticleLinkCollection, edm4hep::ClusterMCParticleLinkCollection, edm4hep::TrackMCParticleLinkCollection, edm4hep::CaloHitSimCaloHitLinkCollection, edm4hep::TrackerHitSimTrackerHitLinkCollection, edm4hep::VertexRecoParticleLinkCollection
                                                                                                                                                                                                               ~~~~~~~~~^
In module 'std' imported from input_line_1:1:
/cvmfs/sw.hsf.org/contrib/x86_64-almalinux9-gcc11.4.1-opt/gcc/14.2.0-yuyjov/lib/gcc/x86_64-pc-linux-gnu/14.2.0/../../../../include/c++/14.2.0/bits/new_allocator.h:165:6: error: invalid application of 'alignof' to an incomplete type 'edm4hep::TrackerHit'
        if (alignof(_Tp) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
            ^~~~~~~~~~~~
/cvmfs/sw.hsf.org/contrib/x86_64-almalinux9-gcc11.4.1-opt/gcc/14.2.0-yuyjov/lib/gcc/x86_64-pc-linux-gnu/14.2.0/../../../../include/c++/14.2.0/bits/allocator.h:208:25: note: in instantiation of member function 'std::__new_allocator<edm4hep::TrackerHit>::deallocate' requested here
        __allocator_base<_Tp>::deallocate(__p, __n);
                               ^
/cvmfs/sw-nightlies.hsf.org/key4hep/releases/2026-02-05/x86_64-almalinux9-gcc14.2.0-dbg/edm4hep/c877c7fadf412db3c1126e7b410d8074a78014f2_develop-pgsfeb/include/edm4hep/TrackerHit.h:40:49: note: in instantiation of template type alias 'TupleOfMutableTypes' requested here
  using InterfacedMutableTypes = podio::detail::TupleOfMutableTypes<interfaced_types>;
                                                ^
/cvmfs/sw-nightlies.hsf.org/key4hep/releases/2026-02-05/x86_64-almalinux9-gcc14.2.0-dbg/edm4hep/c877c7fadf412db3c1126e7b410d8074a78014f2_develop-pgsfeb/include/edm4hep/TrackerHit.h:25:7: note: definition of 'edm4hep::TrackerHit' is not complete until the closing '}'
class TrackerHit {
      ^
In module 'std' imported from input_line_1:1:
/cvmfs/sw.hsf.org/contrib/x86_64-almalinux9-gcc11.4.1-opt/gcc/14.2.0-yuyjov/lib/gcc/x86_64-pc-linux-gnu/14.2.0/../../../../include/c++/14.2.0/bits/new_allocator.h:172:27: error: invalid application of 'sizeof' to an incomplete type 'edm4hep::TrackerHit'
        _GLIBCXX_OPERATOR_DELETE(_GLIBCXX_SIZED_DEALLOC(__p, __n));
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cvmfs/sw.hsf.org/contrib/x86_64-almalinux9-gcc11.4.1-opt/gcc/14.2.0-yuyjov/lib/gcc/x86_64-pc-linux-gnu/14.2.0/../../../../include/c++/14.2.0/bits/new_allocator.h:159:50: note: expanded from macro '_GLIBCXX_SIZED_DEALLOC'
# define _GLIBCXX_SIZED_DEALLOC(p, n) (p), (n) * sizeof(_Tp)
                                                 ^~~~~~~~~~~
/cvmfs/sw-nightlies.hsf.org/key4hep/releases/2026-02-05/x86_64-almalinux9-gcc14.2.0-dbg/edm4hep/c877c7fadf412db3c1126e7b410d8074a78014f2_develop-pgsfeb/include/edm4hep/TrackerHit.h:25:7: note: definition of 'edm4hep::TrackerHit' is not complete until the closing '}'
class TrackerHit {
      ^
In module 'std' imported from input_line_1:1:
/cvmfs/sw.hsf.org/contrib/x86_64-almalinux9-gcc11.4.1-opt/gcc/14.2.0-yuyjov/lib/gcc/x86_64-pc-linux-gnu/14.2.0/../../../../include/c++/14.2.0/type_traits:1049:21: error: static assertion failed due to requirement 'std::__is_complete_or_unbounded(std::__type_identity<edm4hep::TrackerHit>{})': template argument must be a complete class or an unbounded array
      static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}),
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cvmfs/sw.hsf.org/contrib/x86_64-almalinux9-gcc11.4.1-opt/gcc/14.2.0-yuyjov/lib/gcc/x86_64-pc-linux-gnu/14.2.0/../../../../include/c++/14.2.0/bits/stl_construct.h:188:21: note: in instantiation of template class 'std::is_destructible<edm4hep::TrackerHit>' requested here
      static_assert(is_destructible<_Value_type>::value,
                    ^
/cvmfs/sw.hsf.org/contrib/x86_64-almalinux9-gcc11.4.1-opt/gcc/14.2.0-yuyjov/lib/gcc/x86_64-pc-linux-gnu/14.2.0/../../../../include/c++/14.2.0/bits/alloc_traits.h:944:12: note: in instantiation of function template specialization 'std::_Destroy<edm4hep::TrackerHit *>' requested here
      std::_Destroy(__first, __last);
           ^
/cvmfs/sw.hsf.org/contrib/x86_64-almalinux9-gcc11.4.1-opt/gcc/14.2.0-yuyjov/lib/gcc/x86_64-pc-linux-gnu/14.2.0/../../../../include/c++/14.2.0/bits/stl_vector.h:735:7: note: in instantiation of function template specialization 'std::_Destroy<edm4hep::TrackerHit *, edm4hep::TrackerHit>' requested here
        std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
             ^
/cvmfs/sw.hsf.org/contrib/x86_64-almalinux9-gcc11.4.1-opt/gcc/14.2.0-yuyjov/lib/gcc/x86_64-pc-linux-gnu/14.2.0/../../../../include/c++/14.2.0/bits/unique_ptr.h:93:2: note: in instantiation of member function 'std::vector<edm4hep::TrackerHit, std::allocator<edm4hep::TrackerHit> >::~vector' requested here
        delete __ptr;
        ^
/cvmfs/sw.hsf.org/contrib/x86_64-almalinux9-gcc11.4.1-opt/gcc/14.2.0-yuyjov/lib/gcc/x86_64-pc-linux-gnu/14.2.0/../../../../include/c++/14.2.0/bits/unique_ptr.h:398:4: note: in instantiation of member function 'std::default_delete<std::vector<edm4hep::TrackerHit, std::allocator<edm4hep::TrackerHit> > >::operator()' requested here
          get_deleter()(std::move(__ptr));
          ^
/cvmfs/sw-nightlies.hsf.org/key4hep/releases/2026-02-05/x86_64-almalinux9-gcc14.2.0-dbg/edm4hep/c877c7fadf412db3c1126e7b410d8074a78014f2_develop-pgsfeb/include/edm4hep/TrackCollectionData.h:60:3: note: in instantiation of member function 'std::unique_ptr<std::vector<edm4hep::TrackerHit, std::allocator<edm4hep::TrackerHit> >, std::default_delete<std::vector<edm4hep::TrackerHit, std::allocator<edm4hep::TrackerHit> > > >::~unique_ptr' requested here
  ~TrackCollectionData() = default;
  ^
/cvmfs/sw-nightlies.hsf.org/key4hep/releases/2026-02-05/x86_64-almalinux9-gcc14.2.0-dbg/edm4hep/c877c7fadf412db3c1126e7b410d8074a78014f2_develop-pgsfeb/include/edm4hep/TrackerHit.h:40:49: note: in instantiation of template type alias 'TupleOfMutableTypes' requested here
  using InterfacedMutableTypes = podio::detail::TupleOfMutableTypes<interfaced_types>;
                                                ^

 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007f2fde0d9fba in wait4 () from /lib64/libc.so.6
#1  0x00007f2fde04f483 in do_system () from /lib64/libc.so.6
#2  0x00007f2fdead5604 in TUnixSystem::StackTrace() () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCore.so.6.38
#3  0x00007f2fdead9c24 in TUnixSystem::DispatchSignals(ESignals) () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCore.so.6.38
#4  <signal handler called>
#5  0x00007f2fdaa315d3 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#6  0x00007f2fd76c621e in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#7  0x00007f2fd778307c in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#8  0x00007f2fd76eda56 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#9  0x00007f2fd76c44a1 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#10 0x00007f2fd770c66b in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#11 0x00007f2fd76c2d39 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#12 0x00007f2fd7627d53 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#13 0x00007f2fd762da66 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#14 0x00007f2fd762db3b in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#15 0x00007f2fd762e69a in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#16 0x00007f2fd7666ee3 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#17 0x00007f2fd76b4b50 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#18 0x00007f2fd84ae518 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#19 0x00007f2fd8fb4db9 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#20 0x00007f2fd8fb5485 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#21 0x00007f2fd856e07d in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#22 0x00007f2fd8d980c8 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#23 0x00007f2fd8eb10d8 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#24 0x00007f2fd8f0d211 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#25 0x00007f2fd8efc443 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#26 0x00007f2fd8f00789 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#27 0x00007f2fd8d8826e in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#28 0x00007f2fd8d8c5de in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#29 0x00007f2fd82c6ae5 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#30 0x00007f2fd81e9de8 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#31 0x00007f2fd81eaed0 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#32 0x00007f2fd81eb3ab in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#33 0x00007f2fd820cba0 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#34 0x00007f2fd82168ca in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#35 0x00007f2fd821b3b4 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#36 0x00007f2fd821e686 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#37 0x00007f2fd821eb40 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#38 0x00007f2fd82212bc in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#39 0x00007f2fd81e72ad in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#40 0x00007f2fd82e0a81 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#41 0x00007f2fd82e197b in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#42 0x00007f2fd82e9b8d in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#43 0x00007f2fd8214094 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#44 0x00007f2fd8215890 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#45 0x00007f2fd81fa53a in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#46 0x00007f2fd82e9d82 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#47 0x00007f2fd82eab25 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#48 0x00007f2fd770cfc5 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#49 0x00007f2fd76c2b49 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#50 0x00007f2fd773d362 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#51 0x00007f2fd7762a02 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#52 0x00007f2fd760df27 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#53 0x00007f2fd76143c9 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#54 0x00007f2fd7615c86 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#55 0x00007f2fde958eca in TApplication::ExecuteFile(char const*, int*, bool) () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCore.so.6.38
#56 0x00007f2fdeccb17b in TRint::ProcessLineNr(char const*, char const*, int*) () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libRint.so.6.38
#57 0x00007f2fdecd36a1 in TRint::Run(bool) () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libRint.so.6.38
#58 0x00000000004031ad in main ()
===========================================================


The lines below might hint at the cause of the crash. If you see question
marks as part of the stack trace, try to recompile with debugging information
enabled and export CLING_DEBUG=1 environment variable before running.
You may get help by asking at the ROOT forum https://root.cern/forum
preferably using the command (.forum bug) in the ROOT prompt.
Only if you are really convinced it is a bug in ROOT then please submit a
report at https://root.cern/bugs or (preferably) using the command (.gh bug) in
the ROOT prompt. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#5  0x00007f2fdaa315d3 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#6  0x00007f2fd76c621e in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#7  0x00007f2fd778307c in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#8  0x00007f2fd76eda56 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#9  0x00007f2fd76c44a1 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#10 0x00007f2fd770c66b in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#11 0x00007f2fd76c2d39 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#12 0x00007f2fd7627d53 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#13 0x00007f2fd762da66 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#14 0x00007f2fd762db3b in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#15 0x00007f2fd762e69a in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#16 0x00007f2fd7666ee3 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#17 0x00007f2fd76b4b50 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#18 0x00007f2fd84ae518 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#19 0x00007f2fd8fb4db9 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#20 0x00007f2fd8fb5485 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#21 0x00007f2fd856e07d in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#22 0x00007f2fd8d980c8 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#23 0x00007f2fd8eb10d8 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#24 0x00007f2fd8f0d211 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#25 0x00007f2fd8efc443 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#26 0x00007f2fd8f00789 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#27 0x00007f2fd8d8826e in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#28 0x00007f2fd8d8c5de in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#29 0x00007f2fd82c6ae5 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#30 0x00007f2fd81e9de8 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#31 0x00007f2fd81eaed0 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#32 0x00007f2fd81eb3ab in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#33 0x00007f2fd820cba0 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#34 0x00007f2fd82168ca in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#35 0x00007f2fd821b3b4 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#36 0x00007f2fd821e686 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#37 0x00007f2fd821eb40 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#38 0x00007f2fd82212bc in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#39 0x00007f2fd81e72ad in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#40 0x00007f2fd82e0a81 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#41 0x00007f2fd82e197b in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#42 0x00007f2fd82e9b8d in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#43 0x00007f2fd8214094 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#44 0x00007f2fd8215890 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#45 0x00007f2fd81fa53a in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#46 0x00007f2fd82e9d82 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#47 0x00007f2fd82eab25 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#48 0x00007f2fd770cfc5 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#49 0x00007f2fd76c2b49 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#50 0x00007f2fd773d362 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#51 0x00007f2fd7762a02 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#52 0x00007f2fd760df27 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#53 0x00007f2fd76143c9 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#54 0x00007f2fd7615c86 in ?? () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCling.so
#55 0x00007f2fde958eca in TApplication::ExecuteFile(char const*, int*, bool) () from /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2025-12-21/x86_64-almalinux9-gcc14.2.0-opt/root/6.38.00-2jf5cm/lib/root/libCore.so.6.38
===========================================================

Note that this works fine

$ source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh -r 2026-02-05 -d
$ root
root [0] #include <edm4hep/TrackerHitSimTrackerHitLinkCollection.h>
root [1]

Additional Notes

I simply wanted to change the example in the key4hep-doc

#include <podio/Reader.h>

#include <edm4hep/MCParticleCollection.h>

int main() {
  auto reader = podio::makeReader("some_file_containing_edm4hep.data.root");

  // Loop over all events
  for (size_t i = 0; i < reader.getEvents(); ++i) {
    auto event = reader.readNextEvent();
    auto& mcParticles = event.get<edm4hep::MCParticleCollection>("MCParticles");

    // do more stuff with this event
  }

  return 0;
}

to iterate over LinkCollection rather than MCParticleCollection, and somehow, I struggle to find the correct combination of the necessary includes that would work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions