Server crashes if SQL_ERROR_LOG fails to initialize
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Committed
|
High
|
Alexey Botchkov |
Bug Description
If SQL_ERROR_LOG plugin returns an error upon initialization, e.g. if it cannot create the log file, server crashes:
Could not create file 'sql.err'
120316 1:22:18 [ERROR] Plugin 'SQL_ERROR_LOG' init function returned error.
120316 1:22:18 [ERROR] Plugin 'SQL_ERROR_LOG' registration as a AUDIT failed.
2d2d2d d:2d:2d [ERROR] mysqld got signal 11 ;
#4 <signal handler called>
#5 0x0836cc08 in logger_close (log=0x0) at /home/elenst/
#6 0xb779d8dd in sql_error_
#7 0x0831ca01 in finalize_
#8 0x08249856 in plugin_deinitialize (plugin=0x95cf690, ref_check=true)
at /home/elenst/
#9 0x08249c1d in reap_plugins () at /home/elenst/
#10 0x0824c101 in mysql_install_
at /home/elenst/
#11 0x0823e95e in mysql_execute_
#12 0x08241cc3 in mysql_parse (thd=0xa057580, rawbuf=0xa1043e0 "install soname 'sql_errlog.so'", length=30,
parser_
#13 0x08236133 in dispatch_command (command=COM_QUERY, thd=0xa057580,
packet=
at /home/elenst/
#14 0x082355f8 in do_command (thd=0xa057580) at /home/elenst/
#15 0x0831fbe9 in do_handle_
at /home/elenst/
#16 0x0831f734 in handle_
#17 0xb7772b25 in start_thread () from /lib/libpthread
bzr version-info
revision-id: <email address hidden>
date: 2012-03-15 00:37:37 +0100
build-date: 2012-03-16 01:22:47 +0400
revno: 3331
To reproduce, try to start server as
mysqld <other parameters> --plugin-
see the crash.
(An empty file name is just the simplest way to get the error, but it's not required to reproduce the problem, it can be insufficient access rights, or whatever else).
Also filed in JIRA as MDEV-184