#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x00007ffff6af2859 in __GI_abort () at abort.c:79 #2 0x00007ffff6af2729 in __assert_fail_base (fmt=0x7ffff6c88588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55555df627a0 "!thd->lex->is_exec_started() || thd->lex->is_query_tables_locked()", file=0x55555df5d2a0 "/home/wx/mysql-8.0.34/sql/item.cc", line=1202, function=) at assert.c:92 #3 0x00007ffff6b03fd6 in __GI___assert_fail (assertion=assertion@entry=0x55555df627a0 "!thd->lex->is_exec_started() || thd->lex->is_query_tables_locked()", file=file@entry=0x55555df5d2a0 "/home/wx/mysql-8.0.34/sql/item.cc", line=line@entry=1202, function=function@entry=0x55555df62740 "bool Item::may_evaluate_const(const THD*) const") at assert.c:101 #4 0x0000555559c41b22 in Item::may_evaluate_const (this=0x613000d575f0, thd=thd@entry=0x6270002bf900) at /home/wx/mysql-8.0.34/sql/item.cc:1203 #5 0x0000555559c80956 in Item_charset_conversion::Item_charset_conversion (this=this@entry=0x613000d59570, thd=, a=, cs_arg=0x555560e6cba0 , cache_if_const=) at /home/wx/mysql-8.0.34/sql/item_strfunc.h:993 #6 0x0000555559c80c91 in Item_func_conv_charset::Item_func_conv_charset (this=0x613000d59570, thd=, a=, cs=, cache_if_const=) at /home/wx/mysql-8.0.34/sql/item_strfunc.h:1083 #7 0x0000555559c5491d in Item::safe_charset_converter (this=0x613000d575f0, thd=0x6270002bf900, tocs=0x555560e6cba0 ) at /home/wx/mysql-8.0.34/sql/item.cc:1282 #8 0x0000555559c54fc1 in agg_item_set_converter (coll=..., fname=fname@entry=0x55555df6d1a0 "if", args=args@entry=0x607000399118, nargs=nargs@entry=2, item_sep=item_sep@entry=1, only_consts=) at /home/wx/mysql-8.0.34/sql/item.cc:2595 #9 0x0000555559c55153 in agg_item_charsets (coll=..., fname=fname@entry=0x55555df6d1a0 "if", args=args@entry=0x607000399118, nargs=nargs@entry=2, flags=flags@entry=11, item_sep=item_sep@entry=1, only_consts=false) at /home/wx/mysql-8.0.34/sql/item.cc:2659 #10 0x0000555559c80d6a in agg_item_charsets_for_string_result (c=..., name=name@entry=0x55555df6d1a0 "if", items=items@entry=0x607000399118, nitems=nitems@entry=2, item_sep=item_sep@entry=1) at /home/wx/mysql-8.0.34/sql/item.h:3859 #11 0x0000555559c622a5 in Item::aggregate_string_properties (this=this@entry=0x612000307870, name=, items=, nitems=nitems@entry=2) at /home/wx/mysql-8.0.34/sql/item.cc:7697 #12 0x0000555559cbd619 in Item_func_if::resolve_type_inner (this=this@entry=0x612000307870, thd=thd@entry=0x6270002bf900) at /home/wx/mysql-8.0.34/sql/item_cmpfunc.cc:3420 #13 0x0000555559cbd73f in Item_func_if::resolve_type (this=0x612000307870, thd=0x6270002bf900) at /home/wx/mysql-8.0.34/sql/item_cmpfunc.cc:3405 #14 0x0000555559d51c80 in Item_func::fix_fields (this=this@entry=0x612000307870, thd=thd@entry=0x6270002bf900) at /home/wx/mysql-8.0.34/sql/item_func.cc:422 #15 0x0000555559c97741 in Item_func_if::fix_fields (this=0x612000307870, thd=0x6270002bf900, ref=0x6150003a9960) at /home/wx/mysql-8.0.34/sql/item_cmpfunc.cc:3376 #16 0x0000555559d5166d in Item_func::fix_func_arg (this=this@entry=0x6150003a98b0, thd=thd@entry=0x6270002bf900, arg=arg@entry=0x6150003a9960) at /home/wx/mysql-8.0.34/sql/item_func.cc:429 #17 0x0000555559d51c48 in Item_func::fix_fields (this=this@entry=0x6150003a98b0, thd=thd@entry=0x6270002bf900) at /home/wx/mysql-8.0.34/sql/item_func.cc:418 #18 0x0000555559c901b7 in Item_func_like::fix_fields (this=0x6150003a98b0, thd=0x6270002bf900, ref=0x6150003a9be0) at /home/wx/mysql-8.0.34/sql/item_cmpfunc.cc:6328 #19 0x0000555559d5166d in Item_func::fix_func_arg (this=this@entry=0x6150003a9b30, thd=thd@entry=0x6270002bf900, arg=arg@entry=0x6150003a9be0) at /home/wx/mysql-8.0.34/sql/item_func.cc:429 #20 0x0000555559d51c48 in Item_func::fix_fields (this=0x6150003a9b30, thd=0x6270002bf900) at /home/wx/mysql-8.0.34/sql/item_func.cc:418 #21 0x0000555559fe9e2e in Key_part_spec::resolve_expression (this=this@entry=0x6080016fba50, thd=thd@entry=0x6270002bf900) at /home/wx/mysql-8.0.34/sql/key_spec.cc:97 #22 0x000055555967fd0b in add_functional_index_to_create_list (thd=thd@entry=0x6270002bf900, key_spec=key_spec@entry=0x6110001065f0, alter_info=alter_info@entry=0x7fffc7065f50, kp=kp@entry=0x6080016fba50, key_part_number=key_part_number@entry=1, create_info=create_info@entry=0x7fffc7065dd0) at /home/wx/mysql-8.0.34/sql/sql_table.cc:7819 #23 0x0000555559685cb5 in mysql_prepare_create_table (thd=thd@entry=0x6270002bf900, error_schema_name=error_schema_name@entry=0x606000b61cb0 "test", error_table_name=error_table_name@entry=0x606000b60b10 "t0", create_info=create_info@entry=0x7fffc7065dd0, alter_info=alter_info@entry=0x7fffc7065f50, file=, is_partitioned=, key_info_buffer=, key_count=, fk_key_info_buffer=, fk_key_count=, existing_fks=, existing_fks_count=, existing_fks_table=, fk_max_generated_name_number=0, select_field_count=, find_parent_keys=) at /home/wx/mysql-8.0.34/sql/sql_table.cc:8052 #24 0x0000555559689828 in create_table_impl (thd=thd@entry=0x6270002bf900, schema=..., db=db@entry=0x606000b61cb0 "test", table_name=table_name@entry=0x606000b60b10 "t0", error_table_name=error_table_name@entry=0x606000b60b10 "t0", path=path@entry=0x7fffc7064600 "/tmp/#sql1de91_8_4", create_info=, alter_info=, internal_tmp_table=, select_field_count=, find_parent_keys=, no_ha_table=, do_not_store_in_dd=, is_trans=, key_info=, key_count=, keys_onoff=, fk_key_info=, fk_key_count=, existing_fk_info=, existing_fk_count=, existing_fk_table=, fk_max_generated_name_number=, table_def=, post_ddl_ht=) at /home/wx/mysql-8.0.34/sql/sql_table.cc:8901 #25 0x000055555968b5cf in mysql_create_table_no_lock (thd=thd@entry=0x6270002bf900, db=, table_name=, create_info=create_info@entry=0x7fffc7065dd0, alter_info=alter_info@entry=0x7fffc7065f50, select_field_count=, find_parent_keys=, is_trans=, post_ddl_ht=) at /home/wx/mysql-8.0.34/sql/sql_table.cc:9216 #26 0x000055555a1e07d6 in create_table_from_items (thd=thd@entry=0x6270002bf900, create_info=, create_table=, alter_info=0x7fffc7065f50, items=..., post_ddl_ht=post_ddl_ht@entry=0x61400015bff0) at /home/wx/mysql-8.0.34/sql/sql_insert.cc:2761 #27 0x000055555a1e0ddb in Query_result_create::create_table_for_query_block (this=0x61400015be70, thd=0x6270002bf900) at /home/wx/mysql-8.0.34/sql/sql_insert.cc:2837 #28 0x000055555a1a71b8 in populate_table (thd=thd@entry=0x6270002bf900, lex=lex@entry=0x61d00066f880) at /home/wx/mysql-8.0.34/sql/sql_cmd_ddl_table.cc:110 #29 0x000055555a1a950f in Sql_cmd_create_table::execute (this=, thd=0x6270002bf900) at /home/wx/mysql-8.0.34/sql/sql_cmd_ddl_table.cc:404 #30 0x00005555594b8caf in mysql_execute_command (thd=thd@entry=0x6270002bf900, first_level=first_level@entry=true) at /home/wx/mysql-8.0.34/sql/sql_parse.cc:3688 #31 0x00005555594c0bfe in dispatch_sql_command (thd=0x6270002bf900, parser_state=parser_state@entry=0x7fffc7068c00) at /home/wx/mysql-8.0.34/sql/sql_parse.cc:5368 #32 0x00005555594c38e2 in dispatch_command (thd=thd@entry=0x6270002bf900, com_data=com_data@entry=0x7fffc706a200, command=) at /home/wx/mysql-8.0.34/sql/sql_parse.cc:2054 #33 0x00005555594c7392 in do_command (thd=thd@entry=0x6270002bf900) at /home/wx/mysql-8.0.34/sql/sql_parse.cc:1439 #34 0x000055555989b7be in handle_connection (arg=arg@entry=0x603000165280) at /home/wx/mysql-8.0.34/sql/conn_handler/connection_handler_per_thread.cc:302 #35 0x000055555cc724e9 in pfs_spawn_thread (arg=0x614000140a60) at /home/wx/mysql-8.0.34/storage/perfschema/pfs.cc:3042 #36 0x00007ffff7568609 in start_thread (arg=) at pthread_create.c:477 #37 0x00007ffff6bef133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95