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

Assertion `is_valid_time_slow()' failed in Time::valid_MYSQL_TIME_to_valid_value

    Details

      Description

      CREATE TABLE t1 (f INT);
      INSERT INTO t1 VALUES (1),(2);
      SELECT DISTINCT f FROM t1 ORDER BY 1 && ( '1972-11-06 16:58:58' BETWEEN CONVERT( 0, TIME ) AND '20:31:05' );
       
      # Cleanup
      DROP TABLE t1;
      

      10.4 5a796f1f

      mysqld: /data/src/10.4/sql/sql_type.h:1435: void Time::valid_MYSQL_TIME_to_valid_value(THD*, int*, Time::Options): Assertion `is_valid_time_slow()' failed.
      190310 21:06:48 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007f5510488ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x000055f0eaa00ba8 in Time::valid_MYSQL_TIME_to_valid_value (this=0x7f550a600500, thd=0x7f54f8000b00, warn=0x7f550a60047c, opt=...) at /data/src/10.4/sql/sql_type.h:1435
      #9  0x000055f0ea9ea58a in Time::make_from_item (this=0x7f550a600500, thd=0x7f54f8000b00, warn=0x7f550a60047c, item=0x7f54f8017890, opt=...) at /data/src/10.4/sql/sql_type.cc:595
      #10 0x000055f0ea6cd473 in Time::Time (this=0x7f550a600500, thd=0x7f54f8000b00, item=0x7f54f8017890, opt=...) at /data/src/10.4/sql/sql_type.h:1486
      #11 0x000055f0eaa00d0b in Time::Time (this=0x7f550a600500, thd=0x7f54f8000b00, item=0x7f54f8017890) at /data/src/10.4/sql/sql_type.h:1489
      #12 0x000055f0eaa00cc9 in Time::Time (this=0x7f550a600500, item=0x7f54f8017890) at /data/src/10.4/sql/sql_type.h:1481
      #13 0x000055f0eab6a463 in Item_cache_time::val_str (this=0x7f54f8017890, to=0x7f550a600570) at /data/src/10.4/sql/item.h:6656
      #14 0x000055f0eab479ca in Item::print_value (this=0x7f54f8017890, str=0x7f550a600ad0) at /data/src/10.4/sql/item.cc:451
      #15 0x000055f0eab632a2 in Item_cache::print (this=0x7f54f8017890, str=0x7f550a600ad0, query_type=QT_ORDINARY) at /data/src/10.4/sql/item.cc:9670
      #16 0x000055f0eab47809 in Item::print_parenthesised (this=0x7f54f8017890, str=0x7f550a600ad0, query_type=QT_ORDINARY, parent_prec=BETWEEN_PRECEDENCE) at /data/src/10.4/sql/item.cc:421
      #17 0x000055f0eab7721d in Item_func_between::print (this=0x7f54f8016620, str=0x7f550a600ad0, query_type=QT_ORDINARY) at /data/src/10.4/sql/item_cmpfunc.cc:2304
      #18 0x000055f0eab47809 in Item::print_parenthesised (this=0x7f54f8016620, str=0x7f550a600ad0, query_type=QT_ORDINARY, parent_prec=AND_PRECEDENCE) at /data/src/10.4/sql/item.cc:421
      #19 0x000055f0eab7ffef in Item_cond::print (this=0x7f54f8016780, str=0x7f550a600ad0, query_type=QT_ORDINARY) at /data/src/10.4/sql/item_cmpfunc.cc:5153
      #20 0x000055f0ea86ed20 in change_to_use_tmp_fields (thd=0x7f54f8000b00, ref_pointer_array=..., res_selected_fields=..., res_all_fields=..., elements=1, all_fields=...) at /data/src/10.4/sql/sql_select.cc:24813
      #21 0x000055f0ea834769 in JOIN::make_aggr_tables_info (this=0x7f54f8017238) at /data/src/10.4/sql/sql_select.cc:3274
      #22 0x000055f0ea833043 in JOIN::optimize_stage2 (this=0x7f54f8017238) at /data/src/10.4/sql/sql_select.cc:2902
      #23 0x000055f0ea8308dd in JOIN::optimize_inner (this=0x7f54f8017238) at /data/src/10.4/sql/sql_select.cc:2200
      #24 0x000055f0ea82e378 in JOIN::optimize (this=0x7f54f8017238) at /data/src/10.4/sql/sql_select.cc:1551
      #25 0x000055f0ea839284 in mysql_select (thd=0x7f54f8000b00, tables=0x7f54f8015bc8, wild_num=0, fields=..., conds=0x0, og_num=1, order=0x7f54f80168d0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748609, result=0x7f54f8017210, unit=0x7f54f8004a28, select_lex=0x7f54f8015608) at /data/src/10.4/sql/sql_select.cc:4571
      #26 0x000055f0ea829898 in handle_select (thd=0x7f54f8000b00, lex=0x7f54f8004960, result=0x7f54f8017210, setup_tables_done_option=0) at /data/src/10.4/sql/sql_select.cc:424
      #27 0x000055f0ea7f2c23 in execute_sqlcom_select (thd=0x7f54f8000b00, all_tables=0x7f54f8015bc8) at /data/src/10.4/sql/sql_parse.cc:6651
      #28 0x000055f0ea7e7ede in mysql_execute_command (thd=0x7f54f8000b00) at /data/src/10.4/sql/sql_parse.cc:3888
      #29 0x000055f0ea7f6b63 in mysql_parse (thd=0x7f54f8000b00, rawbuf=0x7f54f80154c8 "SELECT DISTINCT f FROM t1 ORDER BY 1 && ( '1972-11-06 16:58:58' BETWEEN CONVERT( 0, TIME ) AND '20:31:05' )", length=107, parser_state=0x7f550a602180, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:8204
      #30 0x000055f0ea7e21a5 in dispatch_command (command=COM_QUERY, thd=0x7f54f8000b00, packet=0x7f54f800a781 "SELECT DISTINCT f FROM t1 ORDER BY 1 && ( '1972-11-06 16:58:58' BETWEEN CONVERT( 0, TIME ) AND '20:31:05' )", packet_length=107, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1829
      #31 0x000055f0ea7e098b in do_command (thd=0x7f54f8000b00) at /data/src/10.4/sql/sql_parse.cc:1358
      #32 0x000055f0ea95a703 in do_handle_one_connection (connect=0x55f0ecfc4340) at /data/src/10.4/sql/sql_connect.cc:1399
      #33 0x000055f0ea95a474 in handle_one_connection (arg=0x55f0ecfc4340) at /data/src/10.4/sql/sql_connect.cc:1302
      #34 0x000055f0eae50031 in pfs_spawn_thread (arg=0x55f0ed0b69b0) at /data/src/10.4/storage/perfschema/pfs.cc:1862
      #35 0x00007f551215f494 in start_thread (arg=0x7f550a603700) at pthread_create.c:333
      #36 0x00007f551054593f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Couldn't reproduce on 10.3.

        Attachments

          Activity

            People

            • Assignee:
              bar Alexander Barkov
              Reporter:
              elenst Elena Stepanova
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: