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

SET GLOBAL server_audit_logging=OFF can cause server crash when using audit plugin with MySQL 5.6

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.5.46, 10.0.22
    • Fix Version/s: 5.5.55
    • Component/s: Plugin - Audit
    • Labels:
      None

      Description

      When using version 1.3.0 of the audit plugin bundled in MariaDB 5.5.46 and 10.0.22 with MySQL 5.6, the server can crash. This crash was originally experienced with audit plugin version 1.1.8, and we thought it may have been caused by MDEV-7641. However, the crash still happens after upgrading to 1.3.0.

      151106 18:20:19 server_audit: MariaDB Audit Plugin version 1.3.0 STARTED.
      151106 18:22:32 server_audit: Log file name was changed to '/mysqllog/audit/'.
      151106 18:22:32 server_audit: Log file rotate size was changed to '5000000000'.
      151106 18:22:32 server_audit: Log file rotations was changed to '5'.
      151106 18:22:32 server_audit: server_audit_incl_users set to 'toadmin,root,lion_admin,fos_admin'.
      151106 18:22:55 server_audit: logging started to the file /mysqllog/audit/server_audit.log.
      18:24:56 UTC - mysqld got signal 11 ;
      This could be because you hit a bug. It is also possible that this binary
      or one of the libraries it was linked against is corrupt, improperly built,
      or misconfigured. This error can also be caused by malfunctioning hardware.
      We will try our best to scrape up some info that will hopefully help
      diagnose the problem, but since we have already crashed, 
      something is definitely wrong and this may fail.
       
      key_buffer_size=33554432
      read_buffer_size=131072
      max_used_connections=5
      max_threads=13100
      thread_count=4
      connection_count=2
      It is possible that mysqld could use up to 
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 8596278 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x2aae0c146020
      Attempting backtrace. You can use the following information to find out
      where mysqld died. If you see no messages after this, something went
      terribly wrong...
      stack_bottom = 4da860d0 thread_stack 0x40000
      /opt/mysql/product/mysql/bin/mysqld(my_print_stacktrace+0x35)[0x904cb5]
      /opt/mysql/product/mysql/bin/mysqld(handle_fatal_signal+0x3e8)[0x6718c8]
      /lib64/libpthread.so.0[0x306e00ebe0]
      /opt/mysql/product/mysql/lib/plugin/server_audit.so[0x2aae0b5ddaf5]
      /opt/mysql/product/mysql/lib/plugin/server_audit.so[0x2aae0b5e0092]
      /opt/mysql/product/mysql/lib/plugin/server_audit.so[0x2aae0b5e0977]
      /opt/mysql/product/mysql/lib/plugin/server_audit.so[0x2aae0b5e3769]
      /opt/mysql/product/mysql/bin/mysqld(_ZN17sys_var_pluginvar13global_updateEP3THDP7set_var+0x5d)[0x6fdffd]
      /opt/mysql/product/mysql/bin/mysqld(_ZN7sys_var6updateEP3THDP7set_var+0x6a)[0x670baa]
      /opt/mysql/product/mysql/bin/mysqld(_ZN7set_var6updateEP3THD+0x1a)[0x6710aa]
      /opt/mysql/product/mysql/bin/mysqld(_Z17sql_set_variablesP3THDP4ListI12set_var_baseE+0x89)[0x670649]
      /opt/mysql/product/mysql/bin/mysqld(_Z21mysql_execute_commandP3THD+0x14d9)[0x6f0df9]
      /opt/mysql/product/mysql/bin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x318)[0x6f6898]
      /opt/mysql/product/mysql/bin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0xbcb)[0x6f7c6b]
      /opt/mysql/product/mysql/bin/mysqld(_Z10do_commandP3THD+0xd7)[0x6f9a67]
      /opt/mysql/product/mysql/bin/mysqld(_Z24do_handle_one_connectionP3THD+0x116)[0x6c1b26]
      /opt/mysql/product/mysql/bin/mysqld(handle_one_connection+0x45)[0x6c1c05]
      /lib64/libpthread.so.0[0x306e00677d]
      /lib64/libc.so.6(clone+0x6d)[0x306d0d33ed]
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (2aae10183900): SET GLOBAL server_audit_logging=OFF
      Connection ID (thread ID): 2622
      Status: NOT_KILLED

        Attachments

          Activity

            People

            Assignee:
            holyfoot Alexey Botchkov
            Reporter:
            GeoffMontee Geoff Montee
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: