DumpMCTruth module crashes with a segmentation fault
This has been observed on an input file produced by
prodgenie_bnb_nu_cosmic_uboone.fcl (MicroBooNE) using the configuration
dump_mctruth.fcl provided with
The crash is a segmentation fault on the
analyze() method of the module.
#2 Updated by Gianluca Petrillo about 3 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
It turns out the code was saving a provenance pointer from
art::Handle::provenance(), which turns out to be pointing to a local data member of
The idea in the code was to gain access to provenance information without keeping the handles available, which was obviously not going to work.
Since in the end there was only a single piece of information needed from the provenance, now the code saves that piece of information directly rather than carrying the provenance structure around.
Fix has been pushed to
develop as larsim:39f86e7d231e1dd6ffe33b97edf7dba368f14430.