Message: program crashes with undefined step status & process defined step Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question program crashes with undefined step status & process defined step 

Forum: Event and Track Management
Date: 15 May, 2009
From: Cristian Bungau <Cristian Bungau>

Hi,

My code crashes after one event with the following error:

 *** Break *** segmentation violation
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
Attaching to program: /proc/819/exe, process 819
[Thread debugging using libthread_db enabled]
[New Thread -1208576304 (LWP 819)]
0x006c640e in __kernel_vsyscall ()
#1  0x0348b463 in __waitpid_nocancel () from /lib/libc.so.6
#2  0x03430cdf in do_system () from /lib/libc.so.6
#3  0x007601dd in system () from /lib/libpthread.so.0
#4  0x00fdb14d in TUnixSystem::Exec () from /home/cb67/root/lib/libCore.so
#5  0x00fe05d7 in TUnixSystem::StackTrace ()
   from /home/cb67/root/lib/libCore.so
#6  0x00fdf5de in TUnixSystem::DispatchSignals ()
   from /home/cb67/root/lib/libCore.so
#7  0x00fdf6ad in SigHandler () from /home/cb67/root/lib/libCore.so
#8  0x00fd8634 in sighandler () from /home/cb67/root/lib/libCore.so
#9  <signal handler called>
#10 0x081fff2b in DMSteppingAction::UserSteppingAction ()
#11 0x088d7088 in G4SteppingManager::Stepping ()
#12 0x088c650d in G4TrackingManager::ProcessOneTrack ()
#13 0x088a0a4e in G4EventManager::DoProcessing ()
#14 0x0836327f in G4RunManager::DoEventLoop ()
#15 0x08362675 in G4RunManager::BeamOn ()
#16 0x083671f2 in G4RunMessenger::SetNewValue ()
#17 0x08a69a11 in G4UIcommand::DoIt ()
#18 0x08a71d26 in G4UImanager::ApplyCommand ()
#19 0x082d184b in G4UIterminal::ExecuteCommand ()
#20 0x082d1390 in G4UIterminal::SessionStart ()
#21 0x081f23cf in main ()
*** glibc detected *** ADSR: double free or corruption (out): 0x095e3520 ***
======= Backtrace: =========
/lib/libc.so.6[0x3463b16]
/lib/libc.so.6(cfree+0x90)[0x3467070]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0x2e7a731]
ADSR(_ZN29G4CrossSectionDataSetRegistry5CleanEv+0x26)[0x880a1d6]
ADSR(_ZN29G4CrossSectionDataSetRegistryD1Ev+0x17)[0x880a587]
/lib/libc.so.6(exit+0xe9)[0x34269d9]
/home/cb67/root/lib/libCore.so(_ZN11TUnixSystem4ExitEib+0x93)[0xfdc5b3]
/home/cb67/root/lib/libCore.so(_ZN11TUnixSystem15DispatchSignalsE8ESignals+0x17e)[0xfdf66e]
/home/cb67/root/lib/libCore.so[0xfdf6ad]
/home/cb67/root/lib/libCore.so[0xfd8634]
[0x6c6420]
ADSR(_ZN17G4SteppingManager8SteppingEv+0x448)[0x88d7088]
ADSR(_ZN17G4TrackingManager15ProcessOneTrackEP7G4Track+0x11d)[0x88c650d]
ADSR(_ZN14G4EventManager12DoProcessingEP7G4Event+0x4ce)[0x88a0a4e]
ADSR(_ZN12G4RunManager11DoEventLoopEiPKci+0xaf)[0x836327f]
ADSR(_ZN12G4RunManager6BeamOnEiPKci+0x65)[0x8362675]
ADSR(_ZN14G4RunMessenger11SetNewValueEP11G4UIcommand8G4String+0x292)[0x83671f2]
ADSR(_ZN11G4UIcommand4DoItE8G4String+0x8f1)[0x8a69a11]
ADSR(_ZN11G4UImanager12ApplyCommandEPKc+0x4d6)[0x8a71d26]
ADSR(_ZN12G4UIterminal14ExecuteCommandE8G4String+0x3b)[0x82d184b]
ADSR(_ZN12G4UIterminal12SessionStartEv+0x50)[0x82d1390]
ADSR(main+0x1ff)[0x81f23cf]
/lib/libc.so.6(__libc_start_main+0xdc)[0x3410dec]
ADSR[0x81f1f01]

i used /tracking/verbose 1 to see what is happening at the last step and here is the output:

*********************************************************************************************************
* G4Track Information:   Particle = Pb208[0.0],   Track ID = 12132,   Parent ID = 11381
*********************************************************************************************************

