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 ...