← Back to team overview

touch-packages team mailing list archive

[Bug 1427976] Re: SessionMediator locks mutexes in one thread and unlocks them in another

 

** Changed in: mir (Ubuntu)
   Importance: Undecided => High

** Changed in: mir (Ubuntu)
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mir in Ubuntu.
https://bugs.launchpad.net/bugs/1427976

Title:
  SessionMediator locks mutexes in one thread and unlocks them in
  another

Status in Mir:
  Fix Committed
Status in mir package in Ubuntu:
  Triaged

Bug description:
  SessionMediator locks mutexes in one thread and unlocks them in
  another thread during create_surface or exchange_buffer. This can
  cause undefined behavior:

  http://www.cplusplus.com/reference/mutex/mutex/unlock/

  "If the mutex is not currently locked by the calling thread, it causes
  undefined behavior."

  This may potentially be the root cause of  a hang (wait handle never
  signals) seen when creating/destroying menu surfaces while a parent
  does swap_buffers.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mir/+bug/1427976/+subscriptions