[MDEV-9094] SET GLOBAL server_audit_logging=OFF can cause server crash when using audit plugin with MySQL 5.6 Created: 2015-11-06 Updated: 2018-02-07 Resolved: 2017-02-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Plugin - Audit |
| Affects Version/s: | 5.5.46, 10.0.22 |
| Fix Version/s: | 5.5.55 |
| Type: | Bug | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Alexey Botchkov |
| Resolution: | Cannot Reproduce | Votes: | 2 |
| Labels: | None | ||
| Attachments: |
|
| Description |
|
When using version 1.3.0 of the audit plugin bundled in MariaDB 5.5.46 and 10.0.22 with MySQL 5.6, the server can crash. This crash was originally experienced with audit plugin version 1.1.8, and we thought it may have been caused by
|
| Comments |
| Comment by Stephen Smith [ 2016-04-20 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
I've had the exact same problem using version 1.3 and 1.4 of the plugin on Percona Server 5.6.14. It also happens with other global commands in 1.4 , for example: MYSQL> set global server_audit_file_path='/mysql/logs/logs/audit.log'; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Stephen Smith [ 2016-04-26 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
I did more testing on Percona 5.6.14 and found that if mysql is restarted at least once before issuing the "SET GLOBAL server_audit_logging=OFF", the crash does not happen. Also, I tested Percona 5.6.29 and found that no crashes happen at all, even if mysql is not restarted before turning the audit plugin off. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alexey Botchkov [ 2017-02-27 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Can't repeat. Was probably fixed already. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by David Villalobos Cambronero [ 2018-02-07 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi all, Days ago I started to develop a custom MariaDB plug-in, and after some research found this report, I am trying to create an MYSQL_AUDIT_PLUGIN and when I try to set a value to a variable the server crashes, if I create a MYSQL_DAEMON_PLUGIN plug-in the process of setting a value works just fine, any clue? FuncionesUTN.c PD. Best regards | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by David Villalobos Cambronero [ 2018-02-07 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi all, I found a solution, if I set the update function everything works fine.
|