[Gate-users] cylindrical volume crash
Bryan McIntosh
mcintoshster at gmail.com
Thu Aug 19 14:27:56 CEST 2010
Gene,
It looks like your simulation is crashing because you forgot to define
the size of the crystal before you attached it. Set a height/radius
for it first, then any repeaters needed before you try to attach it to
a system.
Hope this solves your problem!
-Bryan
> Message: 1
> Date: Wed, 18 Aug 2010 14:01:48 -0400
> From: Eugene Gualtieri PhD <gualtier at mail.med.upenn.edu>
> Subject: [Gate-users] cylindrical crystal volume crash
> To: gate-users at lists.opengatecollaboration.org
> Message-ID: <21BF8364-C9A6-4968-A6A8-F194CD352AD7 at mail.med.upenn.edu>
> Content-Type: text/plain; charset=us-ascii
>
> All:
>
> I am encountering a segmentation fault when specifying cylindrical crystal volumes, as in the CPET scanner example.
> The seg fault occurs right after the "/gate/systems/CPET/crystal/attach crystal" line (see below). Commenting it out eliminates the crash.
>
> I am running GATE version name: gate_v5.0.0 (1-May-2009)
>
> Thanks.
>
> Gene
>
>
> # BASE = CPET SYSTEM
> /gate/world/daughters/name CPET
> /gate/world/daughters/insert cylinder
> /gate/CPET/setMaterial Air
> /gate/CPET/geometry/setRmax 60 cm
> /gate/CPET/geometry/setRmin 0 cm
> /gate/CPET/geometry/setHeight 35 cm
> /gate/CPET/vis/forceWireframe
>
> # FISRT LEVEL = CRYSTAL
> /gate/CPET/daughters/name crystal
> /gate/CPET/daughters/insert cylinder
>
> /gate/systems/CPET/crystal/attach crystal
> /gate/crystal/attachCrystalSD
>
>
> ===================
> /gate/systems/CPET/crystal/attach crystal
>
> *** Break *** segmentation violation
> Attaching to program: /proc/28902/exe, process 28902
> [Thread debugging using libthread_db enabled]
> 0x00007f4edd7dbb0e in waitpid () from /lib/libc.so.6
> error detected on stdin
> A debugging session is active.
>
> Inferior 1 [process 28902] will be detached.
>
> Quit anyway? (y or n) [answered Y; input not from terminal]
> Detaching from program: /proc/28902/exe, process 28902
> *** glibc detected *** Gate: free(): invalid pointer: 0x00000000020fb268 ***
> =========
More information about the Gate-users
mailing list