Step#      X         Y         Z        KineE    dEStep   StepLeng  TrakLeng    Volume     Process
    0  1.567 m  69.944 cm -2.533 m   3.826 eV  0.000 eV  0.000 fm  0.000 fm    shielding    initStep

 >>AlongStepDoIt (after all invocations):
    ++List of invoked processes 
      1) Transportation
      2) msc
      3) ionIoni

    ++G4Step Information 
      Address of G4Track    : 0xd9ce1c8
      Step Length (mm)      : 0.0000010202088467
      Energy Deposit (MeV)  : 0.0000038263436721
      -----------------------------------------------------------------------
        StepPoint Information               PreStep            PostStep
      -----------------------------------------------------------------------
         Position - x (mm)   : 1567.27765963370961801567.2776596336154853
         Position - y (mm)   : 699.4386211998188401699.4386211998308909
         Position - z (mm)   : -2532.7490623218909604-2532.7490623218100154
         Global Time (ns)    : 3162436807.72044229507446293162436807.7204422950744629
         Local Time (ns)     :   0.0000000000000000  0.0000000000000000
         Proper Time (ns)    :   0.0000000000000000  0.0000000661626187
         Momentum Direct - x :  -0.7558429182600837 -0.7558429182600837
         Momentum Direct - y :   0.0969188606897272  0.0969188606897272
         Momentum Direct - z :   0.6475401279910658  0.6475401279910658
         Momentum - x (MeV/c):  -0.9202153549539388 -0.0000000000000000
         Momentum - y (MeV/c):   0.1179957126497015  0.0000000000000000
         Momentum - z (MeV/c):   0.7883600604446994  0.0000000000000000
         Total Energy (MeV)  : 193687.6297092104505282193687.6297053841117304
         Kinetic Energy (MeV):   0.0000038263436721  0.0000000000000000
         Velocity (mm/ns)    :   0.0018844158386698  0.0000000000000000
         Volume Name         :            shielding           shielding
         Safety (mm)         :   0.0000000000000000 21.5478726224121608
         Polarization - x    :   0.0000000000000000  0.0000000000000000
         Polarization - y    :   0.0000000000000000  0.0000000000000000
         Polarization - Z    :   0.0000000000000000  0.0000000000000000
         Weight              :   1.0000000000000000  1.0000000000000000
         Step Status         :            Undefined     AlongStep Proc.
         Process defined Step:            Undefined             ionIoni
      -----------------------------------------------------------------------

    ++List of secondaries generated (x,y,z,kE,t,PID):  No. of secodaries = 0

 **PostStepDoIt (after all invocations):
    ++List of invoked processes 
      1) Transportation
      2) msc

    ++G4Step Information 
      Address of G4Track    : 0xd9ce1c8
      Step Length (mm)      : 0.0000010202088467
      Energy Deposit (MeV)  : 0.0000038263436721
      -----------------------------------------------------------------------
        StepPoint Information               PreStep            PostStep
      -----------------------------------------------------------------------
         Position - x (mm)   : 1567.27765963370961801567.2776596336154853
         Position - y (mm)   : 699.4386211998188401699.4386211998308909
         Position - z (mm)   : -2532.7490623218909604-2532.7490623218100154
         Global Time (ns)    : 3162436807.72044229507446293162436807.7204422950744629
         Local Time (ns)     :   0.0000000000000000  0.0000000000000000
         Proper Time (ns)    :   0.0000000000000000  0.0000000661626187
         Momentum Direct - x :  -0.7558429182600837 -0.7558429182600837
         Momentum Direct - y :   0.0969188606897272  0.0969188606897272
         Momentum Direct - z :   0.6475401279910658  0.6475401279910658
         Momentum - x (MeV/c):  -0.9202153549539388 -0.0000000000000000
         Momentum - y (MeV/c):   0.1179957126497015  0.0000000000000000
         Momentum - z (MeV/c):   0.7883600604446994  0.0000000000000000
         Total Energy (MeV)  : 193687.6297092104505282193687.6297053841117304
         Kinetic Energy (MeV):   0.0000038263436721  0.0000000000000000
         Velocity (mm/ns)    :   0.0018844158386698  0.0000000000000000
         Volume Name         :            shielding           shielding
         Safety (mm)         :   0.0000000000000000 21.5478726224121608
         Polarization - x    :   0.0000000000000000  0.0000000000000000
         Polarization - y    :   0.0000000000000000  0.0000000000000000
         Polarization - Z    :   0.0000000000000000  0.0000000000000000
         Weight              :   1.0000000000000000  1.0000000000000000
         Step Status         :            Undefined     AlongStep Proc.
         Process defined Step:            Undefined             ionIoni
      -----------------------------------------------------------------------

    ++List of secondaries generated (x,y,z,kE,t,PID):  No. of secodaries = 0
      [Note]Secondaries from AlongStepDoIt included.

#Step#      X         Y         Z        KineE    dEStep   StepLeng  TrakLeng    Volume     Process
    1  1.567 m  69.944 cm -2.533 m   0.000 eV  3.826 eV  1.020 nm  1.020 nm    shielding     ionIoni

 *** Break *** segmentation violation

I noticed the "Undefined" step status and process defined step and I would be very grasteful for any suggestions in getting the code up and running.

Thank you,

Cristian

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

1 Idea: Re: program crashes with undefined step status & process defined step   (Vladimir Ivanchenko - 18 May, 2009)
(_ None: Re: program crashes with undefined step status & process defined step   (Cristian Bungau - 18 May, 2009)
 Add Message Add Message
to: "program crashes with undefined step status & process defined step"

 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 ]