Problem 257 - Crash on G4NeutronHPElastic
Summary: Crash on G4NeutronHPElastic
Status: CLOSED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/hadronic/models (show other problems)
Version: 3.1
Hardware: PC Linux
: P2 normal
Assignee: Hans-Peter.Wellisch
URL:
Depends on:
Blocks:
 
Reported: 2001-05-18 11:23 CEST by Isidro.Gonzalez
Modified: 2001-06-28 12:15 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Isidro.Gonzalez 2001-05-18 11:23:27 CEST
I am trying to simulate some neutron transport benchmark experiment. So I found
that Test11 had a physics list which seemed to implement a lot of processes for
neutrons. I have incorporated and modified slightly (to make it easier to
configure) into my code. After 165 events I get a crash with the folloing stack:

========= STACK
#0  0x40465471 in G4InterpolationManager::GetScheme (this=0x82e1378, index=1) at
include/G4InterpolationManager.hh:113
#1  0x4045aeca in G4NeutronHPVector::GetXsec (this=0x82e1368, e=-1) at
src/G4NeutronHPVector.cc:148
#2  0x40464fd3 in G4NeutronHPVector::GetY (this=0x82e1368, x=-1) at
include/G4NeutronHPVector.hh:130
#3  0x40470c52 in G4NeutronHPPartial::GetY (this=0x82de808, i=67, e=-1) at
include/G4NeutronHPPartial.hh:98
#4  0x40454aea in G4NeutronHPPartial::Sample (this=0x82de808,
x=20.245500748434971) at src/G4NeutronHPPartial.cc:118
#5  0x4042f710 in G4NeutronHPElasticFS::ApplyYourself (this=0x82f31a0,
theTrack=@0x8076650) at src/G4NeutronHPElasticFS.cc:145
#6  0x40424b0a in G4NeutronHPChannel::ApplyYourself (this=0x81a27a8,
theTrack=@0x8076650, anIsotope=-1) at src/G4NeutronHPChannel.cc:204
#7  0x4042e542 in G4NeutronHPElastic::ApplyYourself (this=0x819a240,
aTrack=@0x8076650, aTargetNucleus=@0x8191ca0) at src/G4NeutronHPElastic.cc:60
#8  0x40ceaba8 in G4HadronicProcess::GeneralPostStepDoIt () from
/home/iglez2/geant4/geant4.3.1/lib/Linux-g++/libG4hadronic_mgt.so
#9  0x40b75b86 in G4HadronElasticProcess::PostStepDoIt () from
/home/iglez2/geant4/geant4.3.1/lib/Linux-g++/libG4hadronic_proc.so
#10 0x40df3148 in G4SteppingManager::InvokePostStepDoItProcs () from
/home/iglez2/geant4/geant4.3.1/lib/Linux-g++/libG4tracking.so
#11 0x40df1379 in G4SteppingManager::Stepping () from
/home/iglez2/geant4/geant4.3.1/lib/Linux-g++/libG4tracking.so
#12 0x40df8e5f in G4TrackingManager::ProcessOneTrack () from
/home/iglez2/geant4/geant4.3.1/lib/Linux-g++/libG4tracking.so
#13 0x40d923eb in G4EventManager::ProcessOneEvent () from
/home/iglez2/geant4/geant4.3.1/lib/Linux-g++/libG4event.so
#14 0x40b3f112 in G4RunManager::DoEventLoop () from
/home/iglez2/geant4/geant4.3.1/lib/Linux-g++/libG4run.so
#15 0x40b3ec1d in G4RunManager::BeamOn () from
/home/iglez2/geant4/geant4.3.1/lib/Linux-g++/libG4run.so
#16 0x40b45e56 in G4RunMessenger::SetNewValue () from
/home/iglez2/geant4/geant4.3.1/lib/Linux-g++/libG4run.so
#17 0x4121c57b in G4UIcommand::DoIt () from
/home/iglez2/geant4/geant4.3.1/lib/Linux-g++/libG4intercoms.so
#18 0x4122c097 in G4UImanager::ApplyCommand () from
/home/iglez2/geant4/geant4.3.1/lib/Linux-g++/libG4intercoms.so
#19 0x401c72e6 in G4UIterminal::ExecuteCommand () from
/home/iglez2/geant4/geant4.3.1/lib/Linux-g++/libG4UIbasic.so
#20 0x401c6b95 in G4UIterminal::SessionStart () from
/home/iglez2/geant4/geant4.3.1/lib/Linux-g++/libG4UIbasic.so
#21 0x8056291 in main (argc=1, argv=0xbfffe834) at Tiara.cc:110
#22 0x417b59cb in __libc_start_main (main=0x80560b8 <main>, argc=1,
argv=0xbfffe834, init=0x8054608 <_init>, fini=0x8061714 <_fini>,
rtld_fini=0x4000aea0 <_dl_fini>, stack_end=0xbfffe82c) at
../sysdeps/generic/libc-start.c:92

======== VARIABLES
index = 1
it    = 0
i     = 1
start = 0x2
start[0]: Cannot access memory at address 0x2
start[1]: Cannot access memory at address 0x6
============

I have put the code in /afs/cern.ch/user/i/iglez2/public/Neutrons/Tiara.tar.gz.
If you want to test it, copy to your pref. dir and...
% gunzip Tiara.tar.gz
% tar xvf Tiara.tar
% source configure.csh (modify the variables, like G4INSTALL or LHXX_BASE,
inside)
% gmake
% Tiara
....
Idle> run/beamOn 165

And wait (the program requires 180 Mb of memory to run because of Neutron HP
processes).
Comment 1 Hans-Peter.Wellisch 2001-05-21 14:47:59 CEST
Thank you for the bug-report. I am already fully booked during this week, but
I'll have a look over the week-end.
Comment 2 Hans-Peter.Wellisch 2001-06-28 12:14:59 CEST
Should be fixed in the next release (i.e. the one this week.)