You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug#28637947 - XPLUGIN CRASH FOR LARGE NUMBER OF SESSION OPEN/CLOSE OPERATIONS
Description
===========
Assigning, copying 'std::shared_ptr' by multiple threads is an undefined
behavior. X Plugin is resassigning Client::m_session field, after succesful
reset-session operation. In the same time other thread copyied m_session
to do THD verification. Both instances of shared_ptr were trying to free
same shared-ptr control block.
Fix
===
Access to m_session from other thread was wrapped in 'm_session_exit_mutex'
lock.
Change-Id: Ifefcfd71d4e2a47a9422e13c582491bdecf0fadb
RB: 20543
Reviewed-by: Grzegorz Szwarc <[email protected]>
0 commit comments