I'm trying to define an ion : Cs with Z=55, A=136, J=0. and Q=1. So I write in myPhysicsList::ConstructParticle the following lines : // Ion : nuclear charge, mass, spin and atomic charge G4int Z = 55; G4int A = 136; G4int J = 0; G4int Q = 1; // Define the ion using the member function FindIon(Z,A,J,Q) of the class // G4TableParticle G4ParticleDefinition* ion = G4ParticleTable::GetParticleTable->FindIon(Z,A,J,Q); There was no problem during the compilation and the linking, but when I executed my program I got the message : "Segmentation fault (core dumped)". And when I used the debugger "gdb" I got the following message : "Program received signal SIGSEGV, Segmentation fault. 0x8124ffa in G4IonTable::GetIon () at /usr/include/g++-2/stl_vector.h:150 150 insert_aux(end(), x);" That is it
I can not reporduce the problem for geant4.0.1 on Linux. I also check the geant4.1.0 but it works well. The code for adding Cs ion looks good except for parenthesis is necessary just after G4ParticleTable::GetParticleTable (This should be noticed by the compiler but no problem was reported in compilation)