Problem 154 - Problems wirh boolean solids, causing a segmentation fault
Summary: Problems wirh boolean solids, causing a segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: geometry/solids (show other problems)
Version: 2.0
Hardware: PC Linux
: P1 critical
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2000-09-08 11:28 CEST by Hans-Peter.Wellisch
Modified: 2000-09-11 06:15 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Hans-Peter.Wellisch 2000-09-08 11:28:36 CEST
The usage of boolean solids causes a segmentation fault when exiting an
application and the problem has to do something with memory alocation. It seems
like boolean solids overide other variables in memory.
Sometimes some volumes dissapear from tracking (application
/afs/cern.ch/user/t/tpapaeva/public/ProblemWithBooleanSolid.tar ), while the
volumes exist in visualization (in this application volume called
"Li-TargetFoil" and a "MylarFoil" is expected before "Li-TargetFoil". These
volumes exist in visualization but not in tracking!).

In another case
(/afs/cern.ch/user/t/tpapaeva/public/ProblemWithBooleanSolid2.tar), the
application seems to run properly but trying to visualize it causes core dump.

In some other case the application was runing and terminating properly, but
visualizing the geometry was causing "dissapearance" of some volumes in tracking
and segmentation fault in exit. (Unfortunatly I dont have the code).

In all cases the problem disapeard when replaced the boolean solids with
something else.
Comment 1 Gabriele Cosmo 2000-09-11 06:15:59 CEST
The problem has been currently fixed in tag "geommng-V02-00-00" of
geometry/management. The problem was in the destructor of G4SolidStore.
Thanks for reporting this.