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

Assertion failure in ha_blackhole::position upon INSERT into blackhole table with vector index

    XMLWordPrintable

Details

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

    Description

      --source include/have_blackhole.inc
       
      CREATE TABLE t (a INT, v BLOB NOT NULL, VECTOR INDEX (v)) ENGINE=Blackhole;
      INSERT INTO t VALUES (1,x'00000000');
       
      # Cleanup
      DROP TABLE t;
      

      bb-11.6-MDEV-32887-vector f20a1f4e94f5fc700959ff6b7945aa8a5fd0c307

      mariadbd: /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/blackhole/ha_blackhole.cc:159: virtual void ha_blackhole::position(const uchar*): Assertion `0' failed.
      240927 19:34:26 [ERROR] mysqld got signal 6 ;
       
      #9  0x00007fe911a53e32 in __GI___assert_fail (assertion=0x7fe90a77a0e0 "0", file=0x7fe90a779cc0 "/data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/blackhole/ha_blackhole.cc", line=159, function=0x7fe90a77a1e0 "virtual void ha_blackhole::position(const uchar*)") at ./assert/assert.c:101
      #10 0x00007fe90a76fec4 in ha_blackhole::position (this=0x61b0000181b8, record=0x61900009ecc8 "\376\001") at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/blackhole/ha_blackhole.cc:159
      #11 0x000055811741e468 in mhnsw_insert (table=0x61900009e798, keyinfo=0x61900009ef30) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/vector_mhnsw.cc:1117
      #12 0x00005581164b9c55 in TABLE::hlindexes_on_insert (this=0x61900009e798) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_base.cc:9918
      #13 0x000055811700f779 in handler::ha_write_row (this=0x61b0000181b8, buf=0x61900009ecc8 "\376\001") at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/handler.cc:8154
      #14 0x000055811658b5ce in write_record (thd=0x62c0000c0218, table=0x61900009e798, info=0x7fe9064f94e0, sink=0x0) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_insert.cc:2322
      #15 0x0000558116581cfe in mysql_insert (thd=0x62c0000c0218, table_list=0x6290000e6368, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false, result=0x0) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_insert.cc:1179
      #16 0x0000558116651fc8 in mysql_execute_command (thd=0x62c0000c0218, is_called_from_prepared_stmt=false) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:4458
      #17 0x0000558116669b8a in mysql_parse (thd=0x62c0000c0218, rawbuf=0x6290000e6238 "INSERT INTO t VALUES (1,x'00000000')", length=36, parser_state=0x7fe9064fa9f0) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:7873
      #18 0x0000558116640bac in dispatch_command (command=COM_QUERY, thd=0x62c0000c0218, packet=0x629000253219 "INSERT INTO t VALUES (1,x'00000000')", packet_length=36, blocking=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:1892
      #19 0x000055811663d8c0 in do_command (thd=0x62c0000c0218, blocking=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:1405
      #20 0x0000558116b2d421 in do_handle_one_connection (connect=0x6080000035b8, put_in_cache=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_connect.cc:1448
      #21 0x0000558116b2cde2 in handle_one_connection (arg=0x608000003538) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_connect.cc:1350
      #22 0x00005581177ce99a in pfs_spawn_thread (arg=0x617000005b98) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/perfschema/pfs.cc:2198
      #23 0x00007fe911aa8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #24 0x00007fe911b2861c 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:
              1 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.