Details
-
Bug
-
Status: Open (View Workflow)
-
Critical
-
Resolution: Unresolved
-
10.11, 11.4, 11.8, 12.3, 13.0, 13.1
-
Can result in hang or crash
Description
Testcase is MTR/CLI Compatible. Present in at least InnoDB & MyISAM.
CREATE TABLE t (c1 INT,c2 VARCHAR(10)) ENGINE=MyISAM; |
INSERT INTO t (c1) VALUES (1); |
INSERT INTO t (c1) VALUES (1); |
((SELECT * FROM t) OFFSET 1 ROW) ORDER BY BINARY - c2=PERCENTILE_DISC(FALSE) WITHIN GROUP(ORDER BY LOCALTIMESTAMP) OVER(PARTITION BY c1) OFFSET 1 ROWS FETCH FIRST ROW ONLY; |
Leads to:
|
CS 13.1.0 da18481158c81ca94689702073c3e04aad85a6a3 (Optimized, Clang 22.1.8-20260622) Build 18/08/2026 |
Core was generated by `/test/MD180826-mariadb-13.1.0-linux-x86_64-opt/bin/mariadbd --no-defaults --loo'.
|
Program terminated with signal SIGSEGV, Segmentation fault.
|
#0 0x000058a598484754 in my_time_fraction_remainder (nr=<optimized out>, decimals=<optimized out>) at /test/13.1_opt/include/my_time.h:260
|
|
|
[Current thread is 1 (LWP 3796548)]
|
(gdb) bt
|
#0 0x000058a598484754 in my_time_fraction_remainder (nr=<optimized out>, decimals=<optimized out>) at /test/13.1_opt/include/my_time.h:260
|
#1 my_datetime_trunc (ltime=<optimized out>, decimals=<optimized out>)at /test/13.1_opt/include/my_time.h:264
|
#2 Datetime::trunc (this=<optimized out>, dec=<optimized out>)at /test/13.1_opt/sql/sql_type.h:2782
|
#3 0x000058a598484754 in Datetime::round (this=0x7f2e701ceb50, thd=0x772d9c000c70, dec=10, mode=<optimized out>, warn=0x7f2e701ceb7c)
|
#4 Datetime::Datetime (this=0x7f2e701ceb50, thd=0x772d9c000c70, warn=0x7f2e701ceb7c, from=0x7f2e701cedd0, fuzzydate=<optimized out>, dec=10) at /test/13.1_opt/sql/sql_type.h:2595
|
#5 Field_datetime::store_time_dec (this=0x772d9c06c080, ltime=0x7f2e701cedd0, dec=<optimized out>) at /test/13.1_opt/sql/field.cc:6107
|
#6 0x000058a5984b43b9 in Item::save_date_in_field (this=0x772d9c019e60, field=0x772d9c06c080, no_conversions=true)at /test/13.1_opt/sql/item.cc:396
|
#7 0x000058a5984c3392 in Item::save_in_field (this=0x772d9c019e60, field=0x772d9c06c080, no_conversions=true)at /test/13.1_opt/sql/item.cc:7514
|
#8 0x000058a5983f2e9e in save_window_function_values (window_functions=@0x772d9c0630b0: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x772d9c063190, last = 0x772d9c063190, elements = 1}, <No data fields>}, tbl=0x772d9c05b060, rowid_buf=0x772d9c00cf60 "\200|\a\234-w")at /test/13.1_opt/sql/sql_window.cc:2807
|
#9 compute_window_func (thd=thd@entry=0x772d9c000c70, window_functions=@0x772d9c0630b0: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x772d9c063190, last = 0x772d9c063190, elements = 1}, <No data fields>}, cursor_managers=@0x7f2e701cefa8: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x772d9c066e40, last = 0x772d9c066e40, elements = 1}, <No data fields>}, tbl=tbl@entry=0x772d9c05b060, filesort_result=filesort_result@entry=0x772d9c013e10)at /test/13.1_opt/sql/sql_window.cc:2966
|
#10 0x000058a5983f321c in Window_func_runner::exec (this=this@entry=0x772d9c0630a8, thd=thd@entry=0x772d9c000c70, tbl=0x772d9c05b060, filesort_result=0x772d9c013e10)at /test/13.1_opt/sql/sql_window.cc:3082
|
#11 0x000058a5983f3339 in Window_funcs_sort::exec (this=this@entry=0x772d9c0630a0, join=join@entry=0x772d9c01c350, keep_filesort_result=true) at /test/13.1_opt/sql/sql_window.cc:3110
|
#12 0x000058a5983f3c85 in Window_funcs_computation::exec (this=0x772d9c063080, join=join@entry=0x772d9c01c350, keep_last_filesort_result=true)at /test/13.1_opt/sql/sql_window.cc:3239
|
#13 0x000058a59828e786 in AGGR_OP::end_send (this=0x772d9c01f960)at /test/13.1_opt/sql/sql_select.cc:33974
|
#14 0x000058a59826f787 in sub_select_postjoin_aggr (join=0x772d9c01c350, join_tab=0x772d9c01eae8, end_of_records=224)at /test/13.1_opt/sql/sql_select.cc:24428
|
#15 0x000058a598273281 in do_select (join=join@entry=0x772d9c01c350, procedure=<optimized out>) at /test/13.1_opt/sql/sql_select.cc:24263
|
#16 0x000058a598272d29 in JOIN::exec_inner (this=this@entry=0x772d9c01c350)at /test/13.1_opt/sql/sql_select.cc:5126
|
#17 0x000058a5982595a7 in JOIN::exec (this=0x772d9c01c350)at /test/13.1_opt/sql/sql_select.cc:4914
|
#18 mysql_select (thd=thd@entry=0x772d9c000c70, tables=<optimized out>, fields=@0x772d9c0180a8: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x772d9c018420, last = 0x772d9c01cc20, elements = 2}, <No data fields>}, conds=<optimized out>, og_num=<optimized out>, order=<optimized out>, group=0x0, having=0x0, proc_param=0x0, select_options=<optimized out>, result=0x772d9c01c260, unit=0x772d9c018c10, select_lex=0x772d9c017df0)at /test/13.1_opt/sql/sql_select.cc:5440
|
#19 0x000058a5981dbf2b in mysql_derived_fill (thd=0x772d9c000c70, lex=0x772d9c005150, derived=0x772d9c01aa10)at /test/13.1_opt/sql/sql_derived.cc:1364
|
#20 0x000058a5981dc49a in mysql_handle_single_derived (lex=0x772d9c005150, derived=derived@entry=0x772d9c01aa10, phases=phases@entry=96)at /test/13.1_opt/sql/sql_derived.cc:235
|
#21 0x000058a59828365b in st_join_table::preread_init (this=this@entry=0x772d9c064930) at /test/13.1_opt/sql/sql_select.cc:17075
|
#22 0x000058a598258be2 in sub_select (join=0x772d9c01baa0, join_tab=0x772d9c064930, end_of_records=<optimized out>)at /test/13.1_opt/sql/sql_select.cc:24697
|
#23 0x000058a598273253 in do_select (join=join@entry=0x772d9c01baa0, procedure=<optimized out>) at /test/13.1_opt/sql/sql_select.cc:24261
|
#24 0x000058a598272d29 in JOIN::exec_inner (this=this@entry=0x772d9c01baa0)at /test/13.1_opt/sql/sql_select.cc:5126
|
#25 0x000058a5982595a7 in JOIN::exec (this=0x772d9c01baa0)at /test/13.1_opt/sql/sql_select.cc:4914
|
#26 mysql_select (thd=thd@entry=0x772d9c000c70, tables=<optimized out>, fields=@0x772d9c01a648: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x772d9c01a9c0, last = 0x772d9c01d370, elements = 2}, <No data fields>}, conds=<optimized out>, og_num=<optimized out>, order=<optimized out>, group=0x0, having=0x0, proc_param=0x0, select_options=<optimized out>, result=0x772d9c01ba70, unit=0x772d9c005230, select_lex=0x772d9c01a390)at /test/13.1_opt/sql/sql_select.cc:5440
|
#27 0x000058a5982591c0 in handle_select (thd=thd@entry=0x772d9c000c70, lex=lex@entry=0x772d9c005150, result=result@entry=0x772d9c01ba70, setup_tables_done_option=setup_tables_done_option@entry=0)at /test/13.1_opt/sql/sql_select.cc:637
|
#28 0x000058a598224c87 in execute_sqlcom_select (thd=thd@entry=0x772d9c000c70, all_tables=0x772d9c01aa10) at /test/13.1_opt/sql/sql_parse.cc:6229
|
#29 0x000058a5982204c7 in mysql_execute_command (thd=thd@entry=0x772d9c000c70, is_called_from_prepared_stmt=false) at /test/13.1_opt/sql/sql_parse.cc:3997
|
#30 0x000058a59821b72d in mysql_parse (thd=thd@entry=0x772d9c000c70, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7f2e701d04e0)at /test/13.1_opt/sql/sql_parse.cc:7968
|
#31 0x000058a598219f05 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x772d9c000c70, packet=packet@entry=0x772d9c008e61 "", packet_length=packet_length@entry=171, blocking=true)at /test/13.1_opt/sql/sql_parse.cc:1903
|
#32 0x000058a59821bbb0 in do_command (thd=thd@entry=0x772d9c000c70, blocking=true) at /test/13.1_opt/sql/sql_parse.cc:1437
|
#33 0x000058a59834779d in do_handle_one_connection (connect=<optimized out>, connect@entry=0x58a5b06f35b0, put_in_cache=true)at /test/13.1_opt/sql/sql_connect.cc:1514
|
#34 0x000058a5983475d2 in handle_one_connection (arg=arg@entry=0x58a5b06f35b0)at /test/13.1_opt/sql/sql_connect.cc:1426
|
#35 0x000058a5986f4b73 in pfs_spawn_thread (arg=0x58a5b0714340)at /test/13.1_opt/storage/perfschema/pfs.cc:2198
|
#36 0x00007f2e7a09cb84 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
|
#37 0x00007f2e7a129d6c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
|
CS 13.1.0 da18481158c81ca94689702073c3e04aad85a6a3 (Debug, Clang 22.1.8-20260622) Build 18/08/2026 |
mariadbd: /test/13.1_dbg/sql/field.h:4029: Field_datetime_with_dec::Field_datetime_with_dec(uchar *, uchar *, uchar, enum utype, const LEX_CSTRING *, decimal_digits_t): Assertion `dec <= 6' failed.
|
|
CS 13.1.0 da18481158c81ca94689702073c3e04aad85a6a3 (Debug, Clang 22.1.8-20260622) Build 18/08/2026 |
Core was generated by `/test/MD180826-mariadb-13.1.0-linux-x86_64-dbg/bin/mariadbd --no-defaults --loo'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
|
|
|
[Current thread is 1 (LWP 3796744)]
|
(gdb) bt
|
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
|
#1 __pthread_kill_internal (signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:78
|
#2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6)at ./nptl/pthread_kill.c:89
|
#3 0x000079a39b04527e in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
|
#4 0x000079a39b0288ff in __GI_abort () at ./stdlib/abort.c:79
|
#5 0x000079a39b02881b in __assert_fail_base (fmt=0x79a39b1d01e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x645b913baf47 "dec <= 6", file=file@entry=0x645b913a2c9f "/test/13.1_dbg/sql/field.h", line=line@entry=4029, function=function@entry=0x645b9141e511 "Field_datetime_with_dec::Field_datetime_with_dec(uchar *, uchar *, uchar, enum utype, const LEX_CSTRING *, decimal_digits_t)") at ./assert/assert.c:96
|
#6 0x000079a39b03b517 in __assert_fail (assertion=0x645b913baf47 "dec <= 6", file=0x645b913a2c9f "/test/13.1_dbg/sql/field.h", line=4029, function=0x645b9141e511 "Field_datetime_with_dec::Field_datetime_with_dec(uchar *, uchar *, uchar, enum utype, const LEX_CSTRING *, decimal_digits_t)")at ./assert/assert.c:105
|
#7 0x0000645b90689ebf in Field_datetime_with_dec::Field_datetime_with_dec (this=0x71a268093200, ptr_arg=0x0, null_ptr_arg=0x645b915d9470 "", null_bit_arg=1 '\001', unireg_check_arg=Field::NONE, field_name_arg=0x71a26801c710, dec_arg=10)at /test/13.1_dbg/sql/field.h:4029
|
#8 0x0000645b90689c43 in Field_datetime_hires::Field_datetime_hires (this=0x71a268093200, ptr_arg=0x0, null_ptr_arg=0x645b915d9470 "", null_bit_arg=1 '\001', unireg_check_arg=Field::NONE, field_name_arg=0x71a26801c710, dec_arg=10)at /test/13.1_dbg/sql/field.h:4062
|
#9 0x0000645b906652be in new_Field_datetime (root=0x71a268092380, ptr=0x0, null_ptr=0x645b915d9470 "", null_bit=1 '\001', unireg_check=Field::NONE, field_name=0x71a26801c710, dec=10) at /test/13.1_dbg/sql/field.h:4176
|
#10 0x0000645b90669293 in Type_handler_datetime2::make_table_field (this=0x645b920f8f78 <type_handler_datetime2>, root=0x71a268092380, name=0x71a26801c710, addr=@0x79a39009ccc0: {m_ptr = 0x0, m_null = {m_ptr = 0x645b915d9470 "", m_offs = 0 '\000'}}, attr=@0x71a26801c6c0: {<Type_std_attributes> = {<Type_numeric_attributes> = {max_length = 17, decimals = 10, unsigned_flag = false}, collation = {collation = 0x645b91f5cb40 <my_charset_latin1>, derivation = DERIVATION_NUMERIC, repertoire = MY_REPERTOIRE_ASCII}}, _vptr$Type_all_attributes = 0x645b91e491e8 <vtable for Item_window_func+16>, static _vtable$ = <optimized out>}, share=0x71a2680924a0) at /test/13.1_dbg/sql/sql_type.cc:3966
|
#11 0x0000645b90668484 in Type_handler::make_and_init_table_field (this=0x645b920f8f78 <type_handler_datetime2>, root=0x71a268092380, name=0x71a26801c710, addr=@0x79a39009ccc0: {m_ptr = 0x0, m_null = {m_ptr = 0x645b915d9470 "", m_offs = 0 '\000'}}, attr=@0x71a26801c6c0: {<Type_std_attributes> = {<Type_numeric_attributes> = {max_length = 17, decimals = 10, unsigned_flag = false}, collation = {collation = 0x645b91f5cb40 <my_charset_latin1>, derivation = DERIVATION_NUMERIC, repertoire = MY_REPERTOIRE_ASCII}}, _vptr$Type_all_attributes = 0x645b91e491e8 <vtable for Item_window_func+16>, static _vtable$ = <optimized out>}, table=0x71a268092080) at /test/13.1_dbg/sql/sql_type.cc:3721
|
#12 0x0000645b90456451 in Item_result_field::create_tmp_field_ex_from_handler (this=0x71a26801c6c0, root=0x71a268092380, table=0x71a268092080, src=0x79a39009cd58, param=0x79a39009cd54, h=0x645b920f8f78 <type_handler_datetime2>)at /test/13.1_dbg/sql/sql_select.cc:21858
|
#13 0x0000645b9023e9a7 in Item_result_field::create_tmp_field_ex (this=0x71a26801c6c0, root=0x71a268092380, table=0x71a268092080, src=0x79a39009cd58, param=0x79a39009cd54) at /test/13.1_dbg/sql/item.h:3702
|
#14 0x0000645b90456613 in create_tmp_field (table=0x71a268092080, item=0x71a26801c6c0, copy_func=0x79a39009cec8, from_field=0x71a268092c00, default_field=0x71a268092b90, group=false, modify_item=true, table_cant_handle_bit_fields=false, make_copy_field=false)at /test/13.1_dbg/sql/sql_select.cc:21944
|
#15 0x0000645b904585d8 in Create_tmp_table::add_fields (this=0x79a39009cf58, thd=0x71a268000d60, table=0x71a268092080, param=0x71a26808cd00, fields=@0x71a26801e6a8: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x71a268020090, last = 0x71a26801d220, elements = 6}, <No data fields>})at /test/13.1_dbg/sql/sql_select.cc:22383
|
#16 0x0000645b90435910 in create_tmp_table (thd=0x71a268000d60, param=0x71a26808cd00, fields=@0x71a26801e6a8: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x71a268020090, last = 0x71a26801d220, elements = 6}, <No data fields>}, group=0x0, distinct=false, save_sum_fields=false, select_options=2164525824, rows_limit=18446744073709551615, table_alias=0x645b91ccec00 <empty_clex_str>, do_not_open=true, keep_row_order=false) at /test/13.1_dbg/sql/sql_select.cc:23060
|
#17 0x0000645b90436bbd in JOIN::create_postjoin_aggr_table (this=0x71a26801e300, tab=0x71a26808bfa8, table_fields=0x71a26801e6a8, table_group=0x0, save_sum_fields=false, distinct=false, keep_row_order=false) at /test/13.1_dbg/sql/sql_select.cc:4409
|
#18 0x0000645b904337c2 in JOIN::make_aggr_tables_info (this=0x71a26801e300)at /test/13.1_dbg/sql/sql_select.cc:3969
|
#19 0x0000645b904244e7 in JOIN::optimize_stage2 (this=0x71a26801e300)at /test/13.1_dbg/sql/sql_select.cc:3577
|
#20 0x0000645b9042222f in JOIN::optimize_inner (this=0x71a26801e300)at /test/13.1_dbg/sql/sql_select.cc:2790
|
#21 0x0000645b9041fe06 in JOIN::optimize (this=0x71a26801e300)at /test/13.1_dbg/sql/sql_select.cc:2017
|
#22 0x0000645b9041863d in mysql_select (thd=0x71a268000d60, tables=0x71a26801d270, fields=@0x71a26801cea8: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x71a26801d220, last = 0x71a26801fbe0, elements = 2}, <No data fields>}, conds=0x0, og_num=1, order=0x71a26801ca10, group=0x0, having=0x0, proc_param=0x0, select_options=2164525824, result=0x71a26801e2d0, unit=0x71a2680052f8, select_lex=0x71a26801cbf0)at /test/13.1_dbg/sql/sql_select.cc:5426
|
#23 0x0000645b9041823d in handle_select (thd=0x71a268000d60, lex=0x71a268005218, result=0x71a26801e2d0, setup_tables_done_option=0)at /test/13.1_dbg/sql/sql_select.cc:637
|
#24 0x0000645b903be056 in execute_sqlcom_select (thd=0x71a268000d60, all_tables=0x71a26801d270) at /test/13.1_dbg/sql/sql_parse.cc:6229
|
#25 0x0000645b903b42bb in mysql_execute_command (thd=0x71a268000d60, is_called_from_prepared_stmt=false) at /test/13.1_dbg/sql/sql_parse.cc:3997
|
#26 0x0000645b903ad048 in mysql_parse (thd=0x71a268000d60, rawbuf=0x71a26801a490 "((SELECT * FROM t) OFFSET 1 ROW) ORDER BY BINARY - c2=PERCENTILE_DISC(FALSE) WITHIN GROUP(ORDER BY LOCALTIMESTAMP) OVER(PARTITION BY c1) OFFSET 1 ROWS FETCH FIRST ROW ONLY", length=171, parser_state=0x79a39009f9c0) at /test/13.1_dbg/sql/sql_parse.cc:7968
|
#27 0x0000645b903aa76e in dispatch_command (command=COM_QUERY, thd=0x71a268000d60, packet=0x71a26800b6c1 "((SELECT * FROM t) OFFSET 1 ROW) ORDER BY BINARY - c2=PERCENTILE_DISC(FALSE) WITHIN GROUP(ORDER BY LOCALTIMESTAMP) OVER(PARTITION BY c1) OFFSET 1 ROWS FETCH FIRST ROW ONLY", packet_length=171, blocking=true)at /test/13.1_dbg/sql/sql_parse.cc:1903
|
#28 0x0000645b903adaca in do_command (thd=0x71a268000d60, blocking=true)at /test/13.1_dbg/sql/sql_parse.cc:1437
|
#29 0x0000645b9058502e in do_handle_one_connection (connect=0x645bc4f43b50, put_in_cache=true) at /test/13.1_dbg/sql/sql_connect.cc:1514
|
#30 0x0000645b90584e11 in handle_one_connection (arg=0x645bc4f29c40)at /test/13.1_dbg/sql/sql_connect.cc:1426
|
#31 0x000079a39b09cb84 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
|
#32 0x000079a39b129d6c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
|
Bug Detection Matrix |
Rel o/d Build Commit UniqueID observed
|
CS 10.11 dbg 180826 8f00e6caca633c783140db86d3a48a96de67cf38 n < m_size|SIGABRT|Bounds_checked_array<Item*>::operator[]|Item::split_sum_func2|Item_func::split_sum_func|JOIN::prepare
|
CS 10.11 opt 180826 8f00e6caca633c783140db86d3a48a96de67cf38 SIGSEGV|my_time_fraction_remainder|my_datetime_trunc|Datetime::trunc|Datetime::round
|
CS 11.4 dbg 180826 1a052f27e374fc9b4cb5b1fd098cf10f0e1381cc dec <= 6|SIGABRT|Field_datetime_with_dec::Field_datetime_with_dec|Field_datetime_hires::Field_datetime_hires|new_Field_datetime|Type_handler_datetime2::make_table_field
|
CS 11.4 opt 180826 1a052f27e374fc9b4cb5b1fd098cf10f0e1381cc SIGSEGV|my_time_fraction_remainder|my_datetime_trunc|Datetime::trunc|Datetime::round
|
CS 11.8 dbg 180826 d26f9ab217a7fcf9d4eccc62c01020ff275ff42e dec <= 6|SIGABRT|Field_datetime_with_dec::Field_datetime_with_dec|Field_datetime_hires::Field_datetime_hires|new_Field_datetime|Type_handler_datetime2::make_table_field
|
CS 11.8 opt 180826 d26f9ab217a7fcf9d4eccc62c01020ff275ff42e SIGSEGV|my_time_fraction_remainder|my_datetime_trunc|Datetime::trunc|Datetime::round
|
CS 12.3 dbg 180826 add63991988734383c5e942de2a19c6c45f511f7 dec <= 6|SIGABRT|Field_datetime_with_dec::Field_datetime_with_dec|Field_datetime_hires::Field_datetime_hires|new_Field_datetime|Type_handler_datetime2::make_table_field
|
CS 12.3 opt 180826 add63991988734383c5e942de2a19c6c45f511f7 SIGSEGV|my_time_fraction_remainder|my_datetime_trunc|Datetime::trunc|Datetime::round
|
CS 13.0 dbg 180826 a848493c6fe031f23606144420c1ca1e467cbd81 dec <= 6|SIGABRT|Field_datetime_with_dec::Field_datetime_with_dec|Field_datetime_hires::Field_datetime_hires|new_Field_datetime|Type_handler_datetime2::make_table_field
|
CS 13.0 opt 180826 a848493c6fe031f23606144420c1ca1e467cbd81 SIGSEGV|my_time_fraction_remainder|my_datetime_trunc|Datetime::trunc|Datetime::round
|
CS 13.1 dbg 180826 da18481158c81ca94689702073c3e04aad85a6a3 dec <= 6|SIGABRT|Field_datetime_with_dec::Field_datetime_with_dec|Field_datetime_hires::Field_datetime_hires|new_Field_datetime|Type_handler_datetime2::make_table_field
|
CS 13.1 opt 180826 da18481158c81ca94689702073c3e04aad85a6a3 SIGSEGV|my_time_fraction_remainder|my_datetime_trunc|Datetime::trunc|Datetime::round
|
ES 10.6 dbg 180826 fcecb2620f25965723d640decede7c018bcb1dcc n < m_size|SIGABRT|Bounds_checked_array<Item*>::operator[]|Item::split_sum_func2|Item_func::split_sum_func|JOIN::prepare
|
ES 10.6 opt 180826 fcecb2620f25965723d640decede7c018bcb1dcc SIGSEGV|my_time_fraction_remainder|my_datetime_trunc|Datetime::trunc|Datetime::round
|
ES 11.4 dbg 180826 3b34189bfe675c18c4ced3ef531d016ea74c76f4 dec <= 6|SIGABRT|Field_datetime_with_dec::Field_datetime_with_dec|Field_datetime_hires::Field_datetime_hires|new_Field_datetime|Type_handler_datetime2::make_table_field
|
ES 11.4 opt 180826 3b34189bfe675c18c4ced3ef531d016ea74c76f4 SIGSEGV|my_time_fraction_remainder|my_datetime_trunc|Datetime::trunc|Datetime::round
|
ES 11.8 dbg 180826 4694e931d10fecf733c34f83ea2146d31b708eb3 dec <= 6|SIGABRT|Field_datetime_with_dec::Field_datetime_with_dec|Field_datetime_hires::Field_datetime_hires|new_Field_datetime|Type_handler_datetime2::make_table_field
|
ES 11.8 opt 180826 4694e931d10fecf733c34f83ea2146d31b708eb3 SIGSEGV|my_time_fraction_remainder|my_datetime_trunc|Datetime::trunc|Datetime::round
|
ES 12.3 dbg 180826 f513f503feacabfb219d4a6f965b5f72b86d4db0 dec <= 6|SIGABRT|Field_datetime_with_dec::Field_datetime_with_dec|Field_datetime_hires::Field_datetime_hires|new_Field_datetime|Type_handler_datetime2::make_table_field
|
ES 12.3 opt 180826 f513f503feacabfb219d4a6f965b5f72b86d4db0 SIGSEGV|my_time_fraction_remainder|my_datetime_trunc|Datetime::trunc|Datetime::round
|
MS 5.5 dbg 070123 bac287c315b1792e7ae33f91add6a60292f9bae8 No bug found
|
MS 5.5 opt 070123 bac287c315b1792e7ae33f91add6a60292f9bae8 No bug found
|
MS 5.6 dbg 070123 dab95781a1244104d6b87020ac2fc4d190ba2946 No bug found
|
MS 5.6 opt 070123 dab95781a1244104d6b87020ac2fc4d190ba2946 No bug found
|
MS 5.7 dbg 070525 f7680e98b6bbe3500399fbad465d08a6b75d7a5c No bug found
|
MS 5.7 opt 070525 f7680e98b6bbe3500399fbad465d08a6b75d7a5c No bug found
|
MS 8.0 dbg 060224 49ef33f7edadef3ae04665e73d1babd40179a4f1 No bug found
|
MS 8.0 opt 060224 49ef33f7edadef3ae04665e73d1babd40179a4f1 No bug found
|
MS 9.1 dbg 211024 61a3a1d8ef15512396b4c2af46e922a19bf2b174 No bug found
|
MS 9.1 opt 211024 61a3a1d8ef15512396b4c2af46e922a19bf2b174 No bug found
|
|
CS 13.1.0 da18481158c81ca94689702073c3e04aad85a6a3 (Optimized, UBASAN, Clang 22.1.8-20260622) Build 18/08/2026 |
/test/13.1_opt_san/sql/sql_type.h:6939:46: runtime error: index 10 out of bounds for type 'uint[7]' (aka 'unsigned int[7]')
|
#0 0x5ff5572d6ecb in Type_handler_datetime::hires_bytes(unsigned int) /test/13.1_opt_san/sql/sql_type.h:6939:46
|
#1 0x5ff5572d6ecb in Field_datetime_hires::pack_length() const /test/13.1_opt_san/sql/field.h:4074:12
|
#2 0x5ff55834655d in Create_tmp_table::add_field(TABLE*, Field*, unsigned int, bool) /test/13.1_opt_san/sql/sql_select.cc:22034:32
|
#3 0x5ff55834b8d7 in Create_tmp_table::add_fields(THD*, TABLE*, TMP_TABLE_PARAM*, List<Item>&) /test/13.1_opt_san/sql/sql_select.cc:22433:7
|
#4 0x5ff5582b1e2f in create_tmp_table(THD*, TMP_TABLE_PARAM*, List<Item>&, st_order*, bool, bool, unsigned long long, unsigned long long, st_mysql_const_lex_string const*, bool, bool) /test/13.1_opt_san/sql/sql_select.cc:23060:13
|
#5 0x5ff5582b6794 in JOIN::create_postjoin_aggr_table(st_join_table*, List<Item>*, st_order*, bool, bool, bool) /test/13.1_opt_san/sql/sql_select.cc:4409:17
|
#6 0x5ff5582a7c22 in JOIN::make_aggr_tables_info() /test/13.1_opt_san/sql/sql_select.cc:3969:9
|
#7 0x5ff55825b6cf in JOIN::optimize_stage2() /test/13.1_opt_san/sql/sql_select.cc:3577:7
|
#8 0x5ff55825236f in JOIN::optimize_inner() /test/13.1_opt_san/sql/sql_select.cc:2790:9
|
#9 0x5ff55824d7ab in JOIN::optimize() /test/13.1_opt_san/sql/sql_select.cc:2017:10
|
#10 0x5ff55822e0c6 in mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) /test/13.1_opt_san/sql/sql_select.cc:5426:19
|
#11 0x5ff55822ca8f in handle_select(THD*, LEX*, select_result*, unsigned long long) /test/13.1_opt_san/sql/sql_select.cc:637:10
|
#12 0x5ff5580e7b43 in execute_sqlcom_select(THD*, TABLE_LIST*) /test/13.1_opt_san/sql/sql_parse.cc:6229:12
|
#13 0x5ff5580cc88c in mysql_execute_command(THD*, bool) /test/13.1_opt_san/sql/sql_parse.cc:3997:12
|
#14 0x5ff5580b0b56 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/13.1_opt_san/sql/sql_parse.cc:7968:18
|
#15 0x5ff5580a646e in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/13.1_opt_san/sql/sql_parse.cc:1903:7
|
#16 0x5ff5580b2a5c in do_command(THD*, bool) /test/13.1_opt_san/sql/sql_parse.cc:1437:17
|
#17 0x5ff5588760bc in do_handle_one_connection(CONNECT*, bool) /test/13.1_opt_san/sql/sql_connect.cc:1514:11
|
#18 0x5ff558875b5d in handle_one_connection /test/13.1_opt_san/sql/sql_connect.cc:1426:5
|
#19 0x5ff559277d25 in pfs_spawn_thread /test/13.1_opt_san/storage/perfschema/pfs.cc:2198:3
|
#20 0x7f0abc548e16 in asan_thread_start(void*) /test/llvm-build/llvm-project/compiler-rt/lib/asan/asan_interceptors.cpp:246:28
|
#21 0x7f0abba9cb83 in start_thread nptl/pthread_create.c:447:8
|
#22 0x7f0abbb29d6b in clone3 misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
|
|
SUMMARY: UndefinedBehaviorSanitizer: out-of-bounds-index /test/13.1_opt_san/sql/sql_type.h:6939:46
|
|
CS 13.1.0 da18481158c81ca94689702073c3e04aad85a6a3 (Optimized, UBASAN, Clang 22.1.8-20260622) Build 18/08/2026 |
==866413==ERROR: AddressSanitizer: global-buffer-overflow on address 0x5ff55b665528 at pc 0x5ff5572d6ef7 bp 0x730a089ca9c0 sp 0x730a089ca9b8
|
READ of size 4 at 0x5ff55b665528 thread T11
|
#0 0x5ff5572d6ef6 in Type_handler_datetime::hires_bytes(unsigned int) /test/13.1_opt_san/sql/sql_type.h:6939:46
|
#1 0x5ff5572d6ef6 in Field_datetime_hires::pack_length() const /test/13.1_opt_san/sql/field.h:4074:12
|
#2 0x5ff55834655d in Create_tmp_table::add_field(TABLE*, Field*, unsigned int, bool) /test/13.1_opt_san/sql/sql_select.cc:22034:32
|
#3 0x5ff55834b8d7 in Create_tmp_table::add_fields(THD*, TABLE*, TMP_TABLE_PARAM*, List<Item>&) /test/13.1_opt_san/sql/sql_select.cc:22433:7
|
#4 0x5ff5582b1e2f in create_tmp_table(THD*, TMP_TABLE_PARAM*, List<Item>&, st_order*, bool, bool, unsigned long long, unsigned long long, st_mysql_const_lex_string const*, bool, bool) /test/13.1_opt_san/sql/sql_select.cc:23060:13
|
#5 0x5ff5582b6794 in JOIN::create_postjoin_aggr_table(st_join_table*, List<Item>*, st_order*, bool, bool, bool) /test/13.1_opt_san/sql/sql_select.cc:4409:17
|
#6 0x5ff5582a7c22 in JOIN::make_aggr_tables_info() /test/13.1_opt_san/sql/sql_select.cc:3969:9
|
#7 0x5ff55825b6cf in JOIN::optimize_stage2() /test/13.1_opt_san/sql/sql_select.cc:3577:7
|
#8 0x5ff55825236f in JOIN::optimize_inner() /test/13.1_opt_san/sql/sql_select.cc:2790:9
|
#9 0x5ff55824d7ab in JOIN::optimize() /test/13.1_opt_san/sql/sql_select.cc:2017:10
|
#10 0x5ff55822e0c6 in mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) /test/13.1_opt_san/sql/sql_select.cc:5426:19
|
#11 0x5ff55822ca8f in handle_select(THD*, LEX*, select_result*, unsigned long long) /test/13.1_opt_san/sql/sql_select.cc:637:10
|
#12 0x5ff5580e7b43 in execute_sqlcom_select(THD*, TABLE_LIST*) /test/13.1_opt_san/sql/sql_parse.cc:6229:12
|
#13 0x5ff5580cc88c in mysql_execute_command(THD*, bool) /test/13.1_opt_san/sql/sql_parse.cc:3997:12
|
#14 0x5ff5580b0b56 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/13.1_opt_san/sql/sql_parse.cc:7968:18
|
#15 0x5ff5580a646e in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/13.1_opt_san/sql/sql_parse.cc:1903:7
|
#16 0x5ff5580b2a5c in do_command(THD*, bool) /test/13.1_opt_san/sql/sql_parse.cc:1437:17
|
#17 0x5ff5588760bc in do_handle_one_connection(CONNECT*, bool) /test/13.1_opt_san/sql/sql_connect.cc:1514:11
|
#18 0x5ff558875b5d in handle_one_connection /test/13.1_opt_san/sql/sql_connect.cc:1426:5
|
#19 0x5ff559277d25 in pfs_spawn_thread /test/13.1_opt_san/storage/perfschema/pfs.cc:2198:3
|
#20 0x7f0abc548e16 in asan_thread_start(void*) /test/llvm-build/llvm-project/compiler-rt/lib/asan/asan_interceptors.cpp:246:28
|
#21 0x7f0abba9cb83 in start_thread nptl/pthread_create.c:447:8
|
#22 0x7f0abbb29d6b in clone3 misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
|
|
0x5ff55b665528 is located 24 bytes before global variable 'Type_handler_time::m_hires_bytes' defined in '/test/13.1_opt_san/sql/sql_type.h:6622' (0x5ff55b665540) of size 28
|
0x5ff55b665528 is located 12 bytes after global variable 'Type_handler_datetime::m_hires_bytes' defined in '/test/13.1_opt_san/sql/sql_type.h:6937' (0x5ff55b665500) of size 28
|
SUMMARY: AddressSanitizer: global-buffer-overflow /test/13.1_opt_san/sql/sql_type.h:6939:46 in Type_handler_datetime::hires_bytes(unsigned int)
|
Shadow bytes around the buggy address:
|
0x5ff55b665280: f9 f9 f9 f9 00 00 00 f9 f9 f9 f9 f9 00 00 00 f9
|
0x5ff55b665300: f9 f9 f9 f9 00 00 00 f9 f9 f9 f9 f9 00 00 00 f9
|
0x5ff55b665380: f9 f9 f9 f9 00 00 00 f9 f9 f9 f9 f9 00 00 00 f9
|
0x5ff55b665400: f9 f9 f9 f9 00 f9 f9 f9 00 f9 f9 f9 00 f9 f9 f9
|
0x5ff55b665480: 00 00 00 04 f9 f9 f9 f9 00 00 00 04 f9 f9 f9 f9
|
=>0x5ff55b665500: 00 00 00 04 f9[f9]f9 f9 00 00 00 04 f9 f9 f9 f9
|
0x5ff55b665580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x5ff55b665600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x5ff55b665680: 04 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 00 00 f9 f9
|
0x5ff55b665700: 00 00 f9 f9 00 00 f9 f9 00 00 f9 f9 00 00 f9 f9
|
0x5ff55b665780: 00 00 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
|
Shadow byte legend (one shadow byte represents 8 application bytes):
|
Addressable: 00
|
Partially addressable: 01 02 03 04 05 06 07
|
Heap left redzone: fa
|
Freed heap region: fd
|
Stack left redzone: f1
|
Stack mid redzone: f2
|
Stack right redzone: f3
|
Stack after return: f5
|
Stack use after scope: f8
|
Global redzone: f9
|
Global init order: f6
|
Poisoned by user: f7
|
Container overflow: fc
|
Array cookie: ac
|
Intra object redzone: bb
|
ASan internal: fe
|
Left alloca redzone: ca
|
Right alloca redzone: cb
|
Thread T11 created by T0 here:
|
#0 0x7f0abc52eae1 in pthread_create /test/llvm-build/llvm-project/compiler-rt/lib/asan/asan_interceptors.cpp:257:3
|
#1 0x5ff559278311 in my_thread_create(unsigned long*, pthread_attr_t const*, void* (*)(void*), void*) /test/13.1_opt_san/storage/perfschema/my_thread.h:38:10
|
#2 0x5ff559278311 in pfs_spawn_thread_v1 /test/13.1_opt_san/storage/perfschema/pfs.cc:2249:15
|
#3 0x5ff55710608f in inline_mysql_thread_create(unsigned int, unsigned long*, pthread_attr_t const*, void* (*)(void*), void*) /test/13.1_opt_san/include/mysql/psi/mysql_thread.h:1139:11
|
#4 0x5ff55710608f in create_thread_to_handle_connection(CONNECT*) /test/13.1_opt_san/sql/mysqld.cc:6523:19
|
#5 0x5ff557107888 in handle_connections_sockets() /test/13.1_opt_san/sql/mysqld.cc:6759:9
|
#6 0x5ff5571057c2 in run_main_loop() /test/13.1_opt_san/sql/mysqld.cc:5993:3
|
#7 0x5ff5570f8741 in mysqld_main(int, char**) /test/13.1_opt_san/sql/mysqld.cc:6419:3
|
#8 0x7f0abba2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
|
#9 0x7f0abba2a28a in __libc_start_main csu/../csu/libc-start.c:360:3
|
#10 0x5ff5570ed9a4 in _start (/test/UBASAN_MD180826-mariadb-13.1.0-linux-x86_64-opt/bin/mariadbd+0x37be9a4)
|
|
|
==866413==ABORTING
|
Setup:
Compiled with a recent version of Clang and LLVM. Ubuntu instructions for Clang/LLVM 18:
|
# Note: It is strongly recommended to uninstall all old Clang & LLVM packages (ref dpkg --list | grep -iE 'clang|llvm' and use apt purge and dpkg --purge to remove the packages), before installing Clang/LLVM 18
|
sudo apt install clang llvm-18 llvm-18-linker-tools llvm-18-runtime llvm-18-tools llvm-18-dev libstdc++-14-dev llvm-dev lld-18
|
Compiled with: "-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C{,XX}_FLAGS='-O1 -march=native -mtune=native'" and:
|
-DWITH_ASAN=ON -DWITH_ASAN_SCOPE=ON -DWITH_UBSAN=ON -DWSREP_LIB_WITH_ASAN=ON
|
Set before execution:
|
export UBSAN_OPTIONS=print_stacktrace=1:report_error_type=1 # And you may also want to supress UBSAN startup issues using 'suppressions=UBSAN.filter' in UBSAN_OPTIONS. For an example of UBSAN.filter, which includes current startup issues see: https://github.com/mariadb-corporation/mariadb-qa/blob/master/UBSAN.filter
|
export ASAN_OPTIONS=quarantine_size_mb=512:atexit=0:detect_invalid_pointer_pairs=3:dump_instruction_bytes=1:abort_on_error=1:allocator_may_return_null=1
|
|
SAN Bug Detection Matrix |
Rel o/d Build Commit UniqueID observed
|
CS 10.11 dbg 190826 8f00e6caca633c783140db86d3a48a96de67cf38 n < m_size|SIGABRT|Bounds_checked_array<Item*>::operator[]|Item::split_sum_func2|Item_func::split_sum_func|JOIN::prepare
|
CS 10.11 opt 190826 8f00e6caca633c783140db86d3a48a96de67cf38 UBSAN|index X out of bounds for type 'uint[7]' (aka 'unsigned int[7]')|sql/sql_type.h|Type_handler_datetime::hires_bytes|Field_datetime_hires::pack_length|Create_tmp_table::add_field|Create_tmp_table::add_fields
|
CS 11.4 dbg 190826 1a052f27e374fc9b4cb5b1fd098cf10f0e1381cc dec <= 6|SIGABRT|Field_datetime_with_dec::Field_datetime_with_dec|Field_datetime_hires::Field_datetime_hires|new_Field_datetime|Type_handler_datetime2::make_table_field
|
CS 11.4 opt 190826 1a052f27e374fc9b4cb5b1fd098cf10f0e1381cc UBSAN|index X out of bounds for type 'uint[7]' (aka 'unsigned int[7]')|sql/sql_type.h|Type_handler_datetime::hires_bytes|Field_datetime_hires::pack_length|Create_tmp_table::add_field|Create_tmp_table::add_fields
|
CS 11.8 dbg 190826 d26f9ab217a7fcf9d4eccc62c01020ff275ff42e dec <= 6|SIGABRT|Field_datetime_with_dec::Field_datetime_with_dec|Field_datetime_hires::Field_datetime_hires|new_Field_datetime|Type_handler_datetime2::make_table_field
|
CS 11.8 opt 190826 d26f9ab217a7fcf9d4eccc62c01020ff275ff42e UBSAN|index X out of bounds for type 'uint[7]' (aka 'unsigned int[7]')|sql/sql_type.h|Type_handler_datetime::hires_bytes|Field_datetime_hires::pack_length|Create_tmp_table::add_field|Create_tmp_table::add_fields
|
CS 12.3 dbg 180826 add63991988734383c5e942de2a19c6c45f511f7 dec <= 6|SIGABRT|Field_datetime_with_dec::Field_datetime_with_dec|Field_datetime_hires::Field_datetime_hires|new_Field_datetime|Type_handler_datetime2::make_table_field
|
CS 12.3 opt 180826 add63991988734383c5e942de2a19c6c45f511f7 UBSAN|index X out of bounds for type 'uint[7]' (aka 'unsigned int[7]')|sql/sql_type.h|Type_handler_datetime::hires_bytes|Field_datetime_hires::pack_length|Create_tmp_table::add_field|Create_tmp_table::add_fields
|
CS 13.0 dbg 180826 a848493c6fe031f23606144420c1ca1e467cbd81 dec <= 6|SIGABRT|Field_datetime_with_dec::Field_datetime_with_dec|Field_datetime_hires::Field_datetime_hires|new_Field_datetime|Type_handler_datetime2::make_table_field
|
CS 13.0 opt 180826 a848493c6fe031f23606144420c1ca1e467cbd81 UBSAN|index X out of bounds for type 'uint[7]' (aka 'unsigned int[7]')|sql/sql_type.h|Type_handler_datetime::hires_bytes|Field_datetime_hires::pack_length|Create_tmp_table::add_field|Create_tmp_table::add_fields
|
CS 13.1 dbg 180826 da18481158c81ca94689702073c3e04aad85a6a3 dec <= 6|SIGABRT|Field_datetime_with_dec::Field_datetime_with_dec|Field_datetime_hires::Field_datetime_hires|new_Field_datetime|Type_handler_datetime2::make_table_field
|
CS 13.1 opt 180826 da18481158c81ca94689702073c3e04aad85a6a3 UBSAN|index X out of bounds for type 'uint[7]' (aka 'unsigned int[7]')|sql/sql_type.h|Type_handler_datetime::hires_bytes|Field_datetime_hires::pack_length|Create_tmp_table::add_field|Create_tmp_table::add_fields
|
ES 10.6 dbg 190826 fcecb2620f25965723d640decede7c018bcb1dcc n < m_size|SIGABRT|Bounds_checked_array<Item*>::operator[]|Item::split_sum_func2|Item_func::split_sum_func|JOIN::prepare
|
ES 10.6 opt 190826 fcecb2620f25965723d640decede7c018bcb1dcc UBSAN|index X out of bounds for type 'uint[7]' (aka 'unsigned int[7]')|sql/sql_type.h|Type_handler_datetime::hires_bytes|Field_datetime_hires::pack_length|Create_tmp_table::add_field|Create_tmp_table::add_fields
|
ES 11.4 dbg 190826 3b34189bfe675c18c4ced3ef531d016ea74c76f4 dec <= 6|SIGABRT|Field_datetime_with_dec::Field_datetime_with_dec|Field_datetime_hires::Field_datetime_hires|new_Field_datetime|Type_handler_datetime2::make_table_field
|
ES 11.4 opt 190826 3b34189bfe675c18c4ced3ef531d016ea74c76f4 UBSAN|index X out of bounds for type 'uint[7]' (aka 'unsigned int[7]')|sql/sql_type.h|Type_handler_datetime::hires_bytes|Field_datetime_hires::pack_length|Create_tmp_table::add_field|Create_tmp_table::add_fields
|
ES 11.8 dbg 190826 4694e931d10fecf733c34f83ea2146d31b708eb3 dec <= 6|SIGABRT|Field_datetime_with_dec::Field_datetime_with_dec|Field_datetime_hires::Field_datetime_hires|new_Field_datetime|Type_handler_datetime2::make_table_field
|
ES 11.8 opt 190826 4694e931d10fecf733c34f83ea2146d31b708eb3 UBSAN|index X out of bounds for type 'uint[7]' (aka 'unsigned int[7]')|sql/sql_type.h|Type_handler_datetime::hires_bytes|Field_datetime_hires::pack_length|Create_tmp_table::add_field|Create_tmp_table::add_fields
|
ES 12.3 dbg 180826 f513f503feacabfb219d4a6f965b5f72b86d4db0 dec <= 6|SIGABRT|Field_datetime_with_dec::Field_datetime_with_dec|Field_datetime_hires::Field_datetime_hires|new_Field_datetime|Type_handler_datetime2::make_table_field
|
ES 12.3 opt 180826 f513f503feacabfb219d4a6f965b5f72b86d4db0 UBSAN|index X out of bounds for type 'uint[7]' (aka 'unsigned int[7]')|sql/sql_type.h|Type_handler_datetime::hires_bytes|Field_datetime_hires::pack_length|Create_tmp_table::add_field|Create_tmp_table::add_fields
|