[Gate-users] Interfile reader trap
Alex
piratemp at gmail.com
Thu Oct 13 20:23:30 CEST 2011
Quick update,
After some experimentation, I realized that the trap occurred when I did NOT
read in a range translator prior to reading the interfile header file. It
was kinda of a user's error. However, one would expect Gate to behave
better by throwing a warning rather than trapping like that!!...
Alex
On Tue, Oct 11, 2011 at 12:13 PM, Alex <piratemp at gmail.com> wrote:
> My set up is as followed:
>
> Ubuntu 10.04
> geant4.9.4.p01
> Gate v6.1
>
> I kept getting the trap below when reading in a voxelized phantom in
> interfile format:
>
>
> Idle> /gate/world/daughters/name zubal_phantom
> Idle> /gate/world/daughters/insert regularMatrix
> Idle> /gate/zubal_phantom/geometry/insertReader interfile
> Idle> /gate/zubal_phantom/interfileReader/readFile CTCuerpo.h33
> Header read from 'CTCuerpo.h33'
> Data file name 'CTCuerpo.i33'
> Nb of planes: 243
> Nb of pixels per plane: 128 128
> Pixel size: 1 1
> Slice thickness: 4
> Matrix size: 128 128
> Data type: UNSIGNED INTEGER
>
> nx ny nz: 128 128 243
> dx dy dz: 1 1 4
>
> *** Break *** segmentation violation
>
>
> ===========================================================
> There was a crash.
> This is the entire stack trace of all threads:
> ===========================================================
> #0 0x00007fe23de81f7e in waitpid () from /lib/libc.so.6
> #1 0x00007fe23de197e9 in ?? () from /lib/libc.so.6
> #2 0x00007fe2498167a1 in TUnixSystem::StackTrace() ()
> from /home/dell/Gate5/root/lib/libCore.so
> #3 0x00007fe249815d13 in TUnixSystem::DispatchSignals(ESignals) ()
> from /home/dell/Gate5/root/lib/libCore.so
> #4 <signal handler called>
> #5 0x00007fe24a14570d in
> GateGeometryVoxelInterfileReader::ReadFile(G4String)
> () from /home/dell/Gate5/gate_v6.1/tmp/Linux-g++/Gate/libGate.so
> #6 0x00007fe24a3671c8 in
> GateVGeometryVoxelReaderMessenger::SetNewValue(G4UIcommand*, G4String) ()
> from /home/dell/Gate5/gate_v6.1/tmp/Linux-g++/Gate/libGate.so
> #7 0x00007fe24a147042 in
> GateGeometryVoxelInterfileReaderMessenger::SetNewValue(G4UIcommand*,
> G4Stri ng) ()
> from /home/dell/Gate5/gate_v6.1/tmp/Linux-g++/Gate/libGate.so
> #8 0x00007fe240504ab7 in G4UIcommand::DoIt(G4String) ()
> from /home/dell/Gate5/geant4.9.4.p01/lib/Linux-g++/libG4intercoms.so
> #9 0x00007fe240512a1a in G4UImanager::ApplyCommand(char const*) ()
> from /home/dell/Gate5/geant4.9.4.p01/lib/Linux-g++/libG4intercoms.so
> #10 0x00007fe2443aaa7b in G4UIterminal::ExecuteCommand(G4String) ()
> from /home/dell/Gate5/geant4.9.4.p01/lib/Linux-g++/libG4interfaces.so
> #11 0x00007fe2443aa8fa in G4UIterminal::SessionStart() ()
> from /home/dell/Gate5/geant4.9.4.p01/lib/Linux-g++/libG4interfaces.so
> #12 0x00000000004108c4 in main ()
> ===========================================================
>
>
> 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 0x00007fe24a14570d in
> GateGeometryVoxelInterfileReader::ReadFile(G4String)
> () from /home/dell/Gate5/gate_v6.1/tmp/Linux-g++/Gate/libGate.so
> #6 0x00007fe24a3671c8 in
> GateVGeometryVoxelReaderMessenger::SetNewValue(G4UIcommand*, G4String) ()
> from /home/dell/Gate5/gate_v6.1/tmp/Linux-g++/Gate/libGate.so
> #7 0x00007fe24a147042 in
> GateGeometryVoxelInterfileReaderMessenger::SetNewValue(G4UIcommand*,
> G4Stri ng) ()
> from /home/dell/Gate5/gate_v6.1/tmp/Linux-g++/Gate/libGate.so
> #8 0x00007fe240504ab7 in G4UIcommand::DoIt(G4String) ()
> from /home/dell/Gate5/geant4.9.4.p01/lib/Linux-g++/libG4intercoms.so
> #9 0x00007fe240512a1a in G4UImanager::ApplyCommand(char const*) ()
> from /home/dell/Gate5/geant4.9.4.p01/lib/Linux-g++/libG4intercoms.so
> #10 0x00007fe2443aaa7b in G4UIterminal::ExecuteCommand(G4String) ()
> from /home/dell/Gate5/geant4.9.4.p01/lib/Linux-g++/libG4interfaces.so
> #11 0x00007fe2443aa8fa in G4UIterminal::SessionStart() ()
> from /home/dell/Gate5/geant4.9.4.p01/lib/Linux-g++/libG4interfaces.so
> #12 0x00000000004108c4 in main ()
> ===========================================================
>
>
> I have searched the list but did not find anything similar. I would also
> be interested in learning how to generate a listing file (C++) so I can
> associate the physical address (0x00007fe24a14570d) to a line of code for
> future debugging.
>
> Thanks in advance,
> Alex Nguyen
> ECU Physics Student.
>
>
More information about the Gate-users
mailing list