Problem 1284 - Memory leakage caused by G4ErrorStepLengthLimitProcess
Summary: Memory leakage caused by G4ErrorStepLengthLimitProcess
Status: RESOLVED FIXED
Alias: None
Product: Examples/Extended
Classification: Unclassified
Component: errorpropagation (show other problems)
Version: 9.4
Hardware: All All
: P5 normal
Assignee: Pedro.Arce
URL:
Depends on:
Blocks:
 
Reported: 2012-01-27 19:50 CET by Kun Liu
Modified: 2012-08-23 14:10 CEST (History)
1 user (show)

See Also:


Attachments
Should fix memory leaks in ErrorProp (2.82 KB, patch)
2012-04-02 19:53 CEST, Jan C. Bernauer
Details | Diff

Note You need to log in before you can comment on or make changes to this problem.
Description Kun Liu 2012-01-27 19:50:58 CET
If the number of events is changed from 3 to a relatively large number, i.e. change the Line 87 of the errprop.cc to "size_t nEvent = 1000000", one can see the memory consumption continue to grow rapidly till the system kills the process.

On the other hand, if one creates his own physics list and don't add the G4ErrorStepLengthLimitProcess, without any other modification the memory leakage disappears.

Please help me solve this problem and thank you very much for looking into this.
Comment 1 Jan C. Bernauer 2012-04-02 19:52:23 CEST
I saw the same problem with 9.5 and posted a patch in the user forum.
I'll reattach it here.

Best,
Jan
Comment 2 Jan C. Bernauer 2012-04-02 19:53:12 CEST
Created attachment 154 [details]
Should fix memory leaks in ErrorProp
Comment 3 Pedro.Arce 2012-08-23 14:10:49 CEST
Thanks to Jan for the code. I changed the repository.

Pedor