| Bug #40915 | Events takes mutex in wrong order which can easily lead to deadlocks | ||
|---|---|---|---|
| Submitted: | 21 Nov 2008 7:58 | Modified: | 23 Oct 2009 14:38 |
| Reporter: | Michael Widenius | ||
| Status: | In progress | ||
| Category: | Server: General | Severity: | S1 (Critical) |
| Version: | 5.1 | OS: | Any |
| Assigned to: | Staale Smedseng | Target Version: | 5.1+ |
| Triage: | Triaged: D2 (Serious) | ||
[21 Nov 2008 7:58]
Michael Widenius
[24 Nov 2008 14:49]
Konstantin Osipov
Hi Monty, what is wrong in this order? There does not seem to be any inter-dependences?
[24 Nov 2008 16:26]
Konstantin Osipov
locking diagram
Attachment: locking.jpg (image/jpeg, text), 17.19 KiB.
[24 Nov 2008 16:26]
Konstantin Osipov
Monty, the attached diagram has no cycles.
[25 Nov 2008 16:10]
Michael Widenius
event_scheduler are taking mutex in different order For example, in one case it's doing: mutex_lock(LOCK_event_metadata) ; mutex_lock(LOCK_schduler_state); In other cases: mutex_lock(LOCK_schduler_state); mutex_lock(LOCK_event_metadata); which leads to deadlock senarios
[20 Jan 20:03]
Sven Sandberg
See also BUG#50483
