Skip to content

SocketNotifier not thread-safe #2345

@aleks-f

Description

@aleks-f

getting race reports from reactor tests with thread sanitizer build

WARNING: ThreadSanitizer: data race (pid=27893)
  Write of size 8 at 0x7d0c00009ba8 by thread T2:
    #0 operator delete(void*) <null> (libtsan.so.0+0x000000025d19)
    #1 Poco::Net::StreamSocketImpl::~StreamSocketImpl() <null> (libPocoNet.so.80+0x0000000cce29)
    #2 Poco::Net::Socket::~Socket() <null> (libPocoNet.so.80+0x00000008c005)

looks like the impl pointer should be atomic (or access protected by mutex)?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions