Problem 1122 - Crash of "G4IonTable::CreateIon" if A<10 for all ions in the event
Summary: Crash of "G4IonTable::CreateIon" if A<10 for all ions in the event
Status: RESOLVED INVALID
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/electromagnetic (show other problems)
Version: 9.2
Hardware: All Linux
: P5 normal
Assignee: Vladimir.Ivantchenko
URL:
Depends on:
Blocks:
 
Reported: 2010-06-23 10:17 CEST by Elena
Modified: 2010-06-23 16:58 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Elena 2010-06-23 10:17:10 CEST
In our simulation we have the cases when only light ions (A<10) are requested. In such cases we have the segmentation fault (full diagnostics attached below). We expect that several checks should be added to the lines like #8 [G4LossTableBuilder.cc#line 84 :  size_t n_vectors = (list[0])->length();]
in order to fix such crashes. In our case list[0]==0. 

We use geant4.9.2.p02, geant4_vmc 2.7b, and FairRoot.


 *** Break *** segmentation violation
...

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. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#5  0x0000002a9dbcd618 in std::vector<G4PhysicsVector*, std::allocator<G4PhysicsVector*> >::begin (this=0x8) at /usr/include/c++/3.4.3/bits/stl_vector.h:322
#6  0x0000002a9dbcd6c1 in std::vector<G4PhysicsVector*, std::allocator<G4PhysicsVector*> >::size (this=0x8) at /usr/include/c++/3.4.3/bits/stl_vector.h:375
#7  0x0000002a9f6aff1d in G4PhysicsTable::length (this=0x0)
    at /home/ram/build/fairsoft/transport/geant4/source/global/management/include/G4PhysicsTable.icc:100
#8  0x0000002a9f6af966 in G4LossTableBuilder::BuildDEDXTable (this=0x2d30890, 
    dedxTable=0x347ae70, list=
0x7fbffd6590) at src/G4LossTableBuilder.cc:84
#9  0x0000002a9f6b1987 in G4LossTableManager::BuildTables (this=0x2a9f7fd780, 
    aParticle=0x0) at src/G4LossTableManager.cc:574
#10 0x0000002a9f6b2488 in G4LossTableManager::BuildPhysicsTable (
    this=0x2a9f7fd780, aParticle=0x346d070, p=0x2f39450)
    at src/G4LossTableManager.cc:456
#11 0x0000002a9f6cb79d in G4VEnergyLossProcess::BuildPhysicsTable (
    this=0x2f39450, part=
0x346d070) at src/G4VEnergyLossProcess.cc:465
#12 0x0000002aa4b34559 in G4VUserPhysicsList::BuildPhysicsTable (
    this=0x2d205a0, particle=0x346d070) at src/G4VUserPhysicsList.cc:491
#13 0x0000002aa4b35fdc in G4VUserPhysicsList::AddProcessManager (
    this=0x2d205a0, newParticle=0x346d070, newManager=0x346d790)
    at src/G4VUserPhysicsList.cc:184
#14 0x0000002aa4b2e903 in G4UserPhysicsListMessenger::SetNewValue (
    this=0x2d206b0, command=0x2d22250, newValue=
0x7fbffd6d50)
    at src/G4UserPhysicsListMessenger.cc:234
#15 0x0000002a9dd1828b in G4UIcommand::DoIt (this=0x2d22250, 
    parameterList=
0x7fbffd6ef0) at src/G4UIcommand.cc:210
#16 0x0000002a9dd23d41 in G4UImanager::ApplyCommand (this=0x13b40a0, 
    aCmd=0x346d238 "/run/particle/addProcManager He3[6703.9]")
    at src/G4UImanager.cc:410
#17 0x0000002a9dd23ea3 in G4UImanager::ApplyCommand (this=0x13b40a0, 
    aCmd=
0x7fbffd70f0) at src/G4UImanager.cc:354
#18 0x0000002a9e34d638 in G4IonTable::AddProcessManager (this=0x2cc5930, 
    name=
0x7fbffd71e0) at src/G4IonTable.cc:786
#19 0x0000002a9e34f502 in G4IonTable::CreateIon (this=0x2cc5930, Z=2, A=3, 
    E=6.7039309069514275, J=0) at src/G4IonTable.cc:175
#20 0x0000002a9e34f6c8 in G4IonTable::GetIon (this=0x2cc5930, Z=2, A=3, 
    E=6.7039309069514275, J=0) at src/G4IonTable.cc:307
#21 0x0000002a9e366dfc in G4ParticleTable::GetIon (this=0x2a9e4c1380, Z=2, 
    A=3, E=6.7039309069514275) at src/G4ParticleTable.cc:335
#22 0x0000002aa82d09c0 in TG4ParticlesManager::AddIon ()
   from /2/fairsoft_4.1.2/20100115/transport/geant4_vmc/lib/tgt_linuxx8664gcc/libgeant4vmc.so
#23 0x0000002aa82d80a7 in TG4PhysicsManager::DefineIon ()
   from /2/fairsoft_4.1.2/20100115/transport/geant4_vmc/lib/tgt_linuxx8664gcc/libgeant4vmc.so
#24 0x0000002aa830b7b7 in TGeant4::DefineIon ()
   from /2/fairsoft_4.1.2/20100115/transport/geant4_vmc/lib/tgt_linuxx8664gcc/libgeant4vmc.so
#25 0x0000002a9b56544f in FairMCApplication::AddIons (this=0x11e8c80)
    at /1/litvin/tst/9/trunk/base/FairMCApplication.cxx:732
#26 0x0000002aa82d36af in TG4PhysicsManager::DefineParticles ()
   from /2/fairsoft_4.1.2/20100115/transport/geant4_vmc/lib/tgt_linuxx8664gcc/libgeant4vmc.so
#27 0x0000002aa8305209 in TG4RunManager::LateInitialize ()
   from /2/fairsoft_4.1.2/20100115/transport/geant4_vmc/lib/tgt_linuxx8664gcc/libgeant4vmc.so
#28 0x0000002a9b562aa6 in FairMCApplication::InitMC (this=0x11e8c80, 
    setup=0x11fa528 "/1/litvin/tst/9/trunk/gconfig/g4Config.C", 
    cuts=0x11fa668 "/1/litvin/tst/9/trunk/gconfig/SetCuts.C")
    at /1/litvin/tst/9/trunk/base/FairMCApplication.cxx:220
#29 0x0000002a9b57d331 in FairRunSim::SetMCConfig (this=0x6ae1b0)
    at /1/litvin/tst/9/trunk/base/FairRunSim.cxx:360
#30 0x0000002a9b57b6b4 in FairRunSim::Init (this=0x6ae1b0)
    at /1/litvin/tst/9/trunk/base/FairRunSim.cxx:165
===========================================================
Comment 1 Vladimir.Ivantchenko 2010-06-23 16:58:56 CEST
Hello,

Geant4 never support VMC. We can comment the problem if it will be reproduced in standalone Geant4 application. No similar problem reported by ATLAS, CMS or many other users.

VI