Skip to content

UploadNow is not safe to call asynchronously with FlushAndTeardown #228

Closed
@bliptec

Description

@bliptec

It's possible for UploadNow to execute while the system is half-shutdown in FlushAndTeardown. In Edge this manifested as a crash when trying to acquire the (now destroyed) lock for offline storage, which had already been shut down.

UploadNow does check that the log manager exists, but does not guarantee that the log manager is valid throughout the lifetime of the call. @maxgolov was able to repro a similar crash by adding an artificial pause is FushAndTeardown

Metadata

Metadata

Assignees

Labels

EDGEPartner Team - Microsoft EdgePR sent to code reviewPending code reviewbugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions