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

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

    XMLWordPrintable

Details

    Description

      INSTALL PLUGIN spider SONAME 'ha_spider.so';
      CREATE TABLE t2(a INT,c DATE);
      CREATE TABLE t1(a INT,c DATE,KEY (a)) ENGINE=Spider COMMENT='table "t2"' CONNECTION='socket "../socket.sock"';
      DROP TABLE mysql.spider_table_crd;
      UPDATE t1 SET c=':1:1' WHERE a>1;
      

      Leads to:

      bb-11.4-mdev-28861 f93c20081a8a505ac502850ec02630f95673dfba (Debug)

      mariadbd: /test/bb-11.4-mdev-28861_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.
      

      bb-11.4-mdev-28861 f93c20081a8a505ac502850ec02630f95673dfba (Debug)

      Core was generated by `/test/MDEV-28861_MD301223-mariadb-11.4.0-linux-x86_64-dbg/bin/mariadbd --no-def'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=22627834652224)
          at ./nptl/pthread_kill.c:44
      [Current thread is 1 (Thread 0x1494740be640 (LWP 523746))]
      (gdb) bt
      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=22627834652224) at ./nptl/pthread_kill.c:44
      #1  __pthread_kill_internal (signo=6, threadid=22627834652224) at ./nptl/pthread_kill.c:78
      #2  __GI___pthread_kill (threadid=22627834652224, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      #3  0x000014948c842476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      #4  0x000014948c8287f3 in __GI_abort () at ./stdlib/abort.c:79
      #5  0x000014948c82871b in __assert_fail_base (fmt=0x14948c9dd130 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x556bbb5d1cc8 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=0x556bbb5d1b98 "/test/bb-11.4-mdev-28861_dbg/sql/sql_error.cc", line=335, function=<optimized out>) at ./assert/assert.c:92
      #6  0x000014948c839e96 in __GI___assert_fail (assertion=0x556bbb5d1cc8 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=0x556bbb5d1b98 "/test/bb-11.4-mdev-28861_dbg/sql/sql_error.cc", line=335, function=0x556bbb5d1d00 "void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*)") at ./assert/assert.c:101
      #7  0x0000556bba9824bf in Diagnostics_area::set_ok_status (this=0x149438006e60, affected_rows=0, last_insert_id=last_insert_id@entry=0, message=message@entry=0x1494740bc860 "Rows matched: 0  Changed: 0  Warnings: 6") at /test/bb-11.4-mdev-28861_dbg/sql/sql_error.cc:335
      #8  0x0000556bbaae3b31 in my_ok (message=0x1494740bc860 "Rows matched: 0  Changed: 0  Warnings: 6", id=0, affected_rows_arg=<optimized out>, thd=0x149438000d58) at /test/bb-11.4-mdev-28861_dbg/sql/sql_class.h:5864
      #9  Sql_cmd_update::update_single_table (this=<optimized out>, thd=0x149438000d58) at /test/bb-11.4-mdev-28861_dbg/sql/sql_update.cc:1254
      #10 0x0000556bbaae40ac in Sql_cmd_update::execute_inner (this=0x149438013ee8, thd=0x149438000d58) at /test/bb-11.4-mdev-28861_dbg/sql/sql_update.cc:3077
      #11 0x0000556bbaa11f4b in Sql_cmd_dml::execute (this=0x149438013ee8, thd=0x149438000d58) at /test/bb-11.4-mdev-28861_dbg/sql/sql_select.cc:33415
      #12 0x0000556bba9cf194 in mysql_execute_command (thd=thd@entry=0x149438000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/bb-11.4-mdev-28861_dbg/sql/sql_parse.cc:4373
      #13 0x0000556bba9d4455 in mysql_parse (thd=thd@entry=0x149438000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x1494740bd1e0) at /test/bb-11.4-mdev-28861_dbg/sql/sql_parse.cc:7748
      #14 0x0000556bba9d67cb in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x149438000d58, packet=packet@entry=0x14943800b1c9 "UPDATE t1 SET c=':1:1' WHERE a>1", packet_length=packet_length@entry=32, blocking=blocking@entry=true) at /test/bb-11.4-mdev-28861_dbg/sql/sql_class.h:253
      #15 0x0000556bba9d88f0 in do_command (thd=0x149438000d58, blocking=blocking@entry=true) at /test/bb-11.4-mdev-28861_dbg/sql/sql_parse.cc:1406
      #16 0x0000556bbab3d835 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x556bbdf393c8, put_in_cache=put_in_cache@entry=true) at /test/bb-11.4-mdev-28861_dbg/sql/sql_connect.cc:1418
      #17 0x0000556bbab3db2a in handle_one_connection (arg=arg@entry=0x556bbdf393c8) at /test/bb-11.4-mdev-28861_dbg/sql/sql_connect.cc:1320
      #18 0x0000556bbaf8266e in pfs_spawn_thread (arg=0x556bbdec2f48) at /test/bb-11.4-mdev-28861_dbg/storage/perfschema/pfs.cc:2201
      #19 0x000014948c894ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #20 0x000014948c926660 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Bug confirmed present in:
      MariaDB: 11.4.0 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.4.33 (dbg), 10.4.33 (opt), 10.5.24 (dbg), 10.5.24 (opt), 10.6.17 (dbg), 10.6.17 (opt), 10.11.7 (dbg), 10.11.7 (opt), 11.0.5 (dbg), 11.0.5 (opt), 11.1.4 (dbg), 11.1.4 (opt), 11.2.3 (dbg), 11.2.3 (opt), 11.3.2 (dbg), 11.3.2 (opt), 11.4.0 (opt)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Roel Roel Van de Paar
              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.