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

Server crash in Index_statistics::get_avg_frequency upon EITS collection for vector index

    XMLWordPrintable

Details

    Description

      CREATE TABLE t (a INT, v BLOB NOT NULL, VECTOR INDEX (v));
      ANALYZE TABLE t PERSISTENT FOR COLUMNS() INDEXES (v);
       
      # Cleanup
      DROP TABLE t;
      

      bb-11.6-MDEV-32887-vector f20a1f4e94f5fc700959ff6b7945aa8a5fd0c307

      #3  <signal handler called>
      #4  0x000055b8d862d044 in Index_statistics::get_avg_frequency (this=0x0, i=0) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_statistics.h:615
      #5  0x000055b8d8631f2d in Index_stat::store_stat_fields (this=0x7f4818cbc660) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_statistics.cc:1506
      #6  0x000055b8d862e34a in Stat_table::update_stat (this=0x7f4818cbc660) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_statistics.cc:715
      #7  0x000055b8d8622008 in update_statistics_for_table (thd=0x62c0000c0218, table=0x61900009dd98) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_statistics.cc:2980
      #8  0x000055b8d8888a97 in mysql_admin_table (thd=0x62c0000c0218, tables=0x6290000e6370, check_opt=0x62c0000c5a40, operator_name=0x55b8dbd749a0 <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 *)) 0x55b8d8d14b9c <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:1093
      #9  0x000055b8d888d26f in Sql_cmd_analyze_table::execute (this=0x6290000e6b08, thd=0x62c0000c0218) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_admin.cc:1619
      #10 0x000055b8d8379a72 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
      #11 0x000055b8d8386b8a in mysql_parse (thd=0x62c0000c0218, rawbuf=0x6290000e6238 "ANALYZE TABLE t PERSISTENT FOR COLUMNS() INDEXES (v)", length=52, parser_state=0x7f4818cc29f0) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:7873
      #12 0x000055b8d835dbac in dispatch_command (command=COM_QUERY, thd=0x62c0000c0218, packet=0x629000253219 "", packet_length=52, blocking=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:1892
      #13 0x000055b8d835a8c0 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
      #14 0x000055b8d884a421 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
      #15 0x000055b8d8849de2 in handle_one_connection (arg=0x608000003438) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_connect.cc:1350
      #16 0x000055b8d94eb99a in pfs_spawn_thread (arg=0x617000005b98) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/perfschema/pfs.cc:2198
      #17 0x00007f48242a8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #18 0x00007f482432861c 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.