Problem 19

Summary: G4cout leaks memory while cout does not on Sun and Linux
Product: Geant4 Reporter: Pedro.Arce
Component: global/managementAssignee: yoshidah
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 0.1   
Hardware: Sun   
OS: Solaris   

Description Pedro.Arce 1999-10-08 10:01:59 CEST
I just took the example novice N01 and added the lines

  for(G4int ii=0; ii<1E9; ii++) {
    G4cout << "testing G4cout memory leak..." << endl;
  }

compiled with geant4.0.1_ref01 (with STL)
and run
bin/SUN-CC/exampleN01 | tee zz

and the memory exploded. While just changing G4cout to cout kept the memory
equal even after zz file was over 10 Mb.

I found the same problem on Sun and linux. Actually I think I have always had
this problem and I already systematically studied it with geant4.0.0_ref08 in
june 99 and mailed the expert (maybe the wrong one) about it.
Comment 1 yoshidah 1999-11-05 01:18:59 CET
Fixed in config-V00-01-04 & global-V00-01-04