THD::push_warning_truncated_value_for_field(Sql_state_errno_level::enum_warning_level, const char*, const char*, const TABLE_SHARE*, const char*): Assertion `name' failed.
|
|
#6 0x00007f992ce2bbd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x5646b5ae299c "name", file=file@entry=0x5646b5ae26e8 "/10.4/sql/sql_class.h", line=line@entry=4463, function=function@entry=0x5646b5ae5aa0 <THD::push_warning_truncated_value_for_field(Sql_state_errno_level::enum_warning_level, char const*, char const*, TABLE_SHARE const*, char const*)::__PRETTY_FUNCTION__> "void THD::push_warning_truncated_value_for_field(Sql_state_errno_level::enum_warning_level, const char*, const char*, const TABLE_SHARE*, const char*)") at assert.c:92
|
#7 0x00007f992ce2bc82 in __GI___assert_fail (assertion=0x5646b5ae299c "name", file=0x5646b5ae26e8 "/10.4/sql/sql_class.h", line=4463, function=0x5646b5ae5aa0 <THD::push_warning_truncated_value_for_field(Sql_state_errno_level::enum_warning_level, char const*, char const*, TABLE_SHARE const*, char const*)::__PRETTY_FUNCTION__> "void THD::push_warning_truncated_value_for_field(Sql_state_errno_level::enum_warning_level, const char*, const char*, const TABLE_SHARE*, const char*)") at assert.c:101
|
#8 0x00005646b4fb1e30 in THD::push_warning_truncated_value_for_field (this=0x7f98dc000b00, level=Sql_state_errno_level::WARN_LEVEL_WARN, type_str=0x5646b5c3a8f5 "datetime", val=0x7f9925302a78 "0000-00-00 00:00:00", s=0x7f98dc1c4240, name=0x0) at /10.4/sql/sql_class.h:4463
|
#9 0x00005646b51e3306 in Field::set_datetime_warning (this=0x7f98dc084b78, level=Sql_state_errno_level::WARN_LEVEL_WARN, code=1265, str=0x7f9925302a70, typestr=0x5646b5c3a8f5 "datetime", cuted_increment=1) at /10.4/sql/field.cc:10929
|
#10 0x00005646b51e64e4 in Field::set_datetime_warning (this=0x7f98dc084b78, code=1265, str=0x7f9925302a70, typestr=0x5646b5c3a8f5 "datetime", cuted_increment=1) at /10.4/sql/field.h:1397
|
#11 0x00005646b51cae2f in Field_timestamp::zero_time_stored_return_code_with_warning (this=0x7f98dc084b78) at /10.4/sql/field.cc:5167
|
#12 0x00005646b51caed5 in Field_timestamp::store_native (this=0x7f98dc084b78, value=...) at /10.4/sql/field.cc:5180
|
#13 0x00005646b50b901d in Timestamp_or_zero_datetime_native::save_in_field (this=0x7f98dc1bf3a8, field=0x7f98dc084b78, decimals=0) at /10.4/sql/sql_type.cc:309
|
#14 0x00005646b523055d in Item_cache_timestamp::save_in_field (this=0x7f98dc1bf300, field=0x7f98dc084b78, no_conversions=true) at /10.4/sql/item.cc:9882
|
#15 0x00005646b4db5226 in Item::save_org_in_field (this=0x7f98dc1bf300, field=0x7f98dc084b78, data=0x0) at /10.4/sql/item.h:1025
|
#16 0x00005646b4db55d2 in Item::save_val (this=0x7f98dc1bf300, to=0x7f98dc084b78) at /10.4/sql/item.h:1456
|
#17 0x00005646b4e3e168 in fill_record (thd=0x7f98dc000b00, table=0x7f98dc1c36a8, ptr=0x7f98dc1c4788, values=..., ignore_errors=true, use_value=true) at /10.4/sql/sql_base.cc:8686
|
#18 0x00005646b509e06d in Expression_cache_tmptable::put_value (this=0x7f98dc1bf3c8, value=0x7f98dc1bf300) at /10.4/sql/sql_expression_cache.cc:272
|
#19 0x00005646b5237e65 in Item_cache_wrapper::cache (this=0x7f98dc1bf240) at /10.4/sql/item.cc:8569
|
#20 0x00005646b522d518 in Item_cache_wrapper::get_date (this=0x7f98dc1bf240, thd=0x7f98dc000b00, ltime=0x7f99253030b0, fuzzydate=...) at /10.4/sql/item.cc:8800
|
#21 0x00005646b50baebd in Temporal_with_date::make_from_item (this=0x7f99253030b0, thd=0x7f98dc000b00, item=0x7f98dc1bf240, fuzzydate=...) at /10.4/sql/sql_type.cc:822
|
#22 0x00005646b4db4a1a in Temporal_with_date::Temporal_with_date (this=0x7f99253030b0, thd=0x7f98dc000b00, item=0x7f98dc1bf240, fuzzydate=...) at /10.4/sql/sql_type.h:1766
|
#23 0x00005646b4db4b7e in Datetime::Datetime (this=0x7f99253030b0, thd=0x7f98dc000b00, item=0x7f98dc1bf240, fuzzydate=...) at /10.4/sql/sql_type.h:2009
|
#24 0x00005646b4db5a34 in Item::val_datetime_packed (this=0x7f98dc1bf240, thd=0x7f98dc000b00) at /10.4/sql/item.h:1703
|
#25 0x00005646b523e1be in Arg_comparator::compare_datetime (this=0x7f98dc017f28) at /10.4/sql/item_cmpfunc.cc:730
|
#26 0x00005646b5253fbe in Arg_comparator::compare (this=0x7f98dc017f28) at /10.4/sql/item_cmpfunc.h:104
|
#27 0x00005646b52414cf in Item_func_eq::val_int (this=0x7f98dc017e60) at /10.4/sql/item_cmpfunc.cc:1749
|
#28 0x00005646b4f41328 in evaluate_join_record (join=0x7f98dc018af0, join_tab=0x7f98dc1bbfe0, error=0) at /10.4/sql/sql_select.cc:19485
|
#29 0x00005646b4f40f32 in sub_select (join=0x7f98dc018af0, join_tab=0x7f98dc1bbfe0, end_of_records=false) at /10.4/sql/sql_select.cc:19390
|
#30 0x00005646b4f4046e in do_select (join=0x7f98dc018af0, procedure=0x0) at /10.4/sql/sql_select.cc:18930
|
#31 0x00005646b4f1930d in JOIN::exec_inner (this=0x7f98dc018af0) at /10.4/sql/sql_select.cc:4094
|
#32 0x00005646b4f18750 in JOIN::exec (this=0x7f98dc018af0) at /10.4/sql/sql_select.cc:3888
|
#33 0x00005646b4f19a06 in mysql_select (thd=0x7f98dc000b00, tables=0x7f98dc015e58, wild_num=1, fields=..., conds=0x7f98dc017e60, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2416184064, result=0x7f98dc0189f8, unit=0x7f98dc0049c0, select_lex=0x7f98dc0158d0) at /10.4/sql/sql_select.cc:4293
|
#34 0x00005646b4f0b38b in handle_select (thd=0x7f98dc000b00, lex=0x7f98dc0048f8, result=0x7f98dc0189f8, setup_tables_done_option=0) at /10.4/sql/sql_select.cc:385
|
#35 0x00005646b4ecb106 in mysql_execute_command (thd=0x7f98dc000b00) at /10.4/sql/sql_parse.cc:4272
|
#36 0x00005646b4ed8d7f in mysql_parse (thd=0x7f98dc000b00, rawbuf=0x7f98dc015168 "create table tbl select * from t1 where t1.c1 = (select c2 from t2 where pk = 6)", length=80, parser_state=0x7f9925304090, is_com_multi=false, is_next_command=false) at /10.4/sql/sql_parse.cc:8120
|
#37 0x00005646b4ec4295 in dispatch_command (command=COM_QUERY, thd=0x7f98dc000b00, packet=0x7f98dc00a431 "create table tbl select * from t1 where t1.c1 = (select c2 from t2 where pk = 6)", packet_length=80, is_com_multi=false, is_next_command=false) at /10.4/sql/sql_parse.cc:1806
|
#38 0x00005646b4ec2b99 in do_command (thd=0x7f98dc000b00) at /10.4/sql/sql_parse.cc:1356
|
#39 0x00005646b5031e5e in do_handle_one_connection (connect=0x5646b8682450) at /10.4/sql/sql_connect.cc:1399
|
#40 0x00005646b5031b9c in handle_one_connection (arg=0x5646b8682450) at /10.4/sql/sql_connect.cc:1302
|
#41 0x00005646b5959e7f in pfs_spawn_thread (arg=0x5646b8716ea0) at /10.4/storage/perfschema/pfs.cc:1862
|
#42 0x00007f992dc746ba in start_thread (arg=0x7f9925305700) at pthread_create.c:333
|
#43 0x00007f992cf0541d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
|
|
--error ER_TRUNCATED_WRONG_VALUE
# Cleanup
10.4 2465d3e00b2
mysqld: /data/src/10.4/sql/sql_class.h:4426: void THD::push_warning_truncated_value_for_field(Sql_state_errno_level::enum_warning_level, const char*, const char*, const TABLE_SHARE*, const char*): Assertion `name' failed.
190107 15:42:38 [ERROR] mysqld got signal 6 ;
#7 0x00007f171646aee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#8 0x0000560bc8350e38 in THD::push_warning_truncated_value_for_field (this=0x7f1700000b00, level=Sql_state_errno_level::WARN_LEVEL_WARN, type_str=0x560bc8f9153b "date", val=0x7f17105fb448 "0000-00-00", s=0x7f170006d110, name=0x0) at /data/src/10.4/sql/sql_class.h:4426
#9 0x0000560bc8565562 in Field::set_datetime_warning (this=0x7f170006da58, level=Sql_state_errno_level::WARN_LEVEL_WARN, code=1264, str=0x7f17105fb440, typestr=0x560bc8f9153b "date", cuted_increment=1) at /data/src/10.4/sql/field.cc:10929
#10 0x0000560bc85686d6 in Field::set_datetime_warning (this=0x7f170006da58, code=1264, str=0x7f17105fb440, typestr=0x560bc8f9153b "date", cuted_increment=1) at /data/src/10.4/sql/field.h:1397
#11 0x0000560bc854f1f9 in Field_temporal::set_warnings (this=0x7f170006da58, trunc_level=Sql_state_errno_level::WARN_LEVEL_WARN, str=0x7f17105fb440, was_cut=2, typestr=0x560bc8f9153b "date") at /data/src/10.4/sql/field.cc:5603
#12 0x0000560bc856aaee in Field_temporal::store_invalid_with_warning (this=0x7f170006da58, str=0x7f17105fb440, was_cut=8, typestr=0x560bc8f9153b "date") at /data/src/10.4/sql/field.h:2642
#13 0x0000560bc85530ec in Field_date_common::store_TIME_with_warning (this=0x7f170006da58, dt=0x7f17105fb410, str=0x7f17105fb440, was_cut=8) at /data/src/10.4/sql/field.cc:6343
#14 0x0000560bc855359f in Field_date_common::store_time_dec (this=0x7f170006da58, ltime=0x7f17105fb6b0, dec=0) at /data/src/10.4/sql/field.cc:6386
#15 0x0000560bc859324a in Item::save_date_in_field (this=0x7f17000163c0, field=0x7f170006da58, no_conversions=true) at /data/src/10.4/sql/item.cc:311
#16 0x0000560bc845edda in Type_handler_temporal_with_date::Item_save_in_field (this=0x560bc98812c8 <type_handler_newdate>, item=0x7f17000163c0, field=0x7f170006da58, no_conversions=true) at /data/src/10.4/sql/sql_type.cc:3536
#17 0x0000560bc85a59bd in Item::save_in_field (this=0x7f17000163c0, field=0x7f170006da58, no_conversions=true) at /data/src/10.4/sql/item.cc:6506
#18 0x0000560bc81e564f in Item_result_field::save_in_result_field (this=0x7f17000163c0, no_conversions=true) at /data/src/10.4/sql/item.h:3150
#19 0x0000560bc82ecc2c in copy_funcs (func_ptr=0x7f170006d698, thd=0x7f1700000b00) at /data/src/10.4/sql/sql_select.cc:24375
#20 0x0000560bc82e3c93 in end_write (join=0x7f1700016f50, join_tab=0x7f1700018f28, end_of_records=false) at /data/src/10.4/sql/sql_select.cc:20802
#21 0x0000560bc82f57c4 in AGGR_OP::put_record (this=0x7f1700019828, end_of_records=false) at /data/src/10.4/sql/sql_select.cc:27354
#22 0x0000560bc82fad7d in AGGR_OP::put_record (this=0x7f1700019828) at /data/src/10.4/sql/sql_select.h:1021
#23 0x0000560bc82dfd4f in sub_select_postjoin_aggr (join=0x7f1700016f50, join_tab=0x7f1700018f28, end_of_records=false) at /data/src/10.4/sql/sql_select.cc:19112
#24 0x0000560bc82e0989 in evaluate_join_record (join=0x7f1700016f50, join_tab=0x7f1700018b78, error=0) at /data/src/10.4/sql/sql_select.cc:19610
#25 0x0000560bc82e0269 in sub_select (join=0x7f1700016f50, join_tab=0x7f1700018b78, end_of_records=false) at /data/src/10.4/sql/sql_select.cc:19390
#26 0x0000560bc82df7a3 in do_select (join=0x7f1700016f50, procedure=0x0) at /data/src/10.4/sql/sql_select.cc:18930
#27 0x0000560bc82b8203 in JOIN::exec_inner (this=0x7f1700016f50) at /data/src/10.4/sql/sql_select.cc:4094
#28 0x0000560bc82b7644 in JOIN::exec (this=0x7f1700016f50) at /data/src/10.4/sql/sql_select.cc:3888
#29 0x0000560bc82b8903 in mysql_select (thd=0x7f1700000b00, tables=0x7f1700015c20, wild_num=0, fields=..., conds=0x0, og_num=1, order=0x0, group=0x7f1700016480, having=0x0, proc_param=0x0, select_options=2416184064, result=0x7f1700016e58, unit=0x7f17000049c0, select_lex=0x7f1700015700) at /data/src/10.4/sql/sql_select.cc:4293
#30 0x0000560bc82aa20f in handle_select (thd=0x7f1700000b00, lex=0x7f17000048f8, result=0x7f1700016e58, setup_tables_done_option=0) at /data/src/10.4/sql/sql_select.cc:385
#31 0x0000560bc826bcc1 in mysql_execute_command (thd=0x7f1700000b00) at /data/src/10.4/sql/sql_parse.cc:4244
#32 0x0000560bc8278244 in mysql_parse (thd=0x7f1700000b00, rawbuf=0x7f1700014f98 "CREATE TABLE t2 SELECT 1 AS f FROM t1 GROUP BY FROM_DAYS(d)", length=59, parser_state=0x7f17105fc600, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:8104
#33 0x0000560bc826546e in dispatch_command (command=COM_QUERY, thd=0x7f1700000b00, packet=0x7f170000b421 "CREATE TABLE t2 SELECT 1 AS f FROM t1 GROUP BY FROM_DAYS(d)", packet_length=59, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1851
#34 0x0000560bc8263e92 in do_command (thd=0x7f1700000b00) at /data/src/10.4/sql/sql_parse.cc:1396
#35 0x0000560bc83d00ba in do_handle_one_connection (connect=0x560bcba266b0) at /data/src/10.4/sql/sql_connect.cc:1402
#36 0x0000560bc83cfe3e in handle_one_connection (arg=0x560bcba266b0) at /data/src/10.4/sql/sql_connect.cc:1308
#37 0x0000560bc888f164 in pfs_spawn_thread (arg=0x560bcb96a970) at /data/src/10.4/storage/perfschema/pfs.cc:1862
#38 0x00007f1717f26494 in start_thread (arg=0x7f17105fd700) at pthread_create.c:333
#39 0x00007f171652793f in clone () from /lib/x86_64-linux-gnu/libc.so.6
Reproducible with at least MyISAM and InnoDB.
Not reproducible on 10.3.
Non-release build doesn't crash, but the output is not pretty:
10.4 non-debug 2465d3e00b2
The failure seems to have appeared with this commit:
Author: Alexander Barkov <bar@mariadb.com>
Date: Sun Dec 2 18:59:04 2018 +0400
MDEV-17319 Assertion `ts_type != MYSQL_TIMESTAMP_TIME' failed upon inserting into TIME field