Problem 995 - G4Crash when PAI model is used....
Summary: G4Crash when PAI model is used....
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/electromagnetic (show other problems)
Version: 9.1
Hardware: All All
: P5 major
Assignee: Vladimir.Ivantchenko
URL:
Depends on:
Blocks:
 
Reported: 2008-01-14 13:15 CET by porosev
Modified: 2008-01-29 13:48 CET (History)
0 users

See Also:


Attachments
printscreens while crash... (346.11 KB, image/pjpeg)
2008-01-14 13:15 CET, porosev
Details

Note You need to log in before you can comment on or make changes to this problem.
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.