Problem 784

Summary: recursive_test causes a segmentation fault
Product: Geant4 Reporter: waw113
Component: geometry/solidsAssignee: tatiana.nikitina
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 7.1   
Hardware: PC   
OS: Linux   
URL: http://nucleus.usask.ca/~ward/misc/geotest.tgz

Description waw113 2005-08-17 17:20:21 CEST
Dear GEANT4 developer:

The recursive_test command in /geometry/test/ causes a segmentation fault for a
very simple geometry.  The geometry consists of a single G4Tubs in a world
volume.  The G4Tubs is a quarter cylinder and defined as follows.

const G4double al_Rmin = 0.0*m;
const G4double al_Rmax = 1.0*m;
const G4double al_z = 0.3*m;
const G4double al_As = 0.0;
const G4double al_AD = 0.5*M_PI*rad;
const G4double y_pos = 0.0;

//create an object from a cylender
G4Tubs * alTubs = new G4Tubs("AlTubs",al_Rmin,al_Rmax,al_z,al_As,al_AD);

//the aluminum object's logical volume
G4LogicalVolume * alLV = new G4LogicalVolume(alTubs,Aluminum,"AlLV");

//place the object in the world
new G4PVPlacement(0, G4ThreeVector(0.0,y_pos,0.0), alLV,
AlPhys",experimentalHallLV,false,0);

Running recursive_test on this volume gives a segmentation fault.  However,
simply by changing y_pos to -1.0*mm, we avoide the segmentation fault.

A simple test program can be found at http://nucleus.usask.ca/~ward/misc/geotest.tgz

For the record:
Linux Kernel: 2.6.8
OS: Debian 3.1 (sarge)
gcc: 3.3.5
CLHEP: 1.9.2.0

Thank you for your time.

Ward
Comment 1 Vladimir.Grichine 2005-12-07 01:54:59 CET
*** Bug 818 has been marked as a duplicate of this bug. ***
*** 'davidw@scipp.ucsc.edu' will be responsible for bug 818. ***
Comment 2 tatiana.nikitina 2007-09-07 10:28:05 CEST
Problem is solved and fix is included in 4.8.3. In addition the revision of G4TestSegment was done with improuvements for solids with Phi openning(when Phi Section is coinciding with grid lines ,like for StartPhi=0.,90 degrees,180 degrees or 270 degrees)