Skip to content

Sporadic failure in ServiceTracker on framework shutdown #920

@tcormackMW

Description

@tcormackMW

There is a sporadic issue where it seems like GetLogSink() returns nullptr when the framework is being torn down and then is dereferenced. The error originates in ServiceTracker.hpp (line 190):

  DIAG_LOG(*d->context.GetLogSink()) << "ServiceTracker<S,TTT>::close[cached cleared]:" << d->filter;

Either the context is not valid at this point (it is being checked before for validity) or GetLogSink() is referencing a deleted object. It seems to be a race condition while closing the framework.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions