[MDEV-32477] safe_mutex: Found wrong usage of mutex 'LOCK_thd_data' and 'LOCK_plugin' Created: 2023-10-16 Updated: 2024-01-31 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 11.3 |
| Fix Version/s: | 11.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Roel Van de Paar | Assignee: | Yuchen Pei |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | mutex, race | ||
| Issue Links: |
|
||||
| Description |
|
Issue initially observed during testing of
The issue can be seen either during normal operation, or during SHUTDOWN. Possibly these are different issues leading to the same outcome.
This testcase may not be representative of all issues and should not be taken as a typical example, as this issue is during SHUTDOWN and reduced readily compared with the other sporadic occurrences, which do not reduce. Still, it may provide an indication in the code as to the actual bug(s). |
| Comments |
| Comment by Roel Van de Paar [ 2023-10-16 ] | ||||||||||||
|
The issue is also present in trunk 11.3 with different line numbers:
| ||||||||||||
| Comment by Yuchen Pei [ 2023-10-18 ] | ||||||||||||
|
Given this involves LOCK_plugin and the testcase has INSTALL and | ||||||||||||
| Comment by Roel Van de Paar [ 2023-11-11 ] | ||||||||||||
|
Found a testcase which consistently (i.e. non-sporadically) reproduces the issue:
Leads to:
Testcase is MTR and CLI compatible. Present in 10.6+ however 10.6 needs a smaller max_session_mem_used set:
| ||||||||||||
| Comment by Yuchen Pei [ 2024-01-31 ] | ||||||||||||
|
I cannot reproduce either the case in the description or the one in the previous comment, at 11.3.0 126157061b4376496c034a809ea4943e863d1465 or a recent 11.3 2ba8a70658d0fd0df68273bbe26d95c1e82e2cca |