Segmentation Fault When Filling a Tree

ROOT Version:6.24.06
Platform:_ :Centos 7
Compiler:_ :g++ 4.8.5


I faced a problem when writting a Tree , I have a Program which is used to convert a eventio format(CORSIKA output) to the root format, but my program only works in some situation, sometimes it can work, sometimes it won’t.

It will Segmentation Fault in the line I first try to Fill the Tree. And above picture is the place it will eventually stop , it have a very large size , (when it can works , the size will be a number ~ 10**5)

My main Program is on the github : gh repo clone zhipzhang/Read_CORSIKA (src/get_photons.cpp)

It has been sovled , thanks everyone!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.