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

Assertion failure in Field_vector::store upon INSERT IGNORE with a wrong data

    XMLWordPrintable

Details

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

    Description

      CREATE TABLE t (v VECTOR(2) NOT NULL);
      INSERT IGNORE INTO t VALUES (1);
       
      # Cleanup
      DROP TABLE t;
      

      bb-11.6-MDEV-32887-vector eff6bc39fcb6e1f691fa08b153d9ea44b9f77b54

      mariadbd: /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_type_vector.cc:298: virtual int Field_vector::store(longlong, bool): Assertion `0' failed.
      241016 15:55:27 [ERROR] mysqld got signal 6 ;
       
      #9  0x00007f8f36253e32 in __GI___assert_fail (assertion=0x5613ec0b3bc0 "0", file=0x5613ec0b7020 "/data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_type_vector.cc", line=298, function=0x5613ec0b7140 "virtual int Field_vector::store(longlong, bool)") at ./assert/assert.c:101
      #10 0x00005613ea1ac1e6 in Field_vector::store (this=0x61900009b120, nr=1, unsigned_val=false) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_type_vector.cc:298
      #11 0x00005613ea44d924 in save_int_value_in_field (field=0x61900009b120, nr=1, null_value=false, unsigned_flag=false) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/item.cc:7093
      #12 0x00005613ea44da35 in Item_int::save_in_field (this=0x6290000e6f78, field=0x61900009b120, no_conversions=false) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/item.cc:7099
      #13 0x00005613e98a3880 in fill_record (thd=0x62c0000c0218, table=0x61900009ab98, ptr=0x61900009b0f8, values=..., ignore_errors=false, use_value=false, check_for_computability=false) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_base.cc:9377
      #14 0x00005613e98a3d43 in fill_record_n_invoke_before_triggers (thd=0x62c0000c0218, table=0x61900009ab98, ptr=0x61900009b0f0, values=..., ignore_errors=false, event=TRG_EVENT_INSERT) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_base.cc:9432
      #15 0x00005613e996f167 in mysql_insert (thd=0x62c0000c0218, table_list=0x6290000e6358, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=true, result=0x0) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_insert.cc:1124
      #16 0x00005613e9a3f978 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 0x00005613e9a5753a in mysql_parse (thd=0x62c0000c0218, rawbuf=0x6290000e6238 "INSERT IGNORE INTO t VALUES (1)", length=31, parser_state=0x7f8f2b0679f0) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:7873
      #18 0x00005613e9a2e55c in dispatch_command (command=COM_QUERY, thd=0x62c0000c0218, packet=0x629000253219 "INSERT IGNORE INTO t VALUES (1)", packet_length=31, blocking=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:1892
      #19 0x00005613e9a2b270 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 0x00005613e9f1ac4b in do_handle_one_connection (connect=0x6080000034b8, put_in_cache=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_connect.cc:1448
      #21 0x00005613e9f1a60c in handle_one_connection (arg=0x608000003438) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_connect.cc:1350
      #22 0x00005613eabc03dc 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 0x00007f8f362a8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #24 0x00007f8f3632861c 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:
              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.