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

Assertion fails in trx_t::check_bulk_buffer upon CREATE.. SELECT with vector key

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • N/A
    • 11.7.1
    • Vector search
    • None

    Description

      --source include/have_innodb.inc
       
      CREATE TABLE t (pk INT PRIMARY KEY, v BLOB NOT NULL, VECTOR(v)) ENGINE=InnoDB SELECT 1 AS pk, x'00000000' AS v;
       
      # Cleanup
      DROP TABLE t;
      

      bb-11.6-MDEV-32887-vector 4b8dada45a24902357dfbeda4f058bfaf732bda3

      mariadbd: /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/innobase/include/trx0trx.h:1176: trx_mod_table_time_t* trx_t::check_bulk_buffer(dict_table_t*): Assertion `table->skip_alter_undo || !check_unique_secondary' failed.
      241012 18:39:35 [ERROR] mysqld got signal 6 ;
       
      #9  0x00007f0648e53e32 in __GI___assert_fail (assertion=0x55941420d890 "table->skip_alter_undo || !check_unique_secondary", file=0x55941420d7f8 "/data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/innobase/include/trx0trx.h", line=1176, function=0x55941420d8c8 "trx_mod_table_time_t* trx_t::check_bulk_buffer(dict_table_t*)") at ./assert/assert.c:101
      #10 0x00005594139486ac in trx_t::check_bulk_buffer (this=0x7f06421efc00, table=0x7f0618241678) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/innobase/include/trx0trx.h:1176
      #11 0x0000559413945fd5 in row_ins_index_entry (index=0x7f0618127c78, entry=0x7f061811c808, thr=0x7f0618125f98) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/innobase/row/row0ins.cc:3389
      #12 0x0000559413946a2b in row_ins_index_entry_step (node=0x7f0618125ce0, thr=0x7f0618125f98) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/innobase/row/row0ins.cc:3569
      #13 0x0000559413946f43 in row_ins (node=0x7f0618125ce0, thr=0x7f0618125f98) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/innobase/row/row0ins.cc:3686
      #14 0x00005594139477b0 in row_ins_step (thr=0x7f0618125f98) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/innobase/row/row0ins.cc:3815
      #15 0x000055941396f523 in row_insert_for_mysql (mysql_rec=0x7f0618123ec8 "\376", prebuilt=0x7f0618125578, ins_mode=ROW_INS_NORMAL) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/innobase/row/row0mysql.cc:1315
      #16 0x000055941374b295 in ha_innobase::write_row (this=0x7f0618124350, record=0x7f0618123ec8 "\376") at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/innobase/handler/ha_innodb.cc:7770
      #17 0x00005594133183c8 in handler::ha_write_row (this=0x7f0618124350, buf=0x7f0618123ec8 "\376") at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/handler.cc:8159
      #18 0x00005594134d0156 in FVectorNode::save (this=0x7f0618c3aa00, graph=0x7f061808ba50) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/vector_mhnsw.cc:958
      #19 0x00005594134d17ef in mhnsw_insert (table=0x7f061821c8e8, keyinfo=0x7f061821cee8) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/vector_mhnsw.cc:1166
      #20 0x0000559412e209ac in TABLE::hlindexes_on_insert (this=0x7f061821c8e8) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_base.cc:9919
      #21 0x0000559413318425 in handler::ha_write_row (this=0x7f0618088910, buf=0x7f06182411f8 "\001") at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/handler.cc:8163
      #22 0x0000559412e7ab03 in write_record (thd=0x7f0618000dc8, table=0x7f061821c8e8, info=0x7f0618019e90, sink=0x0) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_insert.cc:2322
      #23 0x0000559412e808d6 in select_insert::send_data (this=0x7f0618019e40, values=...) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_insert.cc:4313
      #24 0x0000559412f9b3cd in select_result_sink::send_data_with_check (this=0x7f0618019e40, items=..., u=0x7f06180052c0, sent=0) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_class.h:6190
      #25 0x0000559412f44c66 in JOIN::exec_inner (this=0x7f0618019f80) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_select.cc:4897
      #26 0x0000559412f44499 in JOIN::exec (this=0x7f0618019f80) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_select.cc:4809
      #27 0x0000559412f45f54 in mysql_select (thd=0x7f0618000dc8, tables=0x0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2201187781376, result=0x7f0618019e40, unit=0x7f06180052c0, select_lex=0x7f0618018a20) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_select.cc:5342
      #28 0x0000559412f33f15 in handle_select (thd=0x7f0618000dc8, lex=0x7f06180051e0, result=0x7f0618019e40, setup_tables_done_option=0) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_select.cc:624
      #29 0x000055941301e35d in Sql_cmd_create_table_like::execute (this=0x7f0618017eb8, thd=0x7f0618000dc8) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_table.cc:13300
      #30 0x0000559412ed5442 in mysql_execute_command (thd=0x7f0618000dc8, is_called_from_prepared_stmt=false) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:5846
      #31 0x0000559412edb638 in mysql_parse (thd=0x7f0618000dc8, rawbuf=0x7f0618017d80 "CREATE TABLE t (pk INT PRIMARY KEY, v BLOB NOT NULL, VECTOR(v)) ENGINE=InnoDB SELECT 1 AS pk, x'00000000' AS v", length=110, parser_state=0x7f064013b2f0) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:7873
      #32 0x0000559412ec7a94 in dispatch_command (command=COM_QUERY, thd=0x7f0618000dc8, packet=0x7f061800be39 "CREATE TABLE t (pk INT PRIMARY KEY, v BLOB NOT NULL, VECTOR(v)) ENGINE=InnoDB SELECT 1 AS pk, x'00000000' AS v", packet_length=110, blocking=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:1892
      #33 0x0000559412ec63ed in do_command (thd=0x7f0618000dc8, blocking=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:1405
      #34 0x00005594130cf103 in do_handle_one_connection (connect=0x559417ff5e38, put_in_cache=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_connect.cc:1448
      #35 0x00005594130cee78 in handle_one_connection (arg=0x559417f29258) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_connect.cc:1350
      #36 0x00005594136443c0 in pfs_spawn_thread (arg=0x559417ff59a8) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/perfschema/pfs.cc:2198
      #37 0x00007f0648ea8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #38 0x00007f0648f2861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.