Problem 1284

Summary: Memory leakage caused by G4ErrorStepLengthLimitProcess
Product: Examples/Extended Reporter: Kun Liu <liuk>
Component: errorpropagationAssignee: Pedro.Arce
Status: RESOLVED FIXED    
Severity: normal CC: bernauer
Priority: P5    
Version: 9.4   
Hardware: All   
OS: All   
Attachments: Should fix memory leaks in ErrorProp

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