Details
-
Type:
Bug
-
Status: In Progress
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: N/A
-
Fix Version/s: 10.0
-
Component/s: Plugin - Audit
-
Labels:
Description
if an external program will move or remove the audit log, a segmentation fault will occur. this error will not happen, if the audit log file exist while mysql is started. if flush logs is executed after file has been moved but before stop+start of audit is triggered (via setting the file path or setting audit=OFF and audit=ON, see logrotate config), the probability of getting a segfault will be reduced.
problem will occur with audit plugin (file rotation disabled) + mysql 5.6 + ubuntu 14.04 on git commit cc84ac3be41d9d6ac480d55449d5bf4e324cca10
gdb output: http://pastebin.com/ccs2Fug7
logrotate script: http://pastebin.com/CnLANyEm
mysql error log: http://pastebin.com/P51NsFxs
my naive solution would be to call stop_logging/start_logging on rotate() if file rotations are set to 0. this will trigger the needed reopen of the logfile
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Hi,
Are you really also getting the crash on MariaDB 5.5, 10.0, 10.1.1 as the 'Affects Version/s' field states?
And which exact version of MySQL 5.6 are you using?
I can reproduce it on MySQL 5.6.23, but so far only there. Couldn't reproduce on MariaDB, or on MySQL 5.5, or on MySQL 5.6.24.
It's possible though it's just the matter of "luck"...