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

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

    XMLWordPrintable

    Details

      Description

      INSTALL PLUGIN spider SONAME 'ha_spider.so';
      CREATE TABLE t (c INT PRIMARY KEY) ENGINE=SPIDER PARTITION BY HASH (c) PARTITIONS 2;
      CREATE TRIGGER t AFTER INSERT ON t FOR EACH ROW INSERT INTO t VALUES(0);
      

      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 0x14723075c700 (LWP 21035))]
      (gdb) bt
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #1  0x000014723b9c0859 in __GI_abort () at abort.c:79
      #2  0x000014723b9c0729 in __assert_fail_base (fmt=0x14723bb56588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x564d179a0a78 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=0x564d179a0958 "/test/10.7_dbg/sql/sql_error.cc", line=335, function=<optimized out>) at assert.c:92
      #3  0x000014723b9d1f36 in __GI___assert_fail (assertion=assertion@entry=0x564d179a0a78 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=file@entry=0x564d179a0958 "/test/10.7_dbg/sql/sql_error.cc", line=line@entry=335, function=function@entry=0x564d179a0ab0 "void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*)") at assert.c:101
      #4  0x0000564d16c8b8b3 in Diagnostics_area::set_ok_status (this=0x1471e8006d18, 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  0x0000564d16de2a32 in my_ok (message=0x0, id=0, affected_rows_arg=0, thd=0x1471e8000db8) at /test/10.7_dbg/sql/sql_class.h:5524
      #6  mysql_create_or_drop_trigger (thd=thd@entry=0x1471e8000db8, tables=<optimized out>, create=create@entry=true) at /test/10.7_dbg/sql/sql_trigger.cc:723
      #7  0x0000564d16ceac44 in mysql_execute_command (thd=thd@entry=0x1471e8000db8, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.7_dbg/sql/sql_parse.cc:5817
      #8  0x0000564d16cd1e0f in mysql_parse (thd=thd@entry=0x1471e8000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14723075b400) at /test/10.7_dbg/sql/sql_parse.cc:8028
      #9  0x0000564d16ce0aab in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x1471e8000db8, packet=packet@entry=0x1471e800b879 "CREATE TRIGGER t AFTER INSERT ON t FOR EACH ROW INSERT INTO t VALUES(0)", packet_length=packet_length@entry=71, blocking=blocking@entry=true) at /test/10.7_dbg/sql/sql_class.h:1360
      #10 0x0000564d16ce3eea in do_command (thd=0x1471e8000db8, blocking=blocking@entry=true) at /test/10.7_dbg/sql/sql_parse.cc:1402
      #11 0x0000564d16e5d902 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x564d1ad9b168, put_in_cache=put_in_cache@entry=true) at /test/10.7_dbg/sql/sql_connect.cc:1418
      #12 0x0000564d16e5df07 in handle_one_connection (arg=arg@entry=0x564d1ad9b168) at /test/10.7_dbg/sql/sql_connect.cc:1312
      #13 0x0000564d172de33e in pfs_spawn_thread (arg=0x564d1acacbb8) at /test/10.7_dbg/storage/perfschema/pfs.cc:2201
      #14 0x000014723becf609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #15 0x000014723babd293 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:
              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.