Skip to content

Bug: PcapSink::Trace() is not actually thread-safe, pcap output is corrupted under concurrent tracing #420

Description

@nourfakhfakh93
Image

std::unique_lock<decltype(_lock)> lock;

This default-constructs a unique_lock that is not associated with _lock, it never actually locks the mutex. It looks like the intent was std::unique_lock<decltype(_lock)> lock(_lock);.

Waiting for your confirmation whether this is a bug, and waiting for the release containing the fix if so.

Thank you in advance.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions