Problem 995

Summary: G4Crash when PAI model is used....
Product: Geant4 Reporter: porosev
Component: processes/electromagneticAssignee: Vladimir.Ivantchenko
Status: RESOLVED FIXED    
Severity: major    
Priority: P5    
Version: 9.1   
Hardware: All   
OS: All   
Attachments: printscreens while crash...

Description porosev 2008-01-14 13:15:34 CET
Created attachment 13 [details]
printscreens while crash...

Dear Vladimir Ivanovich!

I catch a crash when PAI model is used. In the file
g4paiphotonmodel.cc file in G4PAIPhotonModel::GetPostStepTransfer function... please see attached picture.

In my case, the crash happens in final FOR cycle, when iTransfer variable get a value =109. 

in comparison if( position>=....)

When variable iPlace=16 and vector length=110 for that table element, it is OK. 

BUT!!!! Table element indexed as (iPlace+1)=17 has only 108 elements and index 109 is out of range for it!

-------------------
Sincerely Yours,
Viacheslav Porosev
Comment 1 Vladimir.Ivantchenko 2008-01-29 13:48:39 CET
Many thanks for pointing out on the problem. The fix will be included in the patch to 9.1 release.