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

Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed in Diagnostics_area::set_ok_status

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Duplicate
    • 10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL)
    • N/A
    • XA

    Description

      USE test;
      CREATE TABLE t1(bitk bit);
      XA BEGIN '0';
      INSERT INTO t1 VALUES(1);
      BINLOG ' O1ZVRw8BAAAAZgAAAGoAAAAAAAQANS4xLjIzLXJjLWRlYnVnLWxvZwAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAA7VlVHEzgNAAgAEgAEBAQEEgAAUwAEGggAAAAICAgC ';
      

      Leads to:

      10.5.4 8569dac1ec9f6853a0b2f3ea9bcbda67644ead24

      mysqld: /test/10.5_dbg/sql/sql_error.cc:335: void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*): Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed.
      

      10.5.4 8569dac1ec9f6853a0b2f3ea9bcbda67644ead24

      Core was generated by `/test/MD260520-mariadb-10.5.4-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
          at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
      [Current thread is 1 (Thread 0x15401e9ad700 (LWP 1309567))]
      (gdb) bt
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
      #1  0x000055e247018d7a in my_write_core (sig=sig@entry=6) at /test/10.5_dbg/mysys/stacktrace.c:518
      #2  0x000055e2467be385 in handle_fatal_signal (sig=6) at /test/10.5_dbg/sql/signal_handler.cc:330
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
      #5  0x000015401d0f1801 in __GI_abort () at abort.c:79
      #6  0x000015401d0e139a in __assert_fail_base (fmt=0x15401d2687d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x55e24718e198 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=file@entry=0x55e24718e140 "/test/10.5_dbg/sql/sql_error.cc", line=line@entry=335, function=function@entry=0x55e24718ecc0 <Diagnostics_area::set_ok_status(unsigned long long, unsigned long long, char const*)::__PRETTY_FUNCTION__> "void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*)") at assert.c:92
      #7  0x000015401d0e1412 in __GI___assert_fail (assertion=assertion@entry=0x55e24718e198 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=file@entry=0x55e24718e140 "/test/10.5_dbg/sql/sql_error.cc", line=line@entry=335, function=function@entry=0x55e24718ecc0 <Diagnostics_area::set_ok_status(unsigned long long, unsigned long long, char const*)::__PRETTY_FUNCTION__> "void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*)") at assert.c:101
      #8  0x000055e2464ca3af in Diagnostics_area::set_ok_status (this=0x153ffbc1ab90, affected_rows=affected_rows@entry=0, last_insert_id=last_insert_id@entry=0, message=message@entry=0x0) at /test/10.5_dbg/sql/sql_error.cc:335
      #9  0x000055e24663a391 in my_ok (message=0x0, id=0, affected_rows_arg=0, thd=0x153ffbc15088) at /test/10.5_dbg/sql/sql_class.h:5198
      #10 mysql_client_binlog_statement (thd=thd@entry=0x153ffbc15088) at /test/10.5_dbg/sql/sql_binlog.cc:388
      #11 0x000055e2465193b9 in mysql_execute_command (thd=thd@entry=0x153ffbc15088) at /test/10.5_dbg/sql/sql_parse.cc:5864
      #12 0x000055e24652102e in mysql_parse (thd=thd@entry=0x153ffbc15088, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x15401e9ac3d0, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:7991
      #13 0x000055e24650db42 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x153ffbc15088, packet=packet@entry=0x153ffbc67089 "BINLOG ' O1ZVRw8BAAAAZgAAAGoAAAAAAAQANS4xLjIzLXJjLWRlYnVnLWxvZw", 'A' <repeats 22 times>, " ", 'A' <repeats 19 times>, "7VlVHEzgNAAgAEgAEBAQEEgAAUwAEGggAAAAICAgC '", packet_length=packet_length@entry=148, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:1874
      #14 0x000055e24650c31c in do_command (thd=0x153ffbc15088) at /test/10.5_dbg/sql/sql_parse.cc:1355
      #15 0x000055e24666673f in do_handle_one_connection (connect=<optimized out>, connect@entry=0x153ffd8453a8, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1411
      #16 0x000055e246666e5b in handle_one_connection (arg=arg@entry=0x153ffd8453a8) at /test/10.5_dbg/sql/sql_connect.cc:1313
      #17 0x000055e246ac614e in pfs_spawn_thread (arg=0x15401c445888) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
      #18 0x000015401ddd46db in start_thread (arg=0x15401e9ad700) at pthread_create.c:463
      #19 0x000015401d1d288f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.1.46 (dbg), 10.2.33 (dbg), 10.3.24 (dbg), 10.4.14 (dbg), 10.5.4 (dbg)
      MySQL: 5.5.62 (dbg)

      Bug confirmed not present in:
      MariaDB: 10.1.46 (opt), 10.2.33 (opt), 10.3.24 (opt), 10.4.14 (opt), 10.5.4 (opt)
      MySQL: 5.5.62 (opt), 5.6.47 (dbg), 5.6.47 (opt), 5.7.29 (dbg), 5.7.29 (opt), 8.0.19 (dbg), 8.0.19 (opt)

      Attachments

        Issue Links

          Activity

            People

              Elkin Andrei Elkin
              Roel Roel Van de Paar
              Votes:
              0 Vote for this issue
              Watchers:
              6 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.