Problem 1346 - Crash in the copy constructor of G4VUserTrackInformation
Summary: Crash in the copy constructor of G4VUserTrackInformation
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: track (show other problems)
Version: 9.5
Hardware: All All
: P5 normal
Assignee: kurasige
URL:
Depends on:
Blocks:
 
Reported: 2012-08-28 17:11 CEST by Ryu Sawada
Modified: 2012-08-28 18:47 CEST (History)
1 user (show)

See Also:


Attachments

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