Problem 685 - subscript out of range
Summary: subscript out of range
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: geometry/solids (show other problems)
Version: 6.2
Hardware: All Linux
: P1 normal
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2004-11-08 15:14 CET by zog
Modified: 2004-11-13 11:34 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description zog 2004-11-08 15:14:51 CET
Hi,

The icc compiler warns about a:
include/G4VSurface.icc(307): warning #175: subscript out of range
     fNeighbours[4] = axis1max;

If one looks into the source code than fNeighbors is indeed only defined from
0..3, so fNeighbours[4] is out of bounds and will probably cause a seg fault.

Ciao,
Andreas
Comment 1 Gabriele Cosmo 2004-11-13 11:33:59 CET
Thanks for the report. The problem is now fixed in the development
tag "geom-specific-V06-02-04" and the fix will be included in the
next release.
Comment 2 Gabriele Cosmo 2004-11-13 11:34:59 CET
Thanks for the report. The problem is now fixed in the development
tag "geom-specific-V06-02-04" and the fix will be included in the
next release.