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

Audit: Server crashes on setting server_audit variables to NULL

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      Test case 1:

      install soname 'server_audit';
      set global server_audit_file_path = NULL;

      #3  <signal handler called>
      #4  0x0000000000ced7d2 in my_strdup (from=0x0, my_flags=0) at 5.5-noga-hf/mysys/my_malloc.c:138
      #5  0x00000000006298a9 in update_func_str (thd=0x349c350, var=0x7f35c6384320, tgt=0x7f35c63847a8, save=0x7f35b8047e70) at 5.5-noga-hf/sql/sql_plugin.cc:2652
      #6  0x000000000062b35f in sys_var_pluginvar::global_update (this=0x7f35b801ad28, thd=0x349c350, var=0x7f35b8047e48) at 5.5-noga-hf/sql/sql_plugin.cc:3299
      #7  0x000000000057a469 in sys_var::update (this=0x7f35b801ad28, thd=0x349c350, var=0x7f35b8047e48) at 5.5-noga-hf/sql/set_var.cc:199
      #8  0x000000000057b5aa in set_var::update (this=0x7f35b8047e48, thd=0x349c350) at 5.5-noga-hf/sql/set_var.cc:667
      #9  0x000000000057b186 in sql_set_variables (thd=0x349c350, var_list=0x34a03d8) at 5.5-noga-hf/sql/set_var.cc:571
      #10 0x0000000000616092 in mysql_execute_command (thd=0x349c350) at 5.5-noga-hf/sql/sql_parse.cc:3221
      #11 0x000000000061d200 in mysql_parse (thd=0x349c350, rawbuf=0x7f35b803c578 "set global server_audit_file_path = NULL", length=40, parser_state=0x7f35c63cd4f0) at 5.5-noga-hf/sql/sql_parse.cc:5764
      #12 0x00000000006108d7 in dispatch_command (command=COM_QUERY, thd=0x349c350, packet=0x3501291 "set global server_audit_file_path = NULL", packet_length=40) at 5.5-noga-hf/sql/sql_parse.cc:1071
      #13 0x000000000060fae7 in do_command (thd=0x349c350) at 5.5-noga-hf/sql/sql_parse.cc:794
      #14 0x000000000071be9b in do_handle_one_connection (thd_arg=0x349c350) at 5.5-noga-hf/sql/sql_connect.cc:1266
      #15 0x000000000071b882 in handle_one_connection (arg=0x349c350) at 5.5-noga-hf/sql/sql_connect.cc:1181
      #16 0x00000000009788ba in pfs_spawn_thread (arg=0x34b2050) at 5.5-noga-hf/storage/perfschema/pfs.cc:1015
      #17 0x00007f35ce2b9e9a in start_thread (arg=0x7f35c63ce700) at pthread_create.c:308
      #18 0x00007f35cd5adcbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

      Test case 2:

      install soname 'server_audit';
      SET GLOBAL server_audit_incl_ddl_users = NULL;

      #3  <signal handler called>
      #4  __strncpy_ssse3 () at ../sysdeps/x86_64/multiarch/strcpy-ssse3.S:44
      #5  0x00007f48edebcc2a in update_incl_ddl_users (thd=0x2c0d350, var=0x7f48ee0be200, var_ptr=0x7f48ee0be798, save=0x7f48e0047e70) at 5.5-noga-hf/plugin/server_audit/server_audit.c:607
      #6  0x000000000062b35f in sys_var_pluginvar::global_update (this=0x7f48e001a7e8, thd=0x2c0d350, var=0x7f48e0047e48) at 5.5-noga-hf/sql/sql_plugin.cc:3299
      #7  0x000000000057a469 in sys_var::update (this=0x7f48e001a7e8, thd=0x2c0d350, var=0x7f48e0047e48) at 5.5-noga-hf/sql/set_var.cc:199
      #8  0x000000000057b5aa in set_var::update (this=0x7f48e0047e48, thd=0x2c0d350) at 5.5-noga-hf/sql/set_var.cc:667
      #9  0x000000000057b186 in sql_set_variables (thd=0x2c0d350, var_list=0x2c113d8) at 5.5-noga-hf/sql/set_var.cc:571
      #10 0x0000000000616092 in mysql_execute_command (thd=0x2c0d350) at 5.5-noga-hf/sql/sql_parse.cc:3221
      #11 0x000000000061d200 in mysql_parse (thd=0x2c0d350, rawbuf=0x7f48e003c578 "SET GLOBAL server_audit_incl_ddl_users = NULL", length=45, parser_state=0x7f48ee1074f0) at 5.5-noga-hf/sql/sql_parse.cc:5764
      #12 0x00000000006108d7 in dispatch_command (command=COM_QUERY, thd=0x2c0d350, packet=0x2c72291 "SET GLOBAL server_audit_incl_ddl_users = NULL", packet_length=45) at 5.5-noga-hf/sql/sql_parse.cc:1071
      #13 0x000000000060fae7 in do_command (thd=0x2c0d350) at 5.5-noga-hf/sql/sql_parse.cc:794
      #14 0x000000000071be9b in do_handle_one_connection (thd_arg=0x2c0d350) at 5.5-noga-hf/sql/sql_connect.cc:1266
      #15 0x000000000071b882 in handle_one_connection (arg=0x2c0d350) at 5.5-noga-hf/sql/sql_connect.cc:1181
      #16 0x00000000009788ba in pfs_spawn_thread (arg=0x2c23050) at 5.5-noga-hf/storage/perfschema/pfs.cc:1015
      #17 0x00007f48f6069e9a in start_thread (arg=0x7f48ee108700) at pthread_create.c:308
      #18 0x00007f48f535dcbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

      bzr version-info

      revision-id: holyfoot@askmonty.org-20130705160101-ni574i35exft3wn5
      revno: 3825
      branch-nick: 5.5-noga-hf

      Attachments

        Issue Links

          Activity

            People

              holyfoot Alexey Botchkov
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.