Skip to content

Lifetime issues with static instances of ZMQ manager and Application on unexpected doocs server shutdown #24

Description

@phako

If the DOOCS server has a problem (e.g. rpcbind not running, type of variable with history has changed) the destruction order of the static variables in the server causes issues.

It seems that the ZMQSubscriptionManager singleton is destroyed first, causing either:

  • An incoming ZMQ callback to crash because the accessors have not unsubscribed themselves yet
  • A crash in the accessor unsubscribe call because the ZMQSubscriptionManager is already dead

This is only an issue in non-standard exit situations of the server. Orderly shutdown of the doocs server (SIGTERM/INT) works fine.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    umbrellaMeta ticket which just provides a framework for subtickets which together form a bigger task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions