[MDEV-6761] plugin crash depending on sys_var / show_var declaration order Created: 2014-09-20 Updated: 2014-09-24 Resolved: 2014-09-24 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Plugins |
| Affects Version/s: | 5.5.39 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Hartmut Holzgraefe | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | crash, plugins | ||
| Environment: |
Ubuntu 14.4 (using Ubuntus MariaDB packages) |
||
| Attachments: |
|
| Description |
|
I just had the weird effect that adding a STATUS variable to an already working audit plugin made the server crash on plugin_init() After stripping things down I ended up with a minimal daemon plugin that only defines one status variable and two config variables. The crash only happens if:
If i comment out the 2nd sys_var entry or rearrange code |
| Comments |
| Comment by Hartmut Holzgraefe [ 2014-09-20 ] |
|
Forget it, it was just the NULL terminator at the end of the st_mysql_sys_var list missing ... |
| Comment by Elena Stepanova [ 2014-09-24 ] |
|
Closing according to the last comment. |