Segmentation fault (core dumped) error when I excute too many neutrons

Hi users;
I’m novice in Geant4, I created a model of neutron detector, all work fine until I increased the number of event (1million), the simulation stopped at around 60000 events and I had been the following message: Segmentation fault (core dumped).
I looked for in internet for long hours but, unfortunately I can’t find any article that could help me.
NB: site hypernews.slac.stanford.edu unavailable for me.
Any help or recommendation, I will be very thankful.
Thanks in advance!

“Segmentation fault” means that something fundamentally broken happened, and your process was killed by the operating system. It could be a bad pointer (e.g., a pointer variable had a zero), it could be running out of memory, or other things.

One thing you can do is to run your job using the debugger. When the segfault happens, you’ll get the debugger prompt back, and you can get a traceback, and see where the crash occurred.

Thank you mkelsey for the replay, I agree with you, I declared some pointers incorrectly, because habitually I use Copy/Past option to write my code. Now the code works well.