Problem 182 - can't use g++-2.95.2 with -O option
Summary: can't use g++-2.95.2 with -O option
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/electromagnetic (show other problems)
Version: 2.0
Hardware: PC Linux
: P1 major
Assignee: Michel.Maire
URL:
: 183 (view as problem list)
Depends on:
Blocks:
 
Reported: 2000-12-21 22:29 CET by masaharu.aoki
Modified: 2001-01-26 09:06 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:29:20 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
*** Bug 183 has been marked as a duplicate of this bug. ***
*** 'Michel.Maire@cern.ch' will be responsible for bug 183. ***
Comment 2 Gabriele Cosmo 2001-01-26 09:06:59 CET
A bug in G4MuBremsstrahlung::PostStepDoIt() as been fixed in the development
tag "muon-V03-00-01" of processes/electromagnetic/muons. The fix cures this
problem observed also during the certification of g++-2.95.2 compiler.
Certification is proceeding.