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

Assertion `!is_set() || (m_status == DA_EOF_BULK && is_bulk_op())' failed, and Assertion `! is_set()' failed, on OPTIMIZE TABLE of Spider Engine

    XMLWordPrintable

    Details

      Description

      INSTALL PLUGIN spider SONAME 'ha_spider.so';
      CREATE TEMPORARY TABLE t (a INT) ENGINE=SPIDER;
      OPTIMIZE TABLE t;
      

      Leads to:

      10.6.6 e0e24b180d090d7ee378c097ab02df891b61a965 (Debug)

      mysqld: /test/10.6_dbg/sql/sql_error.cc:374: void Diagnostics_area::set_eof_status(THD*): Assertion `!is_set() || (m_status == DA_EOF_BULK && is_bulk_op())' failed.
      

      10.6.6 e0e24b180d090d7ee378c097ab02df891b61a965 (Debug)

      Core was generated by `/test/MD031221-mariadb-10.6.6-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 0x146994521700 (LWP 1275056))]
      (gdb) bt
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #1  0x00001469aa1a6859 in __GI_abort () at abort.c:79
      #2  0x00001469aa1a6729 in __assert_fail_base (fmt=0x1469aa33c588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x562823d1bfc0 "!is_set() || (m_status == DA_EOF_BULK && is_bulk_op())", file=0x562823d1be20 "/test/10.6_dbg/sql/sql_error.cc", line=374, function=<optimized out>) at assert.c:92
      #3  0x00001469aa1b7f36 in __GI___assert_fail (assertion=assertion@entry=0x562823d1bfc0 "!is_set() || (m_status == DA_EOF_BULK && is_bulk_op())", file=file@entry=0x562823d1be20 "/test/10.6_dbg/sql/sql_error.cc", line=line@entry=374, function=function@entry=0x562823d1bff8 "void Diagnostics_area::set_eof_status(THD*)") at assert.c:101
      #4  0x0000562823002970 in Diagnostics_area::set_eof_status (this=0x146950006c30, thd=thd@entry=0x146950000db8) at /test/10.6_dbg/sql/sql_error.h:1029
      #5  0x00005628231d240f in my_eof (thd=0x146950000db8) at /test/10.6_dbg/sql/sql_class.h:5561
      #6  mysql_admin_table (thd=thd@entry=0x146950000db8, tables=tables@entry=0x146950014068, check_opt=check_opt@entry=0x1469500063b8, operator_name=operator_name@entry=0x56282446d4c0 <msg_optimize>, lock_type=lock_type@entry=TL_WRITE, org_open_for_modify=org_open_for_modify@entry=true, repair_table_use_frm=false, extra_open_options=0, prepare_func=0x0, operator_func=(int (handler::*)(class handler * const, class THD *, HA_CHECK_OPT *)) 0x562823350bf2 <handler::ha_optimize(THD*, st_ha_check_opt*)>, view_operator_func=0x0, is_cmd_replicated=true) at /test/10.6_dbg/sql/sql_admin.cc:1408
      #7  0x00005628231d529e in Sql_cmd_optimize_table::execute (this=<optimized out>, thd=0x146950000db8) at /test/10.6_dbg/sql/sql_admin.cc:1574
      #8  0x0000562823062338 in mysql_execute_command (thd=thd@entry=0x146950000db8, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.6_dbg/sql/sql_parse.cc:5997
      #9  0x0000562823048dec in mysql_parse (thd=thd@entry=0x146950000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x146994520400) at /test/10.6_dbg/sql/sql_parse.cc:8030
      #10 0x0000562823057ab1 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x146950000db8, packet=packet@entry=0x14695000b769 "", packet_length=packet_length@entry=16, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1358
      #11 0x000056282305aeeb in do_command (thd=0x146950000db8, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1404
      #12 0x00005628231c0018 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x5628272ef478, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1418
      #13 0x00005628231c061d in handle_one_connection (arg=arg@entry=0x5628272ef478) at /test/10.6_dbg/sql/sql_connect.cc:1312
      #14 0x0000562823671e4e in pfs_spawn_thread (arg=0x5628271fc158) at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
      #15 0x00001469aa6b5609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #16 0x00001469aa2a3293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      10.4.23 94ef277b5b98afb25400fdb1b3b4917ef16172da (Debug)

      mysqld: /test/10.4_dbg/sql/sql_error.cc:375: void Diagnostics_area::set_eof_status(THD*): Assertion `! is_set()' failed.
      

      10.4.23 94ef277b5b98afb25400fdb1b3b4917ef16172da (Debug)

      Core was generated by `/test/MD121121-mariadb-10.4.23-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 0x14b5113ed700 (LWP 1311505))]
      (gdb) bt
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #1  0x000014b537718859 in __GI_abort () at abort.c:79
      #2  0x000014b537718729 in __assert_fail_base (fmt=0x14b5378ae588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55ba7362a133 "! is_set()", file=0x55ba73629c28 "/test/10.4_dbg/sql/sql_error.cc", line=375, function=<optimized out>) at assert.c:92
      #3  0x000014b537729f36 in __GI___assert_fail (assertion=assertion@entry=0x55ba7362a133 "! is_set()", file=file@entry=0x55ba73629c28 "/test/10.4_dbg/sql/sql_error.cc", line=line@entry=375, function=function@entry=0x55ba73629dc8 "void Diagnostics_area::set_eof_status(THD*)") at assert.c:101
      #4  0x000055ba7291300d in Diagnostics_area::set_eof_status (this=0x14b4d80067b0, thd=thd@entry=0x14b4d8000d90) at /test/10.4_dbg/sql/sql_error.h:1005
      #5  0x000055ba72ac27fb in my_eof (thd=0x14b4d8000d90) at /test/10.4_dbg/sql/sql_class.h:5071
      #6  mysql_admin_table (thd=thd@entry=0x14b4d8000d90, tables=tables@entry=0x14b4d80132f0, check_opt=check_opt@entry=0x14b4d8005fa0, operator_name=operator_name@entry=0x55ba738100e6 "optimize", lock_type=lock_type@entry=TL_WRITE, org_open_for_modify=org_open_for_modify@entry=true, repair_table_use_frm=false, extra_open_options=0, prepare_func=0x0, operator_func=(int (handler::*)(class handler * const, class THD *, HA_CHECK_OPT *)) 0x55ba72c23c70 <handler::ha_optimize(THD*, st_ha_check_opt*)>, view_operator_func=0x0, is_cmd_replicated=true) at /test/10.4_dbg/sql/sql_admin.cc:1315
      #7  0x000055ba72ac2f18 in Sql_cmd_optimize_table::execute (this=<optimized out>, thd=0x14b4d8000d90) at /test/10.4_dbg/sql/sql_admin.cc:1481
      #8  0x000055ba72968f43 in mysql_execute_command (thd=thd@entry=0x14b4d8000d90) at /test/10.4_dbg/sql/sql_parse.cc:6192
      #9  0x000055ba7296b752 in mysql_parse (thd=thd@entry=0x14b4d8000d90, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14b5113ec490, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.4_dbg/sql/sql_parse.cc:7995
      #10 0x000055ba7296e1ae in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14b4d8000d90, packet=packet@entry=0x14b4d801a361 "", packet_length=packet_length@entry=16, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.4_dbg/sql/sql_class.h:1201
      #11 0x000055ba72971aa1 in do_command (thd=0x14b4d8000d90) at /test/10.4_dbg/sql/sql_parse.cc:1373
      #12 0x000055ba72aaff09 in do_handle_one_connection (connect=connect@entry=0x55ba76482e20) at /test/10.4_dbg/sql/sql_connect.cc:1420
      #13 0x000055ba72ab0028 in handle_one_connection (arg=0x55ba76482e20) at /test/10.4_dbg/sql/sql_connect.cc:1316
      #14 0x000014b537c27609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #15 0x000014b537815293 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:
              holyfoot Alexey Botchkov
              Reporter:
              Roel Roel Van de Paar
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.