Bug #93767 | INSTALL COMPONENT fails - handled segfault during installation nothing in log | ||
---|---|---|---|
Submitted: | 30 Dec 2018 22:22 | Modified: | 25 Feb 2019 13:14 |
Reporter: | Justin Swanhart | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 8.0.13 (git source) | OS: | Debian (9.6) |
Assigned to: | CPU Architecture: | x86 |
[30 Dec 2018 22:22]
Justin Swanhart
[30 Dec 2018 22:27]
Justin Swanhart
changed the title to indicate the handled segfault
[30 Dec 2018 22:54]
Justin Swanhart
I commented out the body of query_injection_point() to see if that would change anything, but it still segfaults.
[11 Jan 2019 15:16]
MySQL Verification Team
Hello Justin, Let me know how are you !!!!! Both, our mutual friend from Bulgaria and I are delighted that you are trying to write components. Regarding the one that you have displayed for us here, I do have some bad news for you. I am afraid that you are assuming that you can, in a component, alter internal state of another component. Unfortunately, this is simply not possible with components. Plugins can do that for other plugins, but this does not work with components. I will provide you here with one useful URL for the documentation: https://dev.mysql.com/doc/dev/mysql-server/latest/ Hoping to hear from you soon !!!!!
[21 Jan 2019 18:23]
Justin Swanhart
Hi, There is only one component here. I'm not trying to modify the state of another component, everything is normal library calls. I've modified sql_cilent.h and sql_client.cc in my installation, so this code won't compile out of the box. I will provide a simpler example with an empty function (remember I tried with the body commented out) to demonstrate the problem more clearly.
[21 Jan 2019 19:10]
Justin Swanhart
Okay, so it turns out this happens when you try to install a component that is not found, instead of a nice error message like 'could not locate component'... I suggest you improve the error messages around component installation in that case. Now I can't figure out how to install my component. It is installed in /usr/local/mysql/lib/plugin/libplugin_shim.so All of the following fail: mysql> install component 'file://shim'; ERROR 3529 (HY000): Cannot load component from specified URN: 'file://shim'. mysql> install component 'file://plugin_shim'; ERROR 3529 (HY000): Cannot load component from specified URN: 'file://plugin_shim'. mysql> install component 'file://libplugin_shim'; ERROR 3529 (HY000): Cannot load component from specified URN: 'file://libplugin_shim'. How do I load my shared library. Is it named wrong?
[21 Jan 2019 20:01]
Justin Swanhart
From the docs you gave I must be missing something. I'll look at the example/ directory to see what I'm missing.
[22 Jan 2019 13:19]
MySQL Verification Team
First of all, waiting on the example. Second, try giving a full path of your component in its subdirectory under components/ directory.
[23 Feb 2019 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".