[MDEV-7423] Weird behaviour with failing plugin library. Created: 2015-01-08  Updated: 2015-01-08

Status: Open
Project: MariaDB Server
Component/s: Plugins
Affects Version/s: 5.5.41
Fix Version/s: 5.5

Type: Bug Priority: Minor
Reporter: Alexey Botchkov Assignee: Alexey Botchkov
Resolution: Unresolved Votes: 0
Labels: None


 Description   

install plugin server_audit soname "server_audit.so";
ERROR 1126 (HY000): Can't open shared library '/usr/local/mysql/lib/plugin/server_audit.so' (errno: 13 /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/mysql/lib/plugin/server_audit.so))
So the plugin library cannot be loaded.
Still we have something set in the plugins table:
install plugin server_audit SONAME "server_audit.so";
ERROR 1062 (23000): Duplicate entry 'server_audit' for key 'PRIMARY'

though:

uninstall plugin server_audit;
ERROR 1305 (42000): PLUGIN server_audit does not exist



 Comments   
Comment by Elena Stepanova [ 2015-01-08 ]

Doesn't fail like that for me:

MariaDB [test]> install plugin server_audit soname 'server_audit.so';
ERROR 1126 (HY000): Can't open shared library '/data/releases/mariadb-5.5.41-linux-x86_64/lib/plugin/server_audit.so' (errno: 2, /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /data/releases/mariadb-5.5.41-linux-x86_64/lib/plug)
MariaDB [test]> select * from mysql.plugin;
Empty set (0.00 sec)
 
MariaDB [test]> exit
Bye
elenst@wheezy-64:/data/releases/mariadb-5.5.41-linux-x86_64$ cp server_audit.so lib/plugin/
elenst@wheezy-64:/data/releases/mariadb-5.5.41-linux-x86_64$ ml test --port=3310
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 2
Server version: 5.5.41-MariaDB MariaDB Server
 
Copyright (c) 2000, 2014, Oracle, MariaDB Corporation Ab and others.
 
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
 
MariaDB [test]> install plugin server_audit soname 'server_audit.so';
Query OK, 0 rows affected (0.00 sec)
 
MariaDB [test]> select @@version;
+----------------+
| @@version      |
+----------------+
| 5.5.41-MariaDB |
+----------------+
1 row in set (0.00 sec)

Do you actually have something in mysql.plugin? Did you have anything there before the failed attempt?

Comment by Sergei Golubchik [ 2015-01-08 ]

What is this bug report about? The "version `GLIBC_2.14' not found" error? Or how INSTALL/UNINSTALL behave when plugin installation fails? Or both?

Comment by Elena Stepanova [ 2015-01-08 ]

To my understanding it's about the inconsistent state that the plugin ends up after the failed installation attempt (something is written to mysql.plugin, although the plugin was not installed and hence cannot be uninstalled). But I couldn't reproduce it so far.

Generated at Thu Feb 08 07:19:29 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.