Problem 1346

Summary: Crash in the copy constructor of G4VUserTrackInformation
Product: Geant4 Reporter: Ryu Sawada <sawada>
Component: trackAssignee: kurasige
Status: RESOLVED FIXED    
Severity: normal CC: sawada
Priority: P5    
Version: 9.5   
Hardware: All   
OS: All   

Description Ryu Sawada 2012-08-28 17:11:27 CEST
In G4VUserTrackInformation(), pType is initialized as NULL.
Then in G4VUserTrackInformation(const  G4VUserTrackInformation& right),
*(right.pType) is used to copy pType.
It cause a crash when right.pType is NULL, namely when a user does not allocate and set pType in the user code.
Comment 1 kurasige 2012-08-28 18:47:01 CEST
Thank you for reporting the problem. 
The bug will be fixed in the next patch and releases.