[MDEV-21211] plugin loading error deadlock with server_audit enabled Created: 2019-12-03 Updated: 2021-04-19 Resolved: 2021-02-02 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Plugin - Audit, Plugins |
| Affects Version/s: | 10.4.8, 10.5 |
| Fix Version/s: | 10.4.14, 10.5.7 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Hartmut Holzgraefe | Assignee: | Alexey Botchkov |
| Resolution: | Fixed | Votes: | 3 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
When having the audit plugin installed with plugin-load-add, a failure to load a plugin that was installed with INSTALL; not plugin-load-add, leads to a server startup deadlock. Problem seems to be with the audit plugins error handling callback. I can't reproduce startup hang when having both plugins loaded with plugin-load-add, or both with INSTALL, only with the combination described above. gdb shows the following backtrace:
How to reproduce:
Server startup will now hang, startup will never finish |
| Comments |
| Comment by Jeff Dyke [ 2020-06-08 ] | |||
|
A bit of extra information if you build a server from scratch, you can't have configuration for sql_error_log, until you run INSTALL SONAME 'sql_errlog'; This may be well known, but just in case. I ran into this b/c all servers are built with Salt, so i commented out those lines, installed manually and then reran the saltstate, restarted and all was fine. Thanks! | |||
| Comment by Geoff Montee (Inactive) [ 2020-06-08 ] | |||
|
Hi ekydfejj,
You can work around that by using the loose prefix: https://mariadb.com/kb/en/mysqld-options/#-loose- e.g.:
| |||
| Comment by Jeff Dyke [ 2020-06-08 ] | |||
|
Wow, how did i not know about `loose`. Thanks! @Geoff Montee! | |||
| Comment by Alexey Botchkov [ 2020-08-10 ] | |||
|
https://github.com/MariaDB/server/commit/19bdb03e97d6f760699cd718e11f71e01c268f5e | |||
| Comment by Hartmut Holzgraefe [ 2020-10-05 ] | |||
|
This actually seems to be fixed in 10.4.14 in 10.5.5? | |||
| Comment by Hartmut Holzgraefe [ 2020-10-15 ] | |||
|
I can't reproduce this in 10.4.14 or 10.5.5 anymore. So can this be considered fixed now, or what am I missing? | |||
| Comment by Sergei Golubchik [ 2020-10-15 ] | |||
|
The symptom was fixed with a solution very specific to audit plugins failing during installation. The new patch should generally prevent all kinds of deadlocks on LOCK_plugin mutex. |