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

Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed on HANDLER OPEN

    XMLWordPrintable

    Details

      Description

      Possibly connected with MDEV-27186, but stack differs.

      INSTALL PLUGIN spider SONAME 'ha_spider.so';
      CREATE TABLE t (c INT PRIMARY KEY) ENGINE=SPIDER PARTITION BY KEY() PARTITIONS 2;
      HANDLER t OPEN AS h;
      

      Leads to:

      10.7.2 979b23d5bfb11bb698ea65c9468b374978737ec0 (Debug)

      mysqld: /test/10.7_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.7.2 979b23d5bfb11bb698ea65c9468b374978737ec0 (Debug)

      Core was generated by `/test/MD121221-mariadb-10.7.2-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      [Current thread is 1 (Thread 0x14d3e9782700 (LWP 1279009))]
      (gdb) bt
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #1  0x000014d4083f2859 in __GI_abort () at abort.c:79
      #2  0x000014d4083f2729 in __assert_fail_base (fmt=0x14d408588588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55858c15da78 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=0x55858c15d958 "/test/10.7_dbg/sql/sql_error.cc", line=335, function=<optimized out>) at assert.c:92
      #3  0x000014d408403f36 in __GI___assert_fail (assertion=assertion@entry=0x55858c15da78 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=file@entry=0x55858c15d958 "/test/10.7_dbg/sql/sql_error.cc", line=line@entry=335, function=function@entry=0x55858c15dab0 "void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*)") at assert.c:101
      #4  0x000055858b4488b3 in Diagnostics_area::set_ok_status (this=0x14d3a0006d18, affected_rows=affected_rows@entry=0, last_insert_id=last_insert_id@entry=0, message=message@entry=0x0) at /test/10.7_dbg/sql/sql_error.h:1031
      #5  0x000055858b44c26d in my_ok (message=0x0, id=0, affected_rows_arg=0, thd=0x14d3a0000db8) at /test/10.7_dbg/sql/sql_class.h:5524
      #6  mysql_ha_open (thd=thd@entry=0x14d3a0000db8, tables=<optimized out>, tables@entry=0x14d3a0013eb0, reopen=reopen@entry=0x0) at /test/10.7_dbg/sql/sql_handler.cc:473
      #7  0x000055858b4a7052 in mysql_execute_command (thd=thd@entry=0x14d3a0000db8, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.7_dbg/sql/sql_parse.cc:5574
      #8  0x000055858b48ee0f in mysql_parse (thd=thd@entry=0x14d3a0000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14d3e9781400) at /test/10.7_dbg/sql/sql_parse.cc:8028
      #9  0x000055858b49daab in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14d3a0000db8, packet=packet@entry=0x14d3a000b879 "HANDLER t OPEN AS h", packet_length=packet_length@entry=19, blocking=blocking@entry=true) at /test/10.7_dbg/sql/sql_class.h:1360
      #10 0x000055858b4a0eea in do_command (thd=0x14d3a0000db8, blocking=blocking@entry=true) at /test/10.7_dbg/sql/sql_parse.cc:1402
      #11 0x000055858b61a902 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55858f01d9c8, put_in_cache=put_in_cache@entry=true) at /test/10.7_dbg/sql/sql_connect.cc:1418
      #12 0x000055858b61af07 in handle_one_connection (arg=arg@entry=0x55858f01d9c8) at /test/10.7_dbg/sql/sql_connect.cc:1312
      #13 0x000055858ba9b33e in pfs_spawn_thread (arg=0x55858ef31468) at /test/10.7_dbg/storage/perfschema/pfs.cc:2201
      #14 0x000014d408901609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #15 0x000014d4084ef293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.4.23 (dbg), 10.5.14 (dbg), 10.6.6 (dbg), 10.7.2 (dbg), 10.8.0 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.2.42 (dbg), 10.2.42 (opt), 10.3.33 (dbg), 10.3.33 (opt), 10.4.23 (opt), 10.5.14 (opt), 10.6.6 (opt), 10.7.2 (opt), 10.8.0 (opt)
      MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.36 (dbg), 5.7.36 (opt), 8.0.27 (dbg), 8.0.27 (opt)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              nayuta-yanagisawa Nayuta Yanagisawa
              Reporter:
              Roel Roel Van de Paar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Git Integration

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