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

Assertion `! is_set() || m_can_overwrite_status' failed in Diagnostics_area::set_error_status on SET STATEMENT debug_sync

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • N/A
    • 10.1.2
    • OTHER
    • None

    Description

      # If you reproduce outside MTR, make sure the server is started with --debug-sync
       
      --source include/have_debug_sync.inc
      set statement DEBUG_SYNC = 'now SIGNAL hi' for select 1;

      bb-10.1-set-statement/sql/sql_error.cc:473: void Diagnostics_area::set_error_status(uint, const char*, const char*, const Sql_conditio
      n*): Assertion `! is_set() || m_can_overwrite_status' failed.

      #6  0x00007f5bec5386f1 in *__GI___assert_fail (assertion=0x7f5bef759c88 "! is_set() || m_can_overwrite_status", file=<optimized out>, line=473, function=0x7f5bef75a9e0 "void Diagnostics_area::set_error_status(uint, const char*, const char*, const Sql_condition*)") at assert.c:81
      #7  0x00007f5beee2616f in Diagnostics_area::set_error_status (this=0x7f5bd2f49130, sql_errno=1064, message=0x7f5bee90b0a0 "Illegal or out of order stuff: '-'", sqlstate=0x7f5bef778c3b "42000", error_condition=0x0) at git/bb-10.1-set-statement/sql/sql_error.cc:473
      #8  0x00007f5beee0c63a in THD::raise_condition (this=0x7f5bd2f44070, sql_errno=1064, sqlstate=0x7f5bef778c3b "42000", level=Sql_condition::WARN_LEVEL_ERROR, msg=0x7f5bee90b0a0 "Illegal or out of order stuff: '-'") at git/bb-10.1-set-statement/sql/sql_class.cc:1305
      #9  0x00007f5beed8719d in my_message_sql (error=1064, str=0x7f5bee90b0a0 "Illegal or out of order stuff: '-'", MyFlags=0) at git/bb-10.1-set-statement/sql/mysqld.cc:3568
      #10 0x00007f5bef68d060 in my_printf_error (error=1064, format=0x7f5bef76a650 "Illegal or out of order stuff: '%.*s'", MyFlags=0) at git/bb-10.1-set-statement/mysys/my_error.c:154
      #11 0x00007f5beee78dff in debug_sync_eval_action (thd=0x7f5bd2f44070, action_str=0x7f5bd2c85b50 "ON") at git/bb-10.1-set-statement/sql/debug_sync.cc:1215
      #12 0x00007f5beee78f14 in debug_sync_update (thd=0x7f5bd2f44070, val_str=0x7f5bd2c85b50 "ON") at git/bb-10.1-set-statement/sql/debug_sync.cc:1257
      #13 0x00007f5beefa6e3f in Sys_var_debug_sync::session_update (this=0x7f5bf0111de0, thd=0x7f5bd2f44070, var=0x7f5bd2c853c8) at git/bb-10.1-set-statement/sql/sys_vars.h:1442
      #14 0x00007f5beeda344b in sys_var::update (this=0x7f5bf0111de0, thd=0x7f5bd2f44070, var=0x7f5bd2c853c8) at git/bb-10.1-set-statement/sql/set_var.cc:201
      #15 0x00007f5beeda4f8f in set_var::update (this=0x7f5bd2c853c8, thd=0x7f5bd2f44070) at git/bb-10.1-set-statement/sql/set_var.cc:794
      #16 0x00007f5beeda4b40 in sql_set_variables (thd=0x7f5bd2f44070, var_list=0x7f5bd2f48ab0, free=false) at git/bb-10.1-set-statement/sql/set_var.cc:695
      #17 0x00007f5beee426e4 in LEX::restore_set_statement_var (this=0x7f5bd2f47cd0) at git/bb-10.1-set-statement/sql/sql_lex.cc:4244
      #18 0x00007f5beee564da in mysql_execute_command (thd=0x7f5bd2f44070) at git/bb-10.1-set-statement/sql/sql_parse.cc:5580
      #19 0x00007f5beee5a0c1 in mysql_parse (thd=0x7f5bd2f44070, rawbuf=0x7f5bd2c85088 "set statement DEBUG_SYNC = 'now SIGNAL hi' for select 1", length=55, parser_state=0x7f5bee90c210) at git/bb-10.1-set-statement/sql/sql_parse.cc:7049
      #20 0x00007f5beee49918 in dispatch_command (command=COM_QUERY, thd=0x7f5bd2f44070, packet=0x7f5bd2c66071 "", packet_length=55) at git/bb-10.1-set-statement/sql/sql_parse.cc:1466
      #21 0x00007f5beee48736 in do_command (thd=0x7f5bd2f44070) at git/bb-10.1-set-statement/sql/sql_parse.cc:1095
      #22 0x00007f5beef76c5b in do_handle_one_connection (thd_arg=0x7f5bd2f44070) at git/bb-10.1-set-statement/sql/sql_connect.cc:1351
      #23 0x00007f5beef769a0 in handle_one_connection (arg=0x7f5bd2f44070) at git/bb-10.1-set-statement/sql/sql_connect.cc:1262
      #24 0x00007f5bee552b50 in start_thread (arg=<optimized out>) at pthread_create.c:304

      commit bb76afc4195ce15cb6da3441df127edba995878e
      Author: Oleksandr Byelkin <sanja@mariadb.com>
      Date:   Wed Oct 29 11:41:23 2014 +0100
       
          Check of debug_dbug variable added

      Could not reproduce on Percona server.

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.