JeffersonLab / gluex_root_analysis

8 stars 9 forks source link

double free or corruption error when creating flat trees with DSelectors #173

Open dancbart opened 1 month ago

dancbart commented 1 month ago

When unboxing a DSelector to produce flat trees I receive this error: 'double free or corruption'

Changes made the new, unchanged, DSelector created from 2018-08 version 23 root file: Remove entry for 'dOutputFilename' Assign name to 'dFlatTreeFileName' Assign name to 'dFlatTreeName' Uncommented 'Fill_FlatTree()'

I ran it using both PROOF and single threaded. Both gave similar errors.

The error went away when reverting to the previous version of GlueX software, namely by running: gxclean gxenv /group/halld/www/halldweb/html/halld_versions/version_5.18.3.xml

Here are paths to the dselector (and header file) and root tree:

/work/halld/home/dbarton/gluex/dselectors/DSelector_pi0kplamb_flat.C /work/halld/home/dbarton/gluex/dselectors/DSelector_pi0kplamb_flat.h

/lustre19/expphy/cache/halld/RunPeriod-2018-08/analysis/ver23/tree_pi0kplambB4_M18/merged/tree_pi0kplambB4_M18_051766.root

zihlmann commented 1 month ago

I do not think it has anything to do with "flat trees". I get the same error after some events without even attempting to create a flat tree.