GRIFFINCollaboration/GRSISpoon — pull request #49 by pcbend (2014-02-10 20:40:52+00:00)
Title: Attempting to fix the seg fault on exit that sometimes appears.

This 'may' fix the problem with the random segfault on exit. I found this conversation:

Hi,
The problem is fixed in the trunk (by revision 47898) and in the v5.34 patch branch.
To work around the problem you must delete the TTree object before the TFile is closed.
Cheers,
Philippe.

about half way down on this discussion thread:

https://groups.cern.ch/group/roottalk/Lists/Archive/Flat.aspx?RootFolder=%2Fgroup%2Froottalk%2FLists%2FArchive%2FSeg.fault%20when%20quitting%20ROOT%20v5.34.00&FolderCTID=0x01200200A201AF59FD011C4E9284C43BF0CDA2A4

and made the appropriate changes. I have tested it a dozen times or so and have yet to see it happen. Because it was intermediate before I am not sure whether this fixes things, makes them more infrequent or if this is a sign I should play the lottery.