Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.5, 10.6, 10.11, 11.4, 11.7
-
None
Description
--source include/have_innodb.inc
|
|
CREATE TABLE t (a INT, s BIGINT UNSIGNED GENERATED ALWAYS AS ROW START, e BIGINT UNSIGNED GENERATED ALWAYS AS ROW END, PERIOD FOR SYSTEM_TIME (s,e)) WITH SYSTEM VERSIONING ENGINE=InnoDB; |
INSERT INTO t (a) VALUES (1),(2); |
|
SELECT IFNULL(TIMESTAMP(e, '00:00:00'), MAKEDATE(2000, 1)) FROM t; |
|
# Cleanup
|
DROP TABLE t; |
10.5 fdb6db6b47f1825eabffde76c29d9b94545f1ef4 |
mariadbd: /data/bld/10.5-asan/sql/sql_type.cc:1183: Datetime_truncation_not_needed::Datetime_truncation_not_needed(THD*, Item*, date_conv_mode_t): Assertion `!is_valid_datetime() || fraction_remainder(((item->decimals) < (6) ? (item->decimals) : (6))) == 0' failed.
|
241201 20:11:40 [ERROR] mysqld got signal 6 ;
|
|
#9 0x00007f43bb453e32 in __GI___assert_fail (assertion=0x560d6de82cc0 "!is_valid_datetime() || fraction_remainder(((item->decimals) < (6) ? (item->decimals) : (6))) == 0", file=0x560d6de81580 "/data/bld/10.5-asan/sql/sql_type.cc", line=1183, function=0x560d6de82c40 "Datetime_truncation_not_needed::Datetime_truncation_not_needed(THD*, Item*, date_conv_mode_t)") at ./assert/assert.c:101
|
#10 0x0000560d6bff9be4 in Datetime_truncation_not_needed::Datetime_truncation_not_needed (this=0x7f43a54a5460, thd=0x62b00007e218, item=0x62b000085a48, mode=...) at /data/bld/10.5-asan/sql/sql_type.cc:1183
|
#11 0x0000560d6c122493 in Datetime_truncation_not_needed::Datetime_truncation_not_needed (this=0x7f43a54a5460, thd=0x62b00007e218, item=0x62b000085a48, mode=<error reading variable: Cannot access memory at address 0xffffffffffffffe0>) at /data/bld/10.5-asan/sql/sql_type.h:2707
|
#12 0x0000560d6c337e28 in Item_func_ifnull::date_op (this=0x62b000085ec0, thd=0x62b00007e218, ltime=0x7f43a54a5b88, fuzzydate=...) at /data/bld/10.5-asan/sql/item_cmpfunc.cc:2475
|
#13 0x0000560d6c00f222 in Type_handler_temporal_result::Item_func_hybrid_field_type_get_date (this=0x560d701193a0 <type_handler_datetime>, thd=0x62b00007e218, item=0x62b000085ec0, warn=0x7f43a54a5610, ltime=0x7f43a54a5b88, fuzzydate=<error reading variable: Cannot access memory at address 0xffffffffffffffe6>) at /data/bld/10.5-asan/sql/sql_type.cc:5607
|
#14 0x0000560d6c00c961 in Type_handler::Item_func_hybrid_field_type_get_date_with_warn (this=0x560d701193a0 <type_handler_datetime>, thd=0x62b00007e218, item=0x62b000085ec0, ltime=0x7f43a54a5b88, mode=...) at /data/bld/10.5-asan/sql/sql_type.cc:5191
|
#15 0x0000560d6b9c6795 in Item_func_hybrid_field_type::get_date (this=0x62b000085ec0, thd=0x62b00007e218, to=0x7f43a54a5b88, mode=...) at /data/bld/10.5-asan/sql/item_func.h:973
|
#16 0x0000560d6c018f96 in Type_handler::Item_send_datetime (this=0x560d701193a0 <type_handler_datetime>, item=0x62b000085ec0, protocol=0x62b00007e818, buf=0x7f43a54a5b80) at /data/bld/10.5-asan/sql/sql_type.cc:7647
|
#17 0x0000560d6be03d4a in Type_handler_datetime_common::Item_send (this=0x560d701193a0 <type_handler_datetime>, item=0x62b000085ec0, protocol=0x62b00007e818, buf=0x7f43a54a5b80) at /data/bld/10.5-asan/sql/sql_type.h:6553
|
#18 0x0000560d6b73033e in Item::send (this=0x62b000085ec0, protocol=0x62b00007e818, buffer=0x7f43a54a5b80) at /data/bld/10.5-asan/sql/item.h:1083
|
#19 0x0000560d6b72104b in Protocol::send_result_set_row (this=0x62b00007e818, row_items=0x62b000085490) at /data/bld/10.5-asan/sql/protocol.cc:1086
|
#20 0x0000560d6b8d7998 in select_send::send_data (this=0x62b000087128, items=...) at /data/bld/10.5-asan/sql/sql_class.cc:3161
|
#21 0x0000560d6bba4acf in select_result_sink::send_data_with_check (this=0x62b000087128, items=..., u=0x62b0000823d0, sent=0) at /data/bld/10.5-asan/sql/sql_class.h:5580
|
#22 0x0000560d6bb5d131 in end_send (join=0x62b000087158, join_tab=0x62b000089690, end_of_records=false) at /data/bld/10.5-asan/sql/sql_select.cc:22520
|
#23 0x0000560d6bb55514 in evaluate_join_record (join=0x62b000087158, join_tab=0x62b0000892e0, error=0) at /data/bld/10.5-asan/sql/sql_select.cc:21538
|
#24 0x0000560d6bb53de0 in sub_select (join=0x62b000087158, join_tab=0x62b0000892e0, end_of_records=false) at /data/bld/10.5-asan/sql/sql_select.cc:21308
|
#25 0x0000560d6bb51b61 in do_select (join=0x62b000087158, procedure=0x0) at /data/bld/10.5-asan/sql/sql_select.cc:20825
|
#26 0x0000560d6badcc4b in JOIN::exec_inner (this=0x62b000087158) at /data/bld/10.5-asan/sql/sql_select.cc:4661
|
#27 0x0000560d6bada234 in JOIN::exec (this=0x62b000087158) at /data/bld/10.5-asan/sql/sql_select.cc:4441
|
#28 0x0000560d6bade54b in mysql_select (thd=0x62b00007e218, tables=0x62b0000860a8, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x62b000087128, unit=0x62b0000823d0, select_lex=0x62b000085328) at /data/bld/10.5-asan/sql/sql_select.cc:4918
|
#29 0x0000560d6baae742 in handle_select (thd=0x62b00007e218, lex=0x62b000082308, result=0x62b000087128, setup_tables_done_option=0) at /data/bld/10.5-asan/sql/sql_select.cc:449
|
#30 0x0000560d6ba15345 in execute_sqlcom_select (thd=0x62b00007e218, all_tables=0x62b0000860a8) at /data/bld/10.5-asan/sql/sql_parse.cc:6437
|
#31 0x0000560d6ba03787 in mysql_execute_command (thd=0x62b00007e218) at /data/bld/10.5-asan/sql/sql_parse.cc:4029
|
#32 0x0000560d6ba20153 in mysql_parse (thd=0x62b00007e218, rawbuf=0x62b000085238 "SELECT IFNULL(TIMESTAMP(e, '00:00:00'), MAKEDATE(2000, 1)) FROM t", length=65, parser_state=0x7f43a54a7c70, is_com_multi=false, is_next_command=false) at /data/bld/10.5-asan/sql/sql_parse.cc:8237
|
#33 0x0000560d6b9f5439 in dispatch_command (command=COM_QUERY, thd=0x62b00007e218, packet=0x62900026c219 "", packet_length=65, is_com_multi=false, is_next_command=false) at /data/bld/10.5-asan/sql/sql_parse.cc:1891
|
#34 0x0000560d6b9f1dcc in do_command (thd=0x62b00007e218) at /data/bld/10.5-asan/sql/sql_parse.cc:1375
|
#35 0x0000560d6be4baf5 in do_handle_one_connection (connect=0x608000003a38, put_in_cache=true) at /data/bld/10.5-asan/sql/sql_connect.cc:1386
|
#36 0x0000560d6be4b65b in handle_one_connection (arg=0x6080000039b8) at /data/bld/10.5-asan/sql/sql_connect.cc:1298
|
#37 0x0000560d6caaa63a in pfs_spawn_thread (arg=0x61500000e198) at /data/bld/10.5-asan/storage/perfschema/pfs.cc:2201
|
#38 0x00007f43bb4a8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
|
#39 0x00007f43bb52861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
|