Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.4(EOL)
-
None
Description
CREATE TABLE t1 (a TIMESTAMP DEFAULT 0, b TIMESTAMP DEFAULT 0, c TIME DEFAULT 0); |
INSERT INTO t1 VALUES (0,0,0); |
SELECT c IN (GREATEST(a,b)) FROM t1; |
|
# Cleanup
|
DROP TABLE t1; |
10.4 923415ff |
mysqld: /data/src/10.4/sql/sql_type.h:2394: const timeval& Timestamp_or_zero_datetime::tv() const: Assertion `!is_zero_datetime()' failed.
|
190201 18:27:41 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f33c967dee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x000056017d534758 in Timestamp_or_zero_datetime::tv (this=0x7f33bf7b16e0) at /data/src/10.4/sql/sql_type.h:2394
|
#9 0x000056017d53498c in Timestamp_or_zero_datetime_native_null::to_datetime (this=0x7f33bf7b1780, thd=0x7f33a8000b00) at /data/src/10.4/sql/sql_type.h:2462
|
#10 0x000056017d528b0b in Type_handler_timestamp_common::Item_func_min_max_get_date (this=0x56017e9a53b0 <type_handler_timestamp2>, thd=0x7f33a8000b00, func=0x7f33a80159e8, ltime=0x7f33bf7b1920, fuzzydate=...) at /data/src/10.4/sql/sql_type.cc:5425
|
#11 0x000056017d6cdf51 in Item_func_min_max::get_date (this=0x7f33a80159e8, thd=0x7f33a8000b00, res=0x7f33bf7b1920, fuzzydate=...) at /data/src/10.4/sql/item_func.h:1785
|
#12 0x000056017d51db3f in Temporal_with_date::make_from_item (this=0x7f33bf7b1920, thd=0x7f33a8000b00, item=0x7f33a80159e8, fuzzydate=...) at /data/src/10.4/sql/sql_type.cc:822
|
#13 0x000056017d218732 in Temporal_with_date::Temporal_with_date (this=0x7f33bf7b1920, thd=0x7f33a8000b00, item=0x7f33a80159e8, fuzzydate=...) at /data/src/10.4/sql/sql_type.h:1766
|
#14 0x000056017d218894 in Datetime::Datetime (this=0x7f33bf7b1920, thd=0x7f33a8000b00, item=0x7f33a80159e8, fuzzydate=...) at /data/src/10.4/sql/sql_type.h:2009
|
#15 0x000056017d219744 in Item::val_datetime_packed (this=0x7f33a80159e8, thd=0x7f33a8000b00) at /data/src/10.4/sql/item.h:1703
|
#16 0x000056017d69f7ec in Arg_comparator::compare_datetime (this=0x7f33a8015ba8) at /data/src/10.4/sql/item_cmpfunc.cc:730
|
#17 0x000056017d6b561c in Arg_comparator::compare (this=0x7f33a8015ba8) at /data/src/10.4/sql/item_cmpfunc.h:104
|
#18 0x000056017d6a2b19 in Item_func_eq::val_int (this=0x7f33a8015ae0) at /data/src/10.4/sql/item_cmpfunc.cc:1749
|
#19 0x000056017d52b41f in Type_handler::Item_send_long (this=0x56017e9a5320 <type_handler_bool>, item=0x7f33a8015ae0, protocol=0x7f33a80010c8, buf=0x7f33bf7b1af0) at /data/src/10.4/sql/sql_type.cc:6664
|
#20 0x000056017d536afe in Type_handler_long::Item_send (this=0x56017e9a5320 <type_handler_bool>, item=0x7f33a8015ae0, protocol=0x7f33a80010c8, buf=0x7f33bf7b1af0) at /data/src/10.4/sql/sql_type.h:4768
|
#21 0x000056017d218fc8 in Item::send (this=0x7f33a8015ae0, protocol=0x7f33a80010c8, buffer=0x7f33bf7b1af0) at /data/src/10.4/sql/item.h:1032
|
#22 0x000056017d21399c in Protocol::send_result_set_row (this=0x7f33a80010c8, row_items=0x7f33a8015358) at /data/src/10.4/sql/protocol.cc:1004
|
#23 0x000056017d2c0788 in select_send::send_data (this=0x7f33a8016c50, items=...) at /data/src/10.4/sql/sql_class.cc:2982
|
#24 0x000056017d3a6afe in end_send (join=0x7f33a8016c78, join_tab=0x0, end_of_records=false) at /data/src/10.4/sql/sql_select.cc:20574
|
#25 0x000056017d3a2e5b in do_select (join=0x7f33a8016c78, procedure=0x0) at /data/src/10.4/sql/sql_select.cc:18887
|
#26 0x000056017d37bb87 in JOIN::exec_inner (this=0x7f33a8016c78) at /data/src/10.4/sql/sql_select.cc:4094
|
#27 0x000056017d37afc8 in JOIN::exec (this=0x7f33a8016c78) at /data/src/10.4/sql/sql_select.cc:3888
|
#28 0x000056017d37c287 in mysql_select (thd=0x7f33a8000b00, tables=0x7f33a8015da8, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f33a8016c50, unit=0x7f33a80049b8, select_lex=0x7f33a8015228) at /data/src/10.4/sql/sql_select.cc:4293
|
#29 0x000056017d36db93 in handle_select (thd=0x7f33a8000b00, lex=0x7f33a80048f0, result=0x7f33a8016c50, setup_tables_done_option=0) at /data/src/10.4/sql/sql_select.cc:385
|
#30 0x000056017d33770d in execute_sqlcom_select (thd=0x7f33a8000b00, all_tables=0x7f33a8015da8) at /data/src/10.4/sql/sql_parse.cc:6564
|
#31 0x000056017d32ca24 in mysql_execute_command (thd=0x7f33a8000b00) at /data/src/10.4/sql/sql_parse.cc:3801
|
#32 0x000056017d33b658 in mysql_parse (thd=0x7f33a8000b00, rawbuf=0x7f33a8015178 "SELECT c IN (GREATEST(a,b)) FROM t1", length=35, parser_state=0x7f33bf7b31f0, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:8117
|
#33 0x000056017d326eba in dispatch_command (command=COM_QUERY, thd=0x7f33a8000b00, packet=0x7f33a800a451 "", packet_length=35, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1803
|
#34 0x000056017d325812 in do_command (thd=0x7f33a8000b00) at /data/src/10.4/sql/sql_parse.cc:1356
|
#35 0x000056017d494bdd in do_handle_one_connection (connect=0x5601804f38a0) at /data/src/10.4/sql/sql_connect.cc:1398
|
#36 0x000056017d49494e in handle_one_connection (arg=0x5601804f38a0) at /data/src/10.4/sql/sql_connect.cc:1301
|
#37 0x000056017d97d85d in pfs_spawn_thread (arg=0x56018050b6f0) at /data/src/10.4/storage/perfschema/pfs.cc:1862
|
#38 0x00007f33cb354494 in start_thread (arg=0x7f33bf7b4700) at pthread_create.c:333
|
#39 0x00007f33c973a93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
Not reproducible on 10.3.
Non-debug 10.4 build doesn't crash, it returns 0 as a result, I'm not quite certain if it's correct or not.