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

plugin crash depending on sys_var / show_var declaration order

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • 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 ...

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: