Project

General

Profile

Bug #20956

MetricManager global pointer can point to destructed MetricManager

Added by Eric Flumerfelt almost 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Known Issues
Target version:
Start date:
09/27/2018
Due date:
% Done:

0%

Estimated time:
Experiment:
-
Co-Assignees:
Duration:

Description

Since the Globals class stored a pointer to a concrete MetricManager instance managed by a different class, the lifetime of the pointer was not associated with the lifetime of the MetricManager instance. The instance has been moved so that it is a static global with Globals, destructed by a call to artdaq::Globals::CleanUpGlobals.

This resolution of the bug has the beneficial side-effect of allowing metrics to be sent from art processes in an artdaq system.



Also available in: Atom PDF