Arithmetic Exception in urqmd
One of the example code Hybrid_MC.cpp
crashes with an Arithmetic Exception. This happens in every single shower for me for any seed.
There is a backtrace when hybrid_MC
was run with ./hybrid_MC 4 2 1000 5
Program received signal SIGFPE, Arithmetic exception.
0x00005555563fb625 in master.0.crossx (__entry=0, sigf=<error reading variable: Cannot access memory at address 0x0>, jf=<error reading variable: Cannot access memory at address 0x0>, ef=<error reading variable: Cannot access memory at
address 0x0>, if=<error reading variable: Cannot access memory at address 0x0>, sig=24.338033340016075, mm2=0.1379999965429306, iiz2=2, ii2=101, mm1=0.93800002336502075, iiz1=1, ii1=1, e=4.8779425557973246, iio=25) at /home/pranav/work-
stuff/CORSIKA/corsika/modules/urqmd/make22.f:2301
2301 & .and.e.gt.meltpoint2) then
(gdb) bt
#0 0x00005555563fb625 in master.0.crossx (__entry=0, sigf=<error reading variable: Cannot access memory at address 0x0>, jf=<error reading variable: Cannot access memory at address 0x0>,
ef=<error reading variable: Cannot access memory at address 0x0>, if=<error reading variable: Cannot access memory at address 0x0>, sig=24.338033340016075, mm2=0.1379999965429306, iiz2=2, ii2=101, mm1=0.93800002336502075, iiz1=1,
ii1=1, e=4.8779425557973246, iio=25) at /home/pranav/work-stuff/CORSIKA/corsika/modules/urqmd/make22.f:2301
#1 0x00005555563f9077 in crossx (iio=25, e=4.8779425557973246, ii1=1, iiz1=1, mm1=0.93800002336502075, ii2=101, iiz2=2, mm2=0.1379999965429306, sig=24.338033340016075)
at /home/pranav/work-stuff/CORSIKA/corsika/modules/urqmd/make22.f:1856
#2 0x00005555563eca9e in sigtot (ind1=6, ind2=17, sqrts=4.8779425557973246) at /home/pranav/work-stuff/CORSIKA/corsika/modules/urqmd/coload.f:57
#3 0x00005555563ebb83 in collupd (i=6, all=-1) at /home/pranav/work-stuff/CORSIKA/corsika/modules/urqmd/coload.f:424
#4 0x00005555563ee550 in colload () at /home/pranav/work-stuff/CORSIKA/corsika/modules/urqmd/coload.f:248
#5 0x00005555563e34e3 in urqmd (iflbmax=0) at /home/pranav/work-stuff/CORSIKA/corsika/modules/urqmd/urqmd.f:138
#6 0x00005555557594cb in corsika::urqmd::UrQMD::doInteraction<corsika::SecondaryView<corsika::CombinedStackImpl<corsika::CombinedStackImpl<corsika::nuclear_stack::NuclearStackExtensionImpl<corsika::VectorStackImpl>, corsika::node::GeometryData<corsika::Environment<corsika::IMediumPropertyModel<corsika::IMagneticFieldModel<corsika::IMediumModel> > > > >, corsika::history::HistoryData<corsika::history::Event> >, corsika::setup::detail::StackWithHistoryInterface, corsika::history::HistorySecondaryProducer> > (this=0x7ffffff8d820, view=...) at /home/pranav/work-stuff/CORSIKA/corsika-install/include/corsika/detail/modules/urqmd/UrQMD.inl:298