# Crash during example run

**URL:** <https://root-forum.cern.ch/t/crash-during-example-run/45796>\
**Category:** Garfield++\
**Created:** [July 11, 2021, 3:35pm UTC](https://root-forum.cern.ch/t/crash-during-example-run/45796 "2021-07-11T15:35:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tahany](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/c6cbf5/32.png) [@Tahany](https://root-forum.cern.ch/u/Tahany)\
**Post date:** [July 11, 2021, 3:35pm UTC](https://root-forum.cern.ch/t/crash-during-example-run/45796/1 "2021-07-11T15:35:56Z")

</div>

Hi,

I was running RPC example by using nebem as a field solver on cern lxplus but found this crash , am not sure about the nature of this issue !!so i would be pleased for any help to understand and solve .

> Preparing weighting field for 1-th set.  
> Computed weighting field solution  
> Computed primitive-averaged weighting field solutions  
> neBEMWtFldFastVol.inp absent … assuming OptWtFldFastVol = 0 …
> 
> \*\*\* Break \*\*\* segmentation violation
> 
> # =========================================================== There was a crash. This is the entire stack trace of all threads:
> 
> Thread 2 (Thread 0x7f3d2ef67700 (LWP 3075)):  
> #0 futex\_wait (val=57521536, addr=0x59b1894) at /build/gcc/WORK/build/contrib/gcc-10.1.0/src/gcc/10.1.0/libgomp/config/linux/x86/futex.h:44  
> #1 do\_wait (val=57521536, addr=0x59b1894) at /build/gcc/WORK/build/contrib/gcc-10.1.0/src/gcc/10.1.0/libgomp/config/linux/wait.h:67  
> #2 gomp\_barrier\_wait\_end (bar=0x59b1890, state=57521536) at /build/gcc/WORK/build/contrib/gcc-10.1.0/src/gcc/10.1.0/libgomp/config/linux/bar.c:48  
> #3 0x00007f3d49312de0 in gomp\_simple\_barrier\_wait (bar=0x59b1890) at /build/gcc/WORK/build/contrib/gcc-10.1.0/src/gcc/10.1.0/libgomp/config/posix/simple-bar.h:60  
> #4 gomp\_thread\_start (xdata=) at /build/gcc/WORK/build/contrib/gcc-10.1.0/src/gcc/10.1.0/libgomp/team.c:127  
> #5 0x00007f3db14e0ea5 in start\_thread () from /lib64/libpthread.so.0  
> #6 0x00007f3d494369fd in clone () from /lib64/libc.so.6
> 
> # Thread 1 (Thread 0x7f3db5037c00 (LWP 2447)): #0 0x00007f3d493fd549 in waitpid () from /lib64/libc.so.6 #1 0x00007f3d4937af62 in do\_system () from /lib64/libc.so.6 #2 0x00007f3d4937b311 in system () from /lib64/libc.so.6 #3 0x00007f3db1281a3c in TUnixSystem::StackTrace() () from /cvmfs/sft.cern.ch/lcg/releases/ROOT/v6.22.06-1d426/x86\_64-centos7-gcc10-opt/lib/libCore.so #4 0x00007f3db127f055 in TUnixSystem::DispatchSignals(ESignals) () from /cvmfs/sft.cern.ch/lcg/releases/ROOT/v6.22.06-1d426/x86\_64-centos7-gcc10-opt/lib/libCore.so #5 #6 0x00007f3db2a65260 in neBEM::neBEMPrepareWeightingField(int, int\*) () from /afs/cern.ch/user/t/tabdelha/garfield/garfieldpp/build/libGarfield.so.0.3.0 #7 0x00007f3db28dad50 in Garfield::ComponentNeBem3d::Initialise() () from /afs/cern.ch/user/t/tabdelha/garfield/garfieldpp/build/libGarfield.so.0.3.0 #8 0x0000000000407d58 in main ()
> 
> # The lines below might hint at the cause of the crash. You may get help by asking at the ROOT forum [ROOT Forum](https://root.cern.ch/forum) Only if you are really convinced it is a bug in ROOT then please submit a report at [Sign in to GitHub · GitHub](https://root.cern.ch/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 0x00007f3db2a65260 in neBEM::neBEMPrepareWeightingField(int, int\*) () from /afs/cern.ch/user/t/tabdelha/garfield/garfieldpp/build/libGarfield.so.0.3.0 #7 0x00007f3db28dad50 in Garfield::ComponentNeBem3d::Initialise() () from /afs/cern.ch/user/t/tabdelha/garfield/garfieldpp/build/libGarfield.so.0.3.0 #8 0x0000000000407d58 in main ()

---

<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:** [July 12, 2021, 6:58am UTC](https://root-forum.cern.ch/t/crash-during-example-run/45796/2 "2021-07-12T06:58:15Z")

</div>

Hi,  
is this the neBEM RPC example out of the box or a modified version?

PS: as we discussed some time ago, the `ComponentParallelPlate` class might be more suitable for simulating an RPC:  
[https://garfieldpp.web.cern.ch/examples/rpc/](https://garfieldpp.web.cern.ch/examples/rpc/)

---

<div class="post-metadata">

**Author:** ![Tahany](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/c6cbf5/32.png) [@Tahany](https://root-forum.cern.ch/u/Tahany)\
**Post date:** [July 12, 2021, 10:18am UTC](https://root-forum.cern.ch/t/crash-during-example-run/45796/3 "2021-07-12T10:18:16Z")

</div>

Thanks @hschindl for your reply !  
Yes it is a modified version of neBEM RPC . i am also working on RPC example you have mentioned. is that issue has a relation to the used field solver !!

---

<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:** [July 14, 2021, 6:19am UTC](https://root-forum.cern.ch/t/crash-during-example-run/45796/4 "2021-07-14T06:19:01Z")

</div>

Hi,  
can you post a minimal working version of your modified neBEM RPC program which reproduces this crash?

---

<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:** [July 28, 2021, 9:42am UTC](https://root-forum.cern.ch/t/crash-during-example-run/45796/6 "2021-07-28T09:42:10Z")

</div>

Closed on July 28, 2021, 9:42am UTC

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