Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-6761

plugin crash depending on sys_var / show_var declaration order

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a Bug
    • Affects Version/s: 5.5.39
    • Fix Version/s: N/A
    • Component/s: Plugins
    • Labels:
    • Environment:
      Ubuntu 14.4 (using Ubuntus MariaDB packages)

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

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            hholzgra Hartmut Holzgraefe added a comment -

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

            Show
            hholzgra Hartmut Holzgraefe added a comment - 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 ...
            Hide
            elenst Elena Stepanova added a comment -

            Closing according to the last comment.

            Show
            elenst Elena Stepanova added a comment - Closing according to the last comment.

              People

              • Assignee:
                Unassigned
                Reporter:
                hholzgra Hartmut Holzgraefe
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: