Problem 183 - can't use g++-2.95.2 with -O option
Summary: can't use g++-2.95.2 with -O option
Status: RESOLVED DUPLICATE of problem 182
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/electromagnetic (show other problems)
Version: 2.0
Hardware: PC Linux
: P1 major
Assignee: Michel.Maire
URL:
Depends on:
Blocks:
 
Reported: 2000-12-21 22:37 CET by masaharu.aoki
Modified: 2001-01-08 08:50 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 masaharu.aoki 2000-12-21 22:37:41 CET
If Geant4.2.0 was built with g++-2.95.2 with -O option, it always crash at
around 1000000 events in G4MuPairProduction::SelectRandomAtom() because of a
variable 'rval' contains -NaN.  This is because of a table 'PartialSumsigma' is
initialized with -NaN in G4MuPairProduction::ComputeDDMicroscopicCrossSection
().  It looks like, in this member function,  the evaluation of a statement
G4double a6 = 1. - a5; foced delayed forever with -O option.

It could be not a bug in Geant but a bug in g++-2.95.2.  However, I would
really appreciate if Geant code is modified so that it keeps away from the
sympton.

Regards,
Msaharu Aoki
Comment 1 Gabriele Cosmo 2001-01-08 08:50:59 CET
*** This bug has been marked as a duplicate of 182 ***
*** 'Michel.Maire@cern.ch' will be responsible for this bug. ***