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

Server crashes in Field::maybe_null / Field::store_from_statistical_minmax_field

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11, 11.0
    • 10.5, 10.6, 10.11, 11.0
    • Data types
    • None

    Description

      CREATE TABLE t (id INT PRIMARY KEY);
      INSERT INTO t VALUES (0);
      ANALYZE TABLE t PERSISTENT FOR ALL;
      ALTER IGNORE TABLE t CHANGE id id INET6, ALGORITHM=COPY;
      SELECT * FROM t;
       
      # Cleanup
      DROP TABLE t;
      

      10.5 a8b616d1

      #3  <signal handler called>
      #4  0x000055f8b2218743 in Field::maybe_null (this=0x7fc5cc200648) at /data/src/10.5/sql/field.h:1400
      #5  0x000055f8b2ef13bd in Field_inet6::store_inet6_null_with_warn (this=0x7fc5cc200648, inet6=..., err=...) at /data/src/10.5/plugin/type_inet/sql_type_inet.cc:658
      #6  0x000055f8b2ef1f87 in Field_inet6::store_text (this=0x7fc5cc200648, str=0x7fc5cc20e0d5 "0", length=1, cs=0x55f8b3974700 <my_charset_bin>) at /data/src/10.5/plugin/type_inet/sql_type_inet.cc:793
      #7  0x000055f8b24c1894 in Field::store_from_statistical_minmax_field (this=0x7fc5cc200648, stat_field=0x7fc5cc20ea00, str=0x7fc5dd8348c0) at /data/src/10.5/sql/field.cc:2003
      #8  0x000055f8b2263cf4 in Column_stat::get_stat_values (this=0x7fc5dd834d70) at /data/src/10.5/sql/sql_statistics.cc:1135
      #9  0x000055f8b225e392 in read_statistics_for_table (thd=0x7fc5cc000dc8, table=0x7fc5cc043d78, stat_tables=0x7fc5dd834f00) at /data/src/10.5/sql/sql_statistics.cc:2923
      #10 0x000055f8b225f271 in read_statistics_for_tables (thd=0x7fc5cc000dc8, tables=0x7fc5cc015a48) at /data/src/10.5/sql/sql_statistics.cc:3215
      #11 0x000055f8b225ed95 in read_statistics_for_tables_if_needed (thd=0x7fc5cc000dc8, tables=0x7fc5cc015a48) at /data/src/10.5/sql/sql_statistics.cc:3130
      #12 0x000055f8b20cc1cd in open_and_lock_tables (thd=0x7fc5cc000dc8, options=..., tables=0x7fc5cc015a48, derived=true, flags=0, prelocking_strategy=0x7fc5dd837748) at /data/src/10.5/sql/sql_base.cc:5251
      #13 0x000055f8b208042e in open_and_lock_tables (thd=0x7fc5cc000dc8, tables=0x7fc5cc015a48, derived=true, flags=0) at /data/src/10.5/sql/sql_base.h:507
      #14 0x000055f8b217f9c5 in execute_sqlcom_select (thd=0x7fc5cc000dc8, all_tables=0x7fc5cc015a48) at /data/src/10.5/sql/sql_parse.cc:6240
      #15 0x000055f8b2176f47 in mysql_execute_command (thd=0x7fc5cc000dc8) at /data/src/10.5/sql/sql_parse.cc:4008
      #16 0x000055f8b2184ecb in mysql_parse (thd=0x7fc5cc000dc8, rawbuf=0x7fc5cc015390 "SELECT * FROM t", length=15, parser_state=0x7fc5dd838380, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:8091
      #17 0x000055f8b21705b5 in dispatch_command (command=COM_QUERY, thd=0x7fc5cc000dc8, packet=0x7fc5cc00b629 "SELECT * FROM t", packet_length=15, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:1891
      #18 0x000055f8b216ed72 in do_command (thd=0x7fc5cc000dc8) at /data/src/10.5/sql/sql_parse.cc:1375
      #19 0x000055f8b232ce39 in do_handle_one_connection (connect=0x55f8b5b315b8, put_in_cache=true) at /data/src/10.5/sql/sql_connect.cc:1416
      #20 0x000055f8b232cbb5 in handle_one_connection (arg=0x55f8b5af6128) at /data/src/10.5/sql/sql_connect.cc:1318
      #21 0x000055f8b28667e6 in pfs_spawn_thread (arg=0x55f8b5b311f8) at /data/src/10.5/storage/perfschema/pfs.cc:2201
      #22 0x00007fc5e30a7fd4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #23 0x00007fc5e312866c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.