Message: Segmentation fault (core dumped) happened in different material and more beams Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Sad Segmentation fault (core dumped) happened in different material and more beams 

Keywords: Segmentation fault (core dumped) happened in different material and more beams
Forum: Fields: Magnetic and Otherwise
Date: 19 Jun, 2002
From: Lam Yihua <Lam Yihua>

dear programmer,



How's your life there? Sorry, for disturbing you all...

My experimental detector named as "innerchamber" and it can be filled in with either one of them:

1) Aluminum
2) Deuterium
3) Plumbum
4) Uranium
5) ArgonGas


Then I used neutron as the initial particle to shoot on the target "innerChamber".
Neutrons will fly from a volume named as "vacumm" to "innerChamber".

The physics processes are neutron inelastic, elastic and capture. These 3 processes I
added in as "discreteprocess".
Below is the code from class "detector construction".

ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
G4VPhysicalVolume* ExN01DetectorConstruction::Construct()
{
        ..
        ....

  G4Material* Vacuum = new G4Material("Vacuum",
                      1.0 , 1.01*g/mole, 1.0E-25*g/cm3,
                      kStateGas, 2.73*kelvin, 3.0E-18*pascal );
        ......
        .........
  //Plumbum
  a = 207.19*g/mole;
  density = 11.35*g/cm3;
  G4Material *Plumbum = new G4Material(name="Lead", z=82., a, density);

  //Argon gas 
  a = 39.95*g/mole;
  density = 1.782e-03*g/cm3;
  G4Material *ArgonGas = new G4Material(name="ArgonGas", z=18., a, density);

  //Aluminum
  a = 26.98*g/mole;
  density = 2.7*g/cm3;
  G4Material Aluminum = new G4Material(name="Aluminum", z=13., a, density);

    ...  
// Deuterium
G4Material* Deuterium = new G4Material(name="DeuteriumGas", density, ncomponents=2,
                                     kStateGas,temperature,pressure);
Deuterium->AddElement(D, natoms=1);
Deuterium->AddElement(D, natoms=1);
   ....
    ...
    ...

  G4LogicalVolume* innerChamber_log = new G4LogicalVolume
                                                                       (innerChamber_tub,
                                                                         //Pb,
                                                                         //U,
                                                                         Aluminium,
                                                                         //ArgonGas,
                                                                         //Deuterium,
                                                                         // CondensedPlasmaDeuterium,
                                                                          "innerChamberLog",
                                                                          0,
                                                                          0,
                                                                          0);


...
...
  return experimentalHall_phys;
}
ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

MY PROBLEM IS:

when I used ArgonGas the material of "innerChamber",
I can successfully simulated 1 neutron to penetrate into "innerChamber".
But I'll get the segmentation fault error below if I used 20 neutrons... :(



ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
A new track 0x8085d60 (trackID 2, parentID 1) is passed to G4StackManager.
### pop requested out of 2 stacked tracks.
Selected G4StackedTrack : 0x8090c60 with G4Track 0x8085d60 (trackID 2, parentID 1)
Track 0x8085d60 (trackID 2, parentID 1) is passed to G4TrackingManager.

*********************************************************************************************************
* G4Track Information:   Particle = K39[0.0],   Track ID = 2,   Parent ID = 1
*********************************************************************************************************

Step#    X(mm)    Y(mm)    Z(mm) KinE(MeV)  dE(MeV) StepLeng TrackLeng  NextVolume ProcName
0      147     2.59    0.461     0.337        0        0         0 innerChamber           initStep

>>DefinePhysicalStepLength (List of proposed StepLengths):
Segmentation fault (core dumped)


ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo




Before the program go in core dumped, it can plot "yz position graph" (like XrayTel), but once
the neutron start to go into "innerChamber",

Segmentation fault 

happened... :(


The below is the segmentation fault error, when I change ArgonGas to Aluminum, Plumbum, Uranium.
The program can't even simulate 1 neutron. And segmentation fault error prompt our when neutron go in
"innerChamber"... :(

The program can run without any error, If I used "Deuterium" as the material filled in the "innerChamber".


ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo 
A  
new track 0x8085d60 (trackID 2, parentID 1) is passed to G4StackManager.
### pop requested out of 1 stacked tracks.
Selected G4StackedTrack : 0x8090c40 with G4Track 0x8085d60 (trackID 2, parentID 1)
Track 0x8085d60 (trackID 2, parentID 1) is passed to G4TrackingManager.

*********************************************************************************************************
* G4Track Information:   Particle = alpha,   Track ID = 2,   Parent ID = 1
*********************************************************************************************************

Step#    X(mm)    Y(mm)    Z(mm) KinE(MeV)  dE(MeV) StepLeng TrackLeng  NextVolume ProcName
0       60   -0.944       -2     0.463        0        0         0 innerChamber           initStep

>>DefinePhysicalStepLength (List of proposed StepLengths):
Segmentation fault (core dumped)


Is it due to

Swap Area???
http://erpc1.naruto-u.ac.jp/~geant4/betadocs/inst2linux/node2.html


I'm using 500 Mb as my Linux Swap, and 192 Mb memory.
the core dump is almost 130 Mb, or perhaps, some other problems.

Please Help me... :)



kindly regards,

yihua

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Segmentation fault (core dumped) happened in different material and more beams   (Makoto Asai - 20 Jun, 2002)
(_ None: Re: G4EnergyLossTables::GetTables: table not found! GAMMA   (Lam YiHua - 27 Jun, 2002)
(_ None: Re: G4EnergyLossTables::GetTables: table not found! GAMMA   (Vladimir Ivantchenko - 03 Jul, 2002)
 Add Message Add Message
to: "Segmentation fault (core dumped) happened in different material and more beams"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]