Bug #21833 Prepare_commit_mutex is not locked and unlocked under the same condition
Submitted: 25 Aug 2006 13:07 Modified: 25 Sep 2006 0:14
Reporter: Mats Kindahl Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: InnoDB storage engine Severity:S2 (Serious)
Version:5.1 OS:Any (ALL)
Assigned to: Mats Kindahl CPU Architecture:Any

[25 Aug 2006 13:07] Mats Kindahl
The prepare_commit_mutex is not aquired and released under the same condition, leading to deadlock in some rare situations involving XA transactions.

How to repeat:
Read the code.

Suggested fix:
Make sure that the mutex is released and aquired under the same conditions.
[25 Aug 2006 14:50] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:


ChangeSet@1.2253, 2006-08-25 16:50:01+02:00, mkindahl@dl145h.mysql.com +1 -0
  BUG#21833 (Prepare_commit_mutex not locked and unlocked under same condition):
  Adding condition to ensure that mutex are locked and unlocked
  under same condition.
[23 Sep 2006 7:36] Lars Thalmann
Pushed into 5.1.12
[25 Sep 2006 0:14] Paul DuBois
Noted in 5.1.12 changelog.