Skip to content

Bug: crash with signature std::__atomic_base in ResourceMonitor #1952

@npoltorapavlo

Description

@npoltorapavlo

Problem/Opportunity

Break() issued by SocketPort::Close is expected to close and unregister SocketPort from ResourceMonitor async when in WaitForClosure. This may not happen, followed by (closed == true) assert log, then SocketPort probably destroys in the middle of SocketPort::Events() called by ResourceMonitor.

Steps to reproduce

No response

Expected Behavior

Destroyed SocketPort should not be in ResourceMonitor.

Actual Behavior

ASSERT [/usr/src/debug/lib32-wpeframework/4.4-r0/git/Source/core/SocketPort.cpp:632] (closed == true) 
if ((IsForcedClosing() == true) && (Closed() == true)) {
  result = 0;
  m_State &= ~SocketPort::MONITOR; <--- SIGSEGV
}

Notes (Optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions