[MDEV-26558] A cyclic order on lock acquisitions (possibly resulting a deadlock) Created: 2021-09-07 Updated: 2021-11-24 Resolved: 2021-11-24 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Backup |
| Affects Version/s: | 10.6.4 |
| Fix Version/s: | 10.8.0, 10.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Ryan | Assignee: | Robert Bindar |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
All |
||
| Description |
|
Hi, developers, thank you for your checking. It seems there is a (potential) deadlock bug in the below code. The function extract_worker_thread_func is not thread-safe, because there is a cyclic acquisition order between the ctxt->mutex and entry->mutex.
|
| Comments |
| Comment by Robert Bindar [ 2021-11-24 ] |
|
Merged Ryan's contribution from github. |