art-framework-suite / art

The implementation of the art physics event processing framework
Other
2 stars 7 forks source link

sanitize warning in EmptyEvent #125

Closed rlcee closed 2 years ago

rlcee commented 2 years ago

We have started running gnu sanitize on our validation jobs. One thing it reports is making a reference to a null pointer. In other places in our code, the reports were accurate. I don't know where this one might come from, but it is our last sanitize warning so it would be nice to eliminate it.
The job uses EmptyEvent source (this is the 5th event) but does mix in another file in a following module, the resampler. Let me know if you have any thoughts, or if you would like to reproduce it, I can add the recipe. Thanks

++++ finished event ++++ source event Begin processing the 5th record. run: 1 subRun: 0 event: 5 at 22-Mar-2022 21:30:29 CDT /cvmfs/mu2e.opensciencegrid.org/artexternals/gcc/v9_3_0/Linux64bit+3.10-2.17/include/c++/9.3.0/bits/stl_iterator.h:820:17: runtime error: reference binding to null pointer of type 'const struct CaloCluster' /cvmfs/mu2e.opensciencegrid.org/artexternals/gcc/v9_3_0/Linux64bit+3.10-2.17/include/c++/9.3.0/bits/stl_vector.h:1132:16: runtime error: reference binding to null pointer of type 'const struct value_type' ++++ finished source event ++++ processing event: run: 1 subRun: 0 event: 5 time: 0 ++++++ processing path for event: TriggerPath ++++++++ module for event: TargetStopResampler ++++++++ finished for event: TargetStopResampler

rlcee commented 2 years ago

I figured out how to get a traceback and this is coming from one of our modules, not EmptyEvent. I'm not sure why the print comes when it does, maybe just a print buffering issue. Sorry for the noise, I'll close this issue.