[MDEV-6698] safe_mutex: Found wrong usage of mutex 'log_space_lock' and 'LOCK_log' Created: 2014-09-04 Updated: 2014-09-12 Resolved: 2014-09-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.13 |
| Fix Version/s: | 10.0.14 |
| Type: | Bug | Priority: | Major |
| Reporter: | Pavel Ivanov | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Our automated testing detected the report from safe_mutex about wrong usage of mutexes. Manual analysis reveals that there are indeed code paths that lock these mutexes in the different order. First code path (line numbers are from 10.0.13 tarball):
Second code path:
Even if currently it's impossible for these code paths to execute at the same time in parallel please fix them to avoid safe_mutex error message (which actually means that in future some changes may lead to these paths to dead lock). |
| Comments |
| Comment by Michael Widenius [ 2014-09-09 ] |
|
I moved freeing of log_space_lock earlier to avoid the problem. |
| Comment by Michael Widenius [ 2014-09-12 ] |
|
Pushed |