Message: Re: Segmentgation error Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Segmentgation error 

Forum: Processes Involving Optical Photons
Re: Sad Segmentgation error (Chibueze Zimuzo)
Date: 14 Jan, 2010
From: Chibueze Zimuzo <Chibueze Zimuzo>

Hello,

Thanks Peter for your guidance. Follwing your advice, I am now able to see where the program crashes. But I do not understand why the pointer is apparently set at NULL in my UserTrackInformation class caused by line 118 in my SteppingAction class (see the attached). My UserTrackInformation is the same as LXe example.

Thanks for further help

Chibueze.

Reading symbols from /usr/lib/libXau.so.6...done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /usr/lib/libXdmcp.so.6...done.
Loaded symbols for /usr/lib/libXdmcp.so.6
Reading symbols from /lib/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Core was generated by `/home/czu1/geant4/bin/Linux-g++/LaBr_Ce gps.mac'.
Program terminated with signal 11, Segmentation fault.
#0  0x000000000041cbd0 in CCUserTrackInformation::AddTrackStatusFlag (
    this=0x0, s=8) at src/CCUserTrackInformation.cc:21
21          status&=~active; //remove any flags indicating it is active
(gdb) bt
#0  0x000000000041cbd0 in CCUserTrackInformation::AddTrackStatusFlag (
    this=0x0, s=8) at src/CCUserTrackInformation.cc:21
#1  0x000000000041a146 in CCSteppingAction::UserSteppingAction (this=0xb85460,
    theStep=0xb06ec0) at src/CCSteppingAction.cc:118
#2  0x0000000000689ca3 in G4SteppingManager::Stepping ()
#3  0x0000000000679d1e in G4TrackingManager::ProcessOneTrack ()
#4  0x000000000064309d in G4EventManager::DoProcessing ()
#5  0x000000000057c436 in G4RunManager::DoEventLoop ()
#6  0x000000000057ad82 in G4RunManager::BeamOn ()
#7  0x000000000057f8f7 in G4RunMessenger::SetNewValue ()
#8  0x00000000007ff61a in G4UIcommand::DoIt ()
#9  0x000000000080711b in G4UImanager::ApplyCommand ()
#10 0x0000000000812bd4 in G4UIbatch::ExecCommand ()
#11 0x0000000000814515 in G4UIbatch::SessionStart ()
#12 0x0000000000804825 in G4UImanager::ExecuteMacroFile ()
#13 0x0000000000814eb1 in G4UIcontrolMessenger::SetNewValue ()
#14 0x00000000007ff61a in G4UIcommand::DoIt ()
#15 0x000000000080711b in G4UImanager::ApplyCommand ()
#16 0x000000000040a54b in main (argc=2, argv=0x7fff8b71dec8) at LaBr_Ce.cc:72
(gdb)                           

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2010/01/14/01.03-98154-CCSteppingAction.cc

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

1 Feedback: Re: Segmentgation error   (Gumplinger Peter - 14 Jan, 2010)
(_ Ok: Re: Segmentgation error   (Chibueze Zimuzo - 28 Jan, 2010)
 Add Message Add Message
to: "Re: Segmentgation error"

 Subscribe Subscribe

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