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

Assertion `!(index)->is_spatial()' failed in BtrBulk::BtrBulk(dict_index_t*, const trx_t*)

    XMLWordPrintable

Details

    Description

      # mysqld options required for replay: --innodb_page_size=4k
      CREATE TABLE t (i INT,g GEOMETRY NOT NULL,SPATIAL KEY(g)) ENGINE=InnoDB;
      SET foreign_key_checks=0,unique_checks=0;
      INSERT INTO t VALUES (0,ST_POINTFROMTEXT ('POINT(0 0)'));
      

      Leads to:

      10.8.0 1e8bcbd0a0bfa07052e9458830672ea215c8664a (Debug)

      mysqld: /test/10.8_dbg/storage/innobase/include/btr0bulk.h:293: BtrBulk::BtrBulk(dict_index_t*, const trx_t*): Assertion `!(index)->is_spatial()' failed.
      

      10.8.0 1e8bcbd0a0bfa07052e9458830672ea215c8664a (Debug)

      Core was generated by `/test/MD091221-mariadb-10.8.0-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 0x152f74900700 (LWP 2382611))]
      (gdb) bt
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #1  0x0000152f774ce859 in __GI_abort () at abort.c:79
      #2  0x0000152f774ce729 in __assert_fail_base (fmt=0x152f77664588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x564b1a030c44 "!(index)->is_spatial()", file=0x564b1a06bbc8 "/test/10.8_dbg/storage/innobase/include/btr0bulk.h", line=293, function=<optimized out>) at assert.c:92
      #3  0x0000152f774dff36 in __GI___assert_fail (assertion=assertion@entry=0x564b1a030c44 "!(index)->is_spatial()", file=file@entry=0x564b1a06bbc8 "/test/10.8_dbg/storage/innobase/include/btr0bulk.h", line=line@entry=293, function=function@entry=0x564b1a06bc00 "BtrBulk::BtrBulk(dict_index_t*, const trx_t*)") at assert.c:101
      #4  0x0000564b1993b8aa in BtrBulk::BtrBulk (trx=0x152f74bba1e0, index=0x152ed80231b8, this=0x152f748fe370) at /test/10.8_dbg/storage/innobase/include/dict0mem.h:1182
      #5  row_merge_bulk_t::write_to_index (this=this@entry=0x152ed806f7f0, index_no=index_no@entry=1, trx=trx@entry=0x152f74bba1e0) at /test/10.8_dbg/storage/innobase/row/row0merge.cc:5162
      #6  0x0000564b1993bac6 in row_merge_bulk_t::write_to_table (this=0x152ed806f7f0, table=<optimized out>, trx=trx@entry=0x152f74bba1e0) at /test/10.8_dbg/storage/innobase/row/row0merge.cc:5216
      #7  0x0000564b1979f377 in trx_mod_table_time_t::write_bulk (trx=0x152f74bba1e0, table=<optimized out>, this=0x152ed80219a0) at /test/10.8_dbg/storage/innobase/include/trx0trx.h:519
      #8  innodb_prepare_commit_versioned (thd=<optimized out>, trx_id=<optimized out>) at /test/10.8_dbg/storage/innobase/handler/ha_innodb.cc:3710
      #9  0x0000564b1941206d in ha_commit_trans (thd=thd@entry=0x152ed8000db8, all=all@entry=false) at /test/10.8_dbg/sql/handler.h:2013
      #10 0x0000564b1928bfb0 in trans_commit_stmt (thd=thd@entry=0x152ed8000db8) at /test/10.8_dbg/sql/transaction.cc:472
      #11 0x0000564b19103aac in mysql_execute_command (thd=thd@entry=0x152ed8000db8, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.8_dbg/sql/sql_parse.cc:6049
      #12 0x0000564b190e9c64 in mysql_parse (thd=thd@entry=0x152ed8000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x152f748ff400) at /test/10.8_dbg/sql/sql_parse.cc:8028
      #13 0x0000564b190f88e9 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x152ed8000db8, packet=packet@entry=0x152ed800b879 "INSERT INTO t VALUES (0,ST_POINTFROMTEXT ('POINT(0 0)'))", packet_length=packet_length@entry=56, blocking=blocking@entry=true) at /test/10.8_dbg/sql/sql_class.h:1360
      #14 0x0000564b190fbd2b in do_command (thd=0x152ed8000db8, blocking=blocking@entry=true) at /test/10.8_dbg/sql/sql_parse.cc:1402
      #15 0x0000564b192751c0 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x564b1c70a578, put_in_cache=put_in_cache@entry=true) at /test/10.8_dbg/sql/sql_connect.cc:1418
      #16 0x0000564b192757c5 in handle_one_connection (arg=arg@entry=0x564b1c70a578) at /test/10.8_dbg/sql/sql_connect.cc:1312
      #17 0x0000564b196f7de6 in pfs_spawn_thread (arg=0x564b1c61e218) at /test/10.8_dbg/storage/perfschema/pfs.cc:2201
      #18 0x0000152f779dc609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #19 0x0000152f775cb293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.7.1 (dbg), 10.8.0 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.2.41 (dbg), 10.2.41 (opt), 10.3.32 (dbg), 10.3.32 (opt), 10.4.22 (dbg), 10.4.22 (opt), 10.5.13 (opt), 10.6.5 (dbg), 10.6.5 (opt), 10.7.1 (opt), 10.8.0 (opt)

      Attachments

        Issue Links

          Activity

            People

              thiru Thirunarayanan Balathandayuthapani
              ramesh Ramesh Sivaraman
              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.