[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: File minimal-daemon.cpp    

 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:

  • st_mysql_sys_var declared before st_mysql_show_var
  • at least two st_mysql_sys_var entries

If i comment out the 2nd sys_var entry or rearrange code
it doesn't crash anymore ...



 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 ...
I THINK I've taken this from an example that didn't have the NULL either, but that is something to report against the example source and not in the scope of this report ...

Comment by Elena Stepanova [ 2014-09-24 ]

Closing according to the last comment.

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