# Problem running ROOT Analysis Code for Garfield Data

**URL:** <https://root-forum.cern.ch/t/problem-running-root-analysis-code-for-garfield-data/52884>\
**Category:** Garfield++\
**Created:** [December 23, 2022, 1:51pm UTC](https://root-forum.cern.ch/t/problem-running-root-analysis-code-for-garfield-data/52884 "2022-12-23T13:51:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johann\_Mazzacaro](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/johann_mazzacaro/32/29046_2.png) [@Johann\_Mazzacaro](https://root-forum.cern.ch/u/Johann_Mazzacaro)\
**Post date:** [December 23, 2022, 1:51pm UTC](https://root-forum.cern.ch/t/problem-running-root-analysis-code-for-garfield-data/52884/1 "2022-12-23T13:51:27Z")

</div>

Hello everyone,

Im running into a problem by running an analysis code to data generated from Garfield in a Tree file from root. The error im getting in the terminal is as follow:

```auto
 ***Break*** segmentation violation

===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0 0x00007f15b656845a in __GI___ wait4 (pid=2572, stat_loc=stat_loc
entry=0x7ffcdf3c55d8, options=options
entry=0, usage=usage
entry=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
#1 0x00007f15b656841b in __GI___ waitpid (pid=<optimized out>, stat_loc=stat_loc
entry=0x7ffcdf3c55d8, options=options
entry=0) at ./posix/waitpid.c:38
#2 0x00007f15b64cebcb in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:171
#3 0x00007f15b78ae2d4 in TUnixSystem::StackTrace() () from /home/lsd/root/lib/libCore.so.6.26
#4 0x00007f15b78ab5e5 in TUnixSystem::DispatchSignals(ESignals) () from /home/lsd/root/lib/libCore.so.6.26
#5 <signal handler called>
#6 0x00007f15b7272534 in TBufferFile::ReadFastArray(float*, int) () from /home/lsd/root/lib/libRIO.so.6.26
#7 0x00007f159bdf3ee4 in TBranch::ReadLeavesImpl(TBuffer&) () from /home/lsd/root/lib/libTree.so.6.26.02
#8 0x00007f159bdf8ca0 in TBranch::GetEntry(long long, int) () from /home/lsd/root/lib/libTree.so.6.26.02
#9 0x00007f159be73ac8 in TTree::GetEntry(long long, int) () from /home/lsd/root/lib/libTree.so.6.26.02
#10 0x000055a4f8dbd5d1 in main ()
===========================================================

The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum https://root.cern/forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at https://root.cern/bugs Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#6 0x00007f15b7272534 in TBufferFile::ReadFastArray(float*, int) () from /home/lsd/root/lib/libRIO.so.6.26
#7 0x00007f159bdf3ee4 in TBranch::ReadLeavesImpl(TBuffer&) () from /home/lsd/root/lib/libTree.so.6.26.02
#8 0x00007f159bdf8ca0 in TBranch::GetEntry(long long, int) () from /home/lsd/root/lib/libTree.so.6.26.02
#9 0x00007f159be73ac8 in TTree::GetEntry(long long, int) () from /home/lsd/root/lib/libTree.so.6.26.02
#10 0x000055a4f8dbd5d1 in main ()
===========================================================

```

If someone could please help me with this, I dont know what is happening.

Thank you

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [December 25, 2022, 7:41pm UTC](https://root-forum.cern.ch/t/problem-running-root-analysis-code-for-garfield-data/52884/2 "2022-12-25T19:41:58Z")

</div>

Hi,  
hard to say… What code did you use for filling the tree and for reading it back from the file?

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [January 8, 2023, 7:42pm UTC](https://root-forum.cern.ch/t/problem-running-root-analysis-code-for-garfield-data/52884/3 "2023-01-08T19:42:18Z")

</div>

Closed on January 8, 2023, 7:42pm UTC

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