# Seg Violation when filling TH3D

**URL:** <https://root-forum.cern.ch/t/seg-violation-when-filling-th3d/59454>\
**Category:** Newbie\
**Created:** [May 24, 2024, 2:31pm UTC](https://root-forum.cern.ch/t/seg-violation-when-filling-th3d/59454 "2024-05-24T14:31:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LiamSchmidt](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/ed655f/32.png) [@LiamSchmidt](https://root-forum.cern.ch/u/LiamSchmidt)\
**Post date:** [May 24, 2024, 2:31pm UTC](https://root-forum.cern.ch/t/seg-violation-when-filling-th3d/59454/1 "2024-05-24T14:31:35Z")

</div>

* * *

Im trying to fill a TH3D histogram but it keep segfaulting. Any ideas? it seems the error is coming from libHist.so.26. I tried any of the filling, addbincontent commands, nothing works

_ROOT Version:_ 6.28.10  
Ubuntu 22.04

* * *

 ![Screenshot from 2024-05-24 10-30-31](https://root-forum.cern.ch/uploads/default/original/3X/1/b/1b4c57ddafe01c821e8d81e3f542585916238a1c.png)

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 24, 2024, 2:41pm UTC](https://root-forum.cern.ch/t/seg-violation-when-filling-th3d/59454/2 "2024-05-24T14:41:12Z")

</div>

Welcome to the ROOT Forum!  
So you want to create an histogram of 10000 x 10000 x 10000 bins of doubles? For that you need 8 terabytes of memory…

---

<div class="post-metadata">

**Author:** ![LiamSchmidt](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/ed655f/32.png) [@LiamSchmidt](https://root-forum.cern.ch/u/LiamSchmidt)\
**Post date:** [May 24, 2024, 2:46pm UTC](https://root-forum.cern.ch/t/seg-violation-when-filling-th3d/59454/3 "2024-05-24T14:46:40Z")

</div>

ah yes, thank you!

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 24, 2024, 2:47pm UTC](https://root-forum.cern.ch/t/seg-violation-when-filling-th3d/59454/4 "2024-05-24T14:47:15Z")

</div>

You’re welcome
