Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.4(EOL)
-
None
Description
CREATE TABLE t1 (a TIMESTAMP(3) DEFAULT 0, b TIMESTAMP); |
|
INSERT INTO t1 (b) VALUES ('2012-12-12 12:12:12'),('1988-08-26 12:12:12'); |
SELECT GREATEST(a,b) AS f FROM t1 ORDER BY 1; |
|
# Cleanup
|
DROP TABLE t1; |
10.4 c0f47a4a |
mysqld: /data/src/10.4/sql/filesort.cc:1084: virtual void Type_handler_timestamp_common::make_sort_key(uchar*, Item*, const SORT_FIELD_ATTR*, Sort_param*) const: Assertion `native.length() == binlen' failed.
|
190221 0:01:30 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f49356d7ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x00005557c7a54b95 in Type_handler_timestamp_common::make_sort_key (this=0x5557c8db34b0 <type_handler_timestamp2>, to=0x7f49140662a0 '\245' <repeats 192 times>, "h4z\025\217\217\217\217"..., item=0x7f4914015ad0, sort_field=0x7f4914019190, param=0x7f49300509d0) at /data/src/10.4/sql/filesort.cc:1084
|
#9 0x00005557c7a54fb7 in make_sortkey (param=0x7f49300509d0, to=0x7f49140662a0 '\245' <repeats 192 times>, "h4z\025\217\217\217\217"..., ref_pos=0x7f491413c9f8 "") at /data/src/10.4/sql/filesort.cc:1184
|
#10 0x00005557c7a53eaa in find_all_keys (thd=0x7f4914000b00, param=0x7f49300509d0, select=0x7f4914018888, fs_info=0x7f4914065f00, buffpek_pointers=0x7f4930050bd0, tempfile=0x7f4930050a60, pq=0x0, found_rows=0x7f49140660e0) at /data/src/10.4/sql/filesort.cc:832
|
#11 0x00005557c7a52198 in filesort (thd=0x7f4914000b00, table=0x7f49140e4c10, filesort=0x7f4914018a58, tracker=0x7f4914019110, join=0x7f4914016c18, first_table_bit=1) at /data/src/10.4/sql/filesort.cc:272
|
#12 0x00005557c77a13d7 in create_sort_index (thd=0x7f4914000b00, join=0x7f4914016c18, tab=0x7f4914017f08, fsort=0x7f4914018a58) at /data/src/10.4/sql/sql_select.cc:23130
|
#13 0x00005557c779bb10 in st_join_table::sort_table (this=0x7f4914017f08) at /data/src/10.4/sql/sql_select.cc:20937
|
#14 0x00005557c779b717 in join_init_read_record (tab=0x7f4914017f08) at /data/src/10.4/sql/sql_select.cc:20874
|
#15 0x00005557c77995a9 in sub_select (join=0x7f4914016c18, join_tab=0x7f4914017f08, end_of_records=false) at /data/src/10.4/sql/sql_select.cc:19955
|
#16 0x00005557c7798b39 in do_select (join=0x7f4914016c18, procedure=0x0) at /data/src/10.4/sql/sql_select.cc:19496
|
#17 0x00005557c776f6c9 in JOIN::exec_inner (this=0x7f4914016c18) at /data/src/10.4/sql/sql_select.cc:4318
|
#18 0x00005557c776e870 in JOIN::exec (this=0x7f4914016c18) at /data/src/10.4/sql/sql_select.cc:4100
|
#19 0x00005557c776ff22 in mysql_select (thd=0x7f4914000b00, tables=0x7f4914015c20, wild_num=0, fields=..., conds=0x0, og_num=1, order=0x7f4914016328, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f4914016bf0, unit=0x7f4914004a10, select_lex=0x7f49140153f8) at /data/src/10.4/sql/sql_select.cc:4532
|
#20 0x00005557c7760956 in handle_select (thd=0x7f4914000b00, lex=0x7f4914004948, result=0x7f4914016bf0, setup_tables_done_option=0) at /data/src/10.4/sql/sql_select.cc:423
|
#21 0x00005557c7729e5d in execute_sqlcom_select (thd=0x7f4914000b00, all_tables=0x7f4914015c20) at /data/src/10.4/sql/sql_parse.cc:6588
|
#22 0x00005557c771f104 in mysql_execute_command (thd=0x7f4914000b00) at /data/src/10.4/sql/sql_parse.cc:3825
|
#23 0x00005557c772ddac in mysql_parse (thd=0x7f4914000b00, rawbuf=0x7f4914015338 "SELECT GREATEST(a,b) AS f FROM t1 ORDER BY 1", length=44, parser_state=0x7f49300521f0, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:8141
|
#24 0x00005557c77194ea in dispatch_command (command=COM_QUERY, thd=0x7f4914000b00, packet=0x7f491400a601 "", packet_length=44, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1820
|
#25 0x00005557c7717d5a in do_command (thd=0x7f4914000b00) at /data/src/10.4/sql/sql_parse.cc:1358
|
#26 0x00005557c788d713 in do_handle_one_connection (connect=0x5557ca9107f0) at /data/src/10.4/sql/sql_connect.cc:1399
|
#27 0x00005557c788d484 in handle_one_connection (arg=0x5557ca9107f0) at /data/src/10.4/sql/sql_connect.cc:1302
|
#28 0x00005557c7d81911 in pfs_spawn_thread (arg=0x5557caa02aa0) at /data/src/10.4/storage/perfschema/pfs.cc:1862
|
#29 0x00007f49373ae494 in start_thread (arg=0x7f4930053700) at pthread_create.c:333
|
#30 0x00007f493579493f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
Reproducible with at least MyISAM and InnoDB.
Not reproducible on 10.3.
No visible effect on a non-debug build.