Problem 19 - G4cout leaks memory while cout does not on Sun and Linux
Summary: G4cout leaks memory while cout does not on Sun and Linux
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: global/management (show other problems)
Version: 0.1
Hardware: Sun Solaris
: P2 normal
Assignee: yoshidah
URL:
Depends on:
Blocks:
 
Reported: 1999-10-08 10:01 CEST by Pedro.Arce
Modified: 1999-11-05 01:19 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 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