-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sys_eval crash mysql and sys_exec do nothing #10
Comments
I have the same issue with MySql 5.6. Here is the error log section for the problem: key_buffer_size=8388608 Thread pointer: 0x174590a0 Trying to get some variables. The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains |
I have the same issue with MySql 5.7 on Centos 7. Does no one know the answer? |
Hi,
I try to use this plugin on a 5.5.42-MariaDB, Thus I compiled (gcc -DMYSQL_DYNAMIC_PLUGIN -fPIC -Wall -I/usr/include/mysql -shared lib_mysqludf_sys.c -o /usr/lib/mysql/plugin/lib_mysqludf_sys.so) the .so and placed it in the right folder then created the function like this:
CREATE FUNCTION sys_exec RETURNS int SONAME 'lib_mysqludf_sys.so';
CREATE FUNCTION sys_eval RETURNS string SONAME 'lib_mysqludf_sys.so';
No errors, but:
MariaDB [(none)]> select sys_exec('pwd');
+-----------------+
| sys_exec('pwd') |
+-----------------+
| -1 |
+-----------------+
1 row in set (0.01 sec)
and
MariaDB [(none)]> SELECT sys_eval('id');
ERROR 2013 (HY000): Lost connection to MySQL server during query
With this in the syslog right after the sys_eval:
mysqld: 160108 14:43:29 [ERROR] mysqld got signal 11 ;
mysqld: This could be because you hit a bug. It is also possible that this binary
mysqld: or one of the libraries it was linked against is corrupt, improperly built,
mysqld: or misconfigured. This error can also be caused by malfunctioning hardware.
Any idea ?
The text was updated successfully, but these errors were encountered: