|
Just for the record, on a build with -DCMAKE_C_FLAGS=-DDBUG_ASSERT_AS_PRINTF -DCMAKE_CXX_FLAGS=-DDBUG_ASSERT_AS_PRINTF -DCMAKE_BUILD_TYPE=RelWithDebInfo the same test case produces the second printed assertion after the first one:
Warning: assertion failed: tables_opened == 1 at /data/src/10.4/sql/sql_table.cc line 10069
|
Attempting backtrace to find out the reason for the assert:
|
stack_bottom = 0x0 thread_stack 0x49000
|
/data/bld/10.4-rel-with-asserts/bin/mysqld(my_print_stacktrace+0x29)[0x5578c38ebbe9]
|
mysys/stacktrace.c:270(my_print_stacktrace)[0x5578c325dc4e]
|
sql/sql_table.cc:10070(mysql_alter_table(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, HA_CREATE_INFO*, TABLE_LIST*, Alter_info*, unsigned int, st_order*, bool))[0x5578c32b5301]
|
sql/sql_alter.cc:496(Sql_cmd_alter_table::execute(THD*))[0x5578c31c7a52]
|
sql/sql_parse.cc:6340(mysql_execute_command(THD*))[0x5578c31d0348]
|
sql/sql_parse.cc:8167(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x5578c31d2c78]
|
sql/sql_parse.cc:1893(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x5578c31d4022]
|
sql/sql_parse.cc:1363(do_command(THD*))[0x5578c32b0794]
|
sql/sql_connect.cc:1398(do_handle_one_connection(CONNECT*))[0x5578c32b08b4]
|
sql/sql_connect.cc:1303(handle_one_connection)[0x5578c38a5f64]
|
nptl/pthread_create.c:456(start_thread)[0x7fda38a164a4]
|
x86_64/clone.S:99(clone)[0x7fda36f5ed0f]
|
Warning: assertion failed: &table_list->next_global == thd->lex->query_tables_last at /data/src/10.4/sql/sql_table.cc line 10070
|
Attempting backtrace to find out the reason for the assert:
|
stack_bottom = 0x0 thread_stack 0x49000
|
mysys/stacktrace.c:270(my_print_stacktrace)[0x5578c38ebbe9]
|
sql/sql_table.cc:10072(mysql_alter_table(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, HA_CREATE_INFO*, TABLE_LIST*, Alter_info*, unsigned int, st_order*, bool))[0x5578c325dc7f]
|
sql/sql_alter.cc:496(Sql_cmd_alter_table::execute(THD*))[0x5578c32b5301]
|
sql/sql_parse.cc:6340(mysql_execute_command(THD*))[0x5578c31c7a52]
|
sql/sql_parse.cc:8167(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x5578c31d0348]
|
sql/sql_parse.cc:1893(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x5578c31d2c78]
|
sql/sql_parse.cc:1363(do_command(THD*))[0x5578c31d4022]
|
sql/sql_connect.cc:1398(do_handle_one_connection(CONNECT*))[0x5578c32b0794]
|
sql/sql_connect.cc:1303(handle_one_connection)[0x5578c32b08b4]
|
perfschema/pfs.cc:1865(pfs_spawn_thread)[0x5578c38a5f64]
|
nptl/pthread_create.c:456(start_thread)[0x7fda38a164a4]
|
x86_64/clone.S:99(clone)[0x7fda36f5ed0f]
|
It's probably just the "garbage in, garbage out" situation, but might be useful for JIRA searching.
|