# RDataFrame for a TTree and its Friend

**URL:** <https://root-forum.cern.ch/t/rdataframe-for-a-ttree-and-its-friend/55859>\
**Category:** ROOT\
**Tags:** rdataframe\
**Created:** [July 28, 2023, 12:30pm UTC](https://root-forum.cern.ch/t/rdataframe-for-a-ttree-and-its-friend/55859 "2023-07-28T12:30:46Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [August 9, 2023, 3:28pm UTC](https://root-forum.cern.ch/t/rdataframe-for-a-ttree-and-its-friend/55859/6 "2023-08-09T15:28:52Z")

</div>

Hi @Alvaro_Lopez_Solis ,

that looks like a memory corruption issue, the most likely cause is a bug in the analysis code that e.g. writes over memory that it should not write over (beyond the last element of an array, for example), eventually causing problems in ~random places.

This is just a guess of course, based on the fact that a crash like that deep in the belly of ROOT I/O simply _should not happen_ in normal conditions. It could also be that you are hitting a real bug we haven’t seen before, it’s just less likely.

One thing you can try is run the program (or a stripped down version of the program that still reproduces the crash) [under valgrind](https://root-forum.cern.ch/t/valgrind-and-root/28506), which will detect _some_ classes of invalid memory accesses.

If that fails we’ll need a self-contained reproducer, as stripped down as possible, so that we can take a look on our side.

Cheers,  
Enrico

---

_[View the full topic](https://root-forum.cern.ch/t/rdataframe-for-a-ttree-and-its-friend/55859)._
