# Error on TRandom3 while executing a Garfield++ program using mpiicc INTEL compiler for parallel simulations

**URL:** <https://root-forum.cern.ch/t/error-on-trandom3-while-executing-a-garfield-program-using-mpiicc-intel-compiler-for-parallel-simulations/29785>\
**Category:** Garfield++\
**Created:** [July 13, 2018, 5:28pm UTC](https://root-forum.cern.ch/t/error-on-trandom3-while-executing-a-garfield-program-using-mpiicc-intel-compiler-for-parallel-simulations/29785 "2018-07-13T17:28:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gcroci-CERN](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/dbc845/32.png) [@gcroci-CERN](https://root-forum.cern.ch/u/gcroci-CERN)\
**Post date:** [July 13, 2018, 5:28pm UTC](https://root-forum.cern.ch/t/error-on-trandom3-while-executing-a-garfield-program-using-mpiicc-intel-compiler-for-parallel-simulations/29785/1 "2018-07-13T17:28:44Z")

</div>

Dear responsible,  
I am trying to run a simulation using parallel garfield. I am using root 5.34.36 compiled with mpiicc INTEL compiler. Also parallel garfield is compiled using the same one as well as the the example I am trying to run (name BAND\_Fili).  
When running I get the error explained below.

# ========================================================== There was a crash (kSigSegmentationViolation). This is the entire stack trace of all threads:

# #0 0x00007fbcec53107a in \_GI\_\_waitpid (pid=27007, stat\_loc=stat\_loc entry=0x7ffd1e7ae270, options=options entry=0) at …/sysdeps/unix/sysv/linux/waitpid.c:29 #1 0x00007fbcec4a9fbb in do\_system (line=) at …/sysdeps/posix/system.c:148 #2 0x00007fbcf4e06ee0 in TUnixSystem::Exec (this=0x3501e200, shellcmd=0x3586bb40 “/home/garfield/root-build/etc/gdb-backtrace.sh 26993 1\>&2”) at /home/garfield/root/core/unix/src/TUnixSystem.cxx:2172 #3 0x00007fbcf4e07e64 in TUnixSystem::StackTrace (this=0x3501e200) at /home/garfield/root/core/unix/src/TUnixSystem.cxx:2419 #4 0x00007fbcf4e05b85 in TUnixSystem::DispatchSignals (this=0x3501e200, sig=kSigSegmentationViolation) at /home/garfield/root/core/unix/src/TUnixSystem.cxx:1294 #5 0x00007fbcf4dfd721 in SigHandler (sig=kSigSegmentationViolation) at /home/garfield/root/core/unix/src/TUnixSystem.cxx:440 #6 0x00007fbcf4dfda62 in sighandler (sig=11) at /home/garfield/root/core/unix/src/TUnixSystem.cxx:3750 #7 #8 0x00007fbcf036edb6 in TRandom3::Rndm (this=0x5987548 Garfield::randomEngine+8) at /home/garfield/root/math/mathcore/src/TRandom3.cxx:126 #9 0x000000000040e375 in Garfield::RandomEngineRoot::Draw (this=) at /home/garfield/pGarfield-toolkit-master/pGarfield/Include/RandomEngineRoot.hh:20 #10 Garfield::RndmUniform () at /home/garfield/pGarfield-toolkit-master/pGarfield/Include/Random.hh:16 #11 main (argc=1, argv=0x0) at Band\_Fili.C:160

# The lines below might hint at the cause of the crash. If they do not help you then please submit a bug report at [http://root.cern.ch/bugs](http://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.

#8 0x00007fbcf036edb6 in TRandom3::Rndm (this=0x5987548 Garfield::randomEngine+8) at /home/garfield/root/math/mathcore/src/TRandom3.cxx:126  
#9 0x000000000040e375 in Garfield::RandomEngineRoot::Draw (this=) at /home/garfield/pGarfield-toolkit-master/pGarfield/Include/RandomEngineRoot.hh:20  
#10 Garfield::RndmUniform () at /home/garfield/pGarfield-toolkit-master/pGarfield/Include/Random.hh:16:12 24911454 /usr/lib/x86\_64-linux-gnu/libXext.so.6.4.

At the moment I do not know how to solve this issue.  
Any help is very appreciated.

Thanks

Gabriele

---

<div class="post-metadata">

**Author:** ![ganis](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ganis/32/12484_2.png) [@ganis](https://root-forum.cern.ch/u/ganis)\
**Post date:** [July 17, 2018, 9:34am UTC](https://root-forum.cern.ch/t/error-on-trandom3-while-executing-a-garfield-program-using-mpiicc-intel-compiler-for-parallel-simulations/29785/2 "2018-07-17T09:34:38Z")

</div>

Hello,

I understand that the problem happens in ROOT, but without knowing how Garfield++ uses ROOT it is basically impossible to say anything. The line of the crash corresponds to a call to a function which called thousands of times. So the suspect is some form of corruption somewhere.

I think you should contact the Garfield developers and have a first debug run with them.

G Ganis

---

<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 31, 2018, 9:34am UTC](https://root-forum.cern.ch/t/error-on-trandom3-while-executing-a-garfield-program-using-mpiicc-intel-compiler-for-parallel-simulations/29785/3 "2018-07-31T09:34:43Z")

</div>

Closed on July 31, 2018, 9:34am UTC

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