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

Server crashes in Field_vector::report_wrong_value upon statistic collection

    XMLWordPrintable

Details

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

    Description

      --source include/have_sequence.inc
       
      CREATE TABLE t (v VECTOR(64) NOT NULL);
      INSERT INTO t SELECT VEC_FROMTEXT(CONCAT('[',GROUP_CONCAT(1),']')) FROM seq_1_to_64;
      ANALYZE TABLE t PERSISTENT FOR ALL;
       
      # Cleanup
      DROP TABLE t;
      

      bb-11.6-MDEV-32887-vector 764592a4da2a1b490471732fbefe2ce745ce1f32

      #3  <signal handler called>
      #4  0x0000562ad0cc9cf3 in Field_vector::report_wrong_value (this=0x6190000a2670, val=...) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_type_vector.cc:287
      #5  0x0000562ad0cca562 in Field_vector::store (this=0x6190000a2670, from=0x61d000232afd "", length=255, cs=0x562ad4d6c9e0 <my_charset_bin>) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_type_vector.cc:312
      #6  0x0000562ad09ee673 in Field::store_text (this=0x6190000a2670, to=0x61d000232afd "", length=255, cs=0x562ad4d6c9e0 <my_charset_bin>) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/field.h:962
      #7  0x0000562ad0e4c041 in Field::store_from_statistical_minmax_field (this=0x6190000a2670, stat_field=0x61900009f1b8, str=0x7f760c0ff150, mem=0x608000013628) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/field.cc:2066
      #8  0x0000562ad081f5eb in Column_stat::get_stat_values (this=0x7f760c1007f0, read_stats=0x6190000a23f8, mem_root=0x608000013628, want_histograms=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_statistics.cc:1217
      #9  0x0000562ad08119fc in read_statistics_for_table (thd=0x62c0000c0218, table=0x61900009b598, stat_tables=0x7f760c103730, force_reload=true, want_histograms=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_statistics.cc:3097
      #10 0x0000562ad0813732 in read_statistics_for_tables (thd=0x62c0000c0218, tables=0x6290000e6350, force_reload=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_statistics.cc:3355
      #11 0x0000562ad0a7a2cb in mysql_admin_table (thd=0x62c0000c0218, tables=0x6290000e6350, check_opt=0x62c0000c5a40, operator_name=0x562ad3f74960 <msg_analyze>, lock_type=TL_READ_NO_INSERT, org_open_for_modify=true, no_errors_from_open=false, extra_open_options=0, prepare_func=0x0, operator_func=(int (handler::*)(handler * const, THD *, HA_CHECK_OPT *)) 0x562ad0f060c8 <handler::ha_analyze(THD*, st_ha_check_opt*)>, view_operator_func=0x0, is_cmd_replicated=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_admin.cc:1442
      #12 0x0000562ad0a7ba99 in Sql_cmd_analyze_table::execute (this=0x6290000e6a68, thd=0x62c0000c0218) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_admin.cc:1619
      #13 0x0000562ad0568422 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:5846
      #14 0x0000562ad057553a in mysql_parse (thd=0x62c0000c0218, rawbuf=0x6290000e6238 "ANALYZE TABLE t PERSISTENT FOR ALL", length=34, parser_state=0x7f760c1079f0) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:7873
      #15 0x0000562ad054c55c in dispatch_command (command=COM_QUERY, thd=0x62c0000c0218, packet=0x629000253219 "", packet_length=34, blocking=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:1892
      #16 0x0000562ad0549270 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
      #17 0x0000562ad0a38c4b 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
      #18 0x0000562ad0a3860c in handle_one_connection (arg=0x608000003438) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_connect.cc:1350
      #19 0x0000562ad16de256 in pfs_spawn_thread (arg=0x617000005b98) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/perfschema/pfs.cc:2198
      #20 0x00007f76176a8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #21 0x00007f761772861c 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.