Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.4(EOL), 10.5, 10.6, 10.11, 11.0(EOL), 11.1(EOL), 11.2(EOL), 11.3(EOL), 11.4
Description
CREATE VIEW v1 AS SELECT 6 ; |
CREATE PROCEDURE sp() SELECT 1 FROM v1 ; |
CREATE TEMPORARY TABLE v1 as SELECT 8 ; |
CALL sp() ;
|
DROP TEMPORARY TABLE v1; |
CALL sp() ;
|
mysqld: /home/alice/am/m4-10.4/src/sql/sql_lex.cc:4149: void st_select_lex::fix_prepare_information(THD*, Item**, Item**): Assertion `active_arena->is_stmt_prepare_or_first_stmt_execute() || active_arena->state == Query_arena::STMT_SP_QUERY_ARGUMENTS' failed.
|
240112 11:59:28 [ERROR] mysqld got signal 6 ;
|
|
|
Server version: 10.4.33-MariaDB-debug-log source revision: 88c46aba753c0094ea16dc707bb76cc5254806c8
|
|
/lib/x86_64-linux-gnu/libc.so.6(+0x33fd6)[0x7f1d1e13afd6]
|
sql/sql_lex.cc:4152(st_select_lex::fix_prepare_information(THD*, Item**, Item**))[0x5646c8b40a8f]
|
sql/sql_select.cc:1458(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6d812]
|
sql/sql_union.cc:662(st_select_lex_unit::prepare_join(THD*, st_select_lex*, select_result*, unsigned long, bool))[0x5646c8e7dfbe]
|
sql/sql_union.cc:1009(st_select_lex_unit::prepare(TABLE_LIST*, select_result*, unsigned long))[0x5646c8e8175d]
|
sql/sql_derived.cc:824(mysql_derived_prepare(THD*, LEX*, TABLE_LIST*))[0x5646c8adb097]
|
sql/sql_derived.cc:200(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int))[0x5646c8ad7468]
|
sql/table.cc:9090(TABLE_LIST::handle_derived(LEX*, unsigned int))[0x5646c8f0df5b]
|
sql/sql_lex.h:4455(LEX::handle_list_of_derived(TABLE_LIST*, unsigned int))[0x5646c8b1faa4]
|
sql/sql_lex.cc:4418(st_select_lex::handle_derived(LEX*, unsigned int))[0x5646c8b42017]
|
sql/sql_select.cc:1243(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6ab5e]
|
sql/sql_select.cc:4809(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x5646c8c91c7b]
|
sql/sql_select.cc:442(handle_select(THD*, LEX*, select_result*, unsigned long))[0x5646c8c62972]
|
sql/sql_parse.cc:6523(execute_sqlcom_select(THD*, TABLE_LIST*))[0x5646c8bc9977]
|
sql/sql_parse.cc:3980(mysql_execute_command(THD*))[0x5646c8bb6f97]
|
sql/sp_head.cc:3761(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x5646c8968d8a]
|
sql/sp_head.cc:3491(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x5646c8967420]
|
sql/sp_head.cc:3667(sp_instr_stmt::execute(THD*, unsigned int*))[0x5646c89684d8]
|
sql/sp_head.cc:1372(sp_head::execute(THD*, bool))[0x5646c89597f7]
|
sql/sp_head.cc:2407(sp_head::execute_procedure(THD*, List<Item>*))[0x5646c895fa36]
|
sql/sql_parse.cc:3066(do_execute_sp(THD*, sp_head*))[0x5646c8bb0423]
|
sql/sql_parse.cc:3308(Sql_cmd_call::execute(THD*))[0x5646c8bb201e]
|
sql/sql_parse.cc:6266(mysql_execute_command(THD*))[0x5646c8bc72c5]
|
sql/sql_parse.cc:8062(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x5646c8bd2ef3]
|
sql/sql_parse.cc:1860(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x5646c8ba909f]
|
sql/sql_parse.cc:1378(do_command(THD*))[0x5646c8ba5bca]
|
sql/sql_connect.cc:1419(do_handle_one_connection(CONNECT*))[0x5646c8fbac46]
|
sql/sql_connect.cc:1324(handle_one_connection)[0x5646c8fba4ea]
|
perfschema/pfs.cc:1871(pfs_spawn_thread)[0x5646c9c59274]
|
nptl/pthread_create.c:478(start_thread)[0x7f1d1e655609]
|
|
Query (0x625000142990): SELECT 1 FROM v1
|
The failure started happening after this commit in 10.4:
commit 85f2e4f8e8c82978bd9cc0af9bfd2b549ea04d65
|
Author: Dmitry Shulga <dmitry.shulga@mariadb.com>
|
Date: Fri Nov 24 16:28:31 2023 +0700
|
|
MDEV-32466: Potential memory leak on executing of create view statement
|
Attachments
Issue Links
- relates to
-
MDEV-32965 Assertion `thd->active_stmt_arena_to_use()-> is_stmt_prepare_or_first_sp_execute() || thd->active_stmt_arena_to_use()-> is_conventional() || thd->active_stmt_arena_to_use()->state == Query_arena::STMT_SP_QUERY_ARGUMENTS' failed
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Affects Version/s | 10.4 [ 22408 ] | |
Affects Version/s | 10.5 [ 23123 ] | |
Affects Version/s | 10.6 [ 24028 ] | |
Affects Version/s | 10.11 [ 27614 ] | |
Affects Version/s | 11.0 [ 28320 ] |
Description |
{noformat} /11.0/sql/sql_lex.cc:4792: void st_select_lex::fix_prepare_information(THD*, Item**, Item**): Assertion `active_arena->is_stmt_prepare_or_first_stmt_execute() || active_arena->state == Query_arena::STMT_SP_QUERY_ARGUMENTS' failed. 240110 16:31:17 [ERROR] mysqld got signal 6 ; Server version: 11.0.5-MariaDB-debug-log source revision: 5be8b13735cee9c224b2c1851d7a017f18c714cc linux/raise.c:51(__GI_raise)[0x7f1a860258eb] stdlib/abort.c:81(__GI_abort)[0x7f1a86010535] intl/loadmsgcat.c:1177(_nl_load_domain)[0x7f1a8601040f] /lib/x86_64-linux-gnu/libc.so.6(+0x301a2)[0x7f1a8601e1a2] sql/sql_lex.cc:4793(st_select_lex::fix_prepare_information(THD*, Item**, Item**))[0x55a8a4ad80ce] sql/sql_select.cc:1655(JOIN::prepare(TABLE_LIST*, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x55a8a4c4919e] sql/sql_union.cc:1100(st_select_lex_unit::prepare_join(THD*, st_select_lex*, select_result*, unsigned long long, bool))[0x55a8a4e9cd53] sql/sql_union.cc:1496(st_select_lex_unit::prepare(TABLE_LIST*, select_result*, unsigned long long))[0x55a8a4ea0818] sql/sql_derived.cc:840(mysql_derived_prepare(THD*, LEX*, TABLE_LIST*))[0x55a8a4a6d6c6] sql/sql_derived.cc:200(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int))[0x55a8a4a69a91] sql/table.cc:9762(TABLE_LIST::handle_derived(LEX*, unsigned int))[0x55a8a4f4bb25] sql/sql_lex.h:4567(LEX::handle_list_of_derived(TABLE_LIST*, unsigned int))[0x55a8a4a67ecc] sql/sql_lex.cc:5059(st_select_lex::handle_derived(LEX*, unsigned int))[0x55a8a4ad9613] sql/sql_select.cc:1431(JOIN::prepare(TABLE_LIST*, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x55a8a4c4631e] sql/sql_select.cc:5213(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*))[0x55a8a4c6e897] sql/sql_select.cc:628(handle_select(THD*, LEX*, select_result*, unsigned long long))[0x55a8a4c3e3fb] sql/sql_parse.cc:6338(execute_sqlcom_select(THD*, TABLE_LIST*))[0x55a8a4b64e70] sql/sql_parse.cc:3963(mysql_execute_command(THD*, bool))[0x55a8a4b533bc] sql/sp_head.cc:3921(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x55a8a48ef085] sql/sp_head.cc:3646(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x55a8a48ed674] sql/sp_head.cc:3827(sp_instr_stmt::execute(THD*, unsigned int*))[0x55a8a48ee80f] sql/sp_head.cc:1463(sp_head::execute(THD*, bool))[0x55a8a48df4b4] sql/sp_head.cc:2479(sp_head::execute_procedure(THD*, List<Item>*))[0x55a8a48e54d3] sql/sql_parse.cc:3040(do_execute_sp(THD*, sp_head*))[0x55a8a4b4c820] sql/sql_parse.cc:3285(Sql_cmd_call::execute(THD*))[0x55a8a4b4e331] sql/sql_parse.cc:6075(mysql_execute_command(THD*, bool))[0x55a8a4b62958] sql/sql_prepare.cc:5273(Prepared_statement::execute(String*, bool))[0x55a8a4c01f03] sql/sql_prepare.cc:4674(Prepared_statement::execute_loop(String*, bool, unsigned char*, unsigned char*))[0x55a8a4bfd1a7] sql/sql_prepare.cc:3588(mysql_stmt_execute_common(THD*, unsigned long, unsigned char*, unsigned char*, unsigned long, bool, bool))[0x55a8a4bf5f90] sql/sql_prepare.cc:3359(mysqld_stmt_execute(THD*, char*, unsigned int))[0x55a8a4bf5166] sql/sql_parse.cc:1821(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool))[0x55a8a4b4539b] sql/sql_parse.cc:1407(do_command(THD*, bool))[0x55a8a4b427c0] sql/sql_connect.cc:1415(do_handle_one_connection(CONNECT*, bool))[0x55a8a5006139] sql/sql_connect.cc:1319(handle_one_connection)[0x55a8a5005a8f] perfschema/pfs.cc:2203(pfs_spawn_thread)[0x55a8a5c933b9] nptl/pthread_create.c:487(start_thread)[0x7f1a864ddfa3] x86_64/clone.S:97(clone)[0x7f1a860e706f] Query (0x62500041c9a8): SELECT test.func_1 ( 2 ) FROM view_2 WHERE test.func_3 ( `col_int_key` ) < `col_int_key` {noformat} |
{code:sql}
CREATE VIEW v1 AS SELECT 6 ; CREATE PROCEDURE sp() SELECT 1 FROM v1 ; CREATE TEMPORARY TABLE v1 as SELECT 8 ; CALL sp() ; DROP TEMPORARY TABLE v1; CALL sp() ; {code} {noformat} mysqld: /home/alice/am/m4-10.4/src/sql/sql_lex.cc:4149: void st_select_lex::fix_prepare_information(THD*, Item**, Item**): Assertion `active_arena->is_stmt_prepare_or_first_stmt_execute() || active_arena->state == Query_arena::STMT_SP_QUERY_ARGUMENTS' failed. 240112 11:59:28 [ERROR] mysqld got signal 6 ; Server version: 10.4.33-MariaDB-debug-log source revision: 88c46aba753c0094ea16dc707bb76cc5254806c8 /lib/x86_64-linux-gnu/libc.so.6(+0x33fd6)[0x7f1d1e13afd6] sql/sql_lex.cc:4152(st_select_lex::fix_prepare_information(THD*, Item**, Item**))[0x5646c8b40a8f] sql/sql_select.cc:1458(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6d812] sql/sql_union.cc:662(st_select_lex_unit::prepare_join(THD*, st_select_lex*, select_result*, unsigned long, bool))[0x5646c8e7dfbe] sql/sql_union.cc:1009(st_select_lex_unit::prepare(TABLE_LIST*, select_result*, unsigned long))[0x5646c8e8175d] sql/sql_derived.cc:824(mysql_derived_prepare(THD*, LEX*, TABLE_LIST*))[0x5646c8adb097] sql/sql_derived.cc:200(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int))[0x5646c8ad7468] sql/table.cc:9090(TABLE_LIST::handle_derived(LEX*, unsigned int))[0x5646c8f0df5b] sql/sql_lex.h:4455(LEX::handle_list_of_derived(TABLE_LIST*, unsigned int))[0x5646c8b1faa4] sql/sql_lex.cc:4418(st_select_lex::handle_derived(LEX*, unsigned int))[0x5646c8b42017] sql/sql_select.cc:1243(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6ab5e] sql/sql_select.cc:4809(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x5646c8c91c7b] sql/sql_select.cc:442(handle_select(THD*, LEX*, select_result*, unsigned long))[0x5646c8c62972] sql/sql_parse.cc:6523(execute_sqlcom_select(THD*, TABLE_LIST*))[0x5646c8bc9977] sql/sql_parse.cc:3980(mysql_execute_command(THD*))[0x5646c8bb6f97] sql/sp_head.cc:3761(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x5646c8968d8a] sql/sp_head.cc:3491(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x5646c8967420] sql/sp_head.cc:3667(sp_instr_stmt::execute(THD*, unsigned int*))[0x5646c89684d8] sql/sp_head.cc:1372(sp_head::execute(THD*, bool))[0x5646c89597f7] sql/sp_head.cc:2407(sp_head::execute_procedure(THD*, List<Item>*))[0x5646c895fa36] sql/sql_parse.cc:3066(do_execute_sp(THD*, sp_head*))[0x5646c8bb0423] sql/sql_parse.cc:3308(Sql_cmd_call::execute(THD*))[0x5646c8bb201e] sql/sql_parse.cc:6266(mysql_execute_command(THD*))[0x5646c8bc72c5] sql/sql_parse.cc:8062(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x5646c8bd2ef3] sql/sql_parse.cc:1860(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x5646c8ba909f] sql/sql_parse.cc:1378(do_command(THD*))[0x5646c8ba5bca] sql/sql_connect.cc:1419(do_handle_one_connection(CONNECT*))[0x5646c8fbac46] sql/sql_connect.cc:1324(handle_one_connection)[0x5646c8fba4ea] perfschema/pfs.cc:1871(pfs_spawn_thread)[0x5646c9c59274] nptl/pthread_create.c:478(start_thread)[0x7f1d1e655609] Query (0x625000142990): SELECT 1 FROM v1 {noformat} |
Description |
{code:sql}
CREATE VIEW v1 AS SELECT 6 ; CREATE PROCEDURE sp() SELECT 1 FROM v1 ; CREATE TEMPORARY TABLE v1 as SELECT 8 ; CALL sp() ; DROP TEMPORARY TABLE v1; CALL sp() ; {code} {noformat} mysqld: /home/alice/am/m4-10.4/src/sql/sql_lex.cc:4149: void st_select_lex::fix_prepare_information(THD*, Item**, Item**): Assertion `active_arena->is_stmt_prepare_or_first_stmt_execute() || active_arena->state == Query_arena::STMT_SP_QUERY_ARGUMENTS' failed. 240112 11:59:28 [ERROR] mysqld got signal 6 ; Server version: 10.4.33-MariaDB-debug-log source revision: 88c46aba753c0094ea16dc707bb76cc5254806c8 /lib/x86_64-linux-gnu/libc.so.6(+0x33fd6)[0x7f1d1e13afd6] sql/sql_lex.cc:4152(st_select_lex::fix_prepare_information(THD*, Item**, Item**))[0x5646c8b40a8f] sql/sql_select.cc:1458(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6d812] sql/sql_union.cc:662(st_select_lex_unit::prepare_join(THD*, st_select_lex*, select_result*, unsigned long, bool))[0x5646c8e7dfbe] sql/sql_union.cc:1009(st_select_lex_unit::prepare(TABLE_LIST*, select_result*, unsigned long))[0x5646c8e8175d] sql/sql_derived.cc:824(mysql_derived_prepare(THD*, LEX*, TABLE_LIST*))[0x5646c8adb097] sql/sql_derived.cc:200(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int))[0x5646c8ad7468] sql/table.cc:9090(TABLE_LIST::handle_derived(LEX*, unsigned int))[0x5646c8f0df5b] sql/sql_lex.h:4455(LEX::handle_list_of_derived(TABLE_LIST*, unsigned int))[0x5646c8b1faa4] sql/sql_lex.cc:4418(st_select_lex::handle_derived(LEX*, unsigned int))[0x5646c8b42017] sql/sql_select.cc:1243(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6ab5e] sql/sql_select.cc:4809(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x5646c8c91c7b] sql/sql_select.cc:442(handle_select(THD*, LEX*, select_result*, unsigned long))[0x5646c8c62972] sql/sql_parse.cc:6523(execute_sqlcom_select(THD*, TABLE_LIST*))[0x5646c8bc9977] sql/sql_parse.cc:3980(mysql_execute_command(THD*))[0x5646c8bb6f97] sql/sp_head.cc:3761(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x5646c8968d8a] sql/sp_head.cc:3491(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x5646c8967420] sql/sp_head.cc:3667(sp_instr_stmt::execute(THD*, unsigned int*))[0x5646c89684d8] sql/sp_head.cc:1372(sp_head::execute(THD*, bool))[0x5646c89597f7] sql/sp_head.cc:2407(sp_head::execute_procedure(THD*, List<Item>*))[0x5646c895fa36] sql/sql_parse.cc:3066(do_execute_sp(THD*, sp_head*))[0x5646c8bb0423] sql/sql_parse.cc:3308(Sql_cmd_call::execute(THD*))[0x5646c8bb201e] sql/sql_parse.cc:6266(mysql_execute_command(THD*))[0x5646c8bc72c5] sql/sql_parse.cc:8062(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x5646c8bd2ef3] sql/sql_parse.cc:1860(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x5646c8ba909f] sql/sql_parse.cc:1378(do_command(THD*))[0x5646c8ba5bca] sql/sql_connect.cc:1419(do_handle_one_connection(CONNECT*))[0x5646c8fbac46] sql/sql_connect.cc:1324(handle_one_connection)[0x5646c8fba4ea] perfschema/pfs.cc:1871(pfs_spawn_thread)[0x5646c9c59274] nptl/pthread_create.c:478(start_thread)[0x7f1d1e655609] Query (0x625000142990): SELECT 1 FROM v1 {noformat} |
{code:sql}
CREATE VIEW v1 AS SELECT 6 ; CREATE PROCEDURE sp() SELECT 1 FROM v1 ; CREATE TEMPORARY TABLE v1 as SELECT 8 ; CALL sp() ; DROP TEMPORARY TABLE v1; CALL sp() ; {code} {noformat} mysqld: /home/alice/am/m4-10.4/src/sql/sql_lex.cc:4149: void st_select_lex::fix_prepare_information(THD*, Item**, Item**): Assertion `active_arena->is_stmt_prepare_or_first_stmt_execute() || active_arena->state == Query_arena::STMT_SP_QUERY_ARGUMENTS' failed. 240112 11:59:28 [ERROR] mysqld got signal 6 ; Server version: 10.4.33-MariaDB-debug-log source revision: 88c46aba753c0094ea16dc707bb76cc5254806c8 /lib/x86_64-linux-gnu/libc.so.6(+0x33fd6)[0x7f1d1e13afd6] sql/sql_lex.cc:4152(st_select_lex::fix_prepare_information(THD*, Item**, Item**))[0x5646c8b40a8f] sql/sql_select.cc:1458(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6d812] sql/sql_union.cc:662(st_select_lex_unit::prepare_join(THD*, st_select_lex*, select_result*, unsigned long, bool))[0x5646c8e7dfbe] sql/sql_union.cc:1009(st_select_lex_unit::prepare(TABLE_LIST*, select_result*, unsigned long))[0x5646c8e8175d] sql/sql_derived.cc:824(mysql_derived_prepare(THD*, LEX*, TABLE_LIST*))[0x5646c8adb097] sql/sql_derived.cc:200(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int))[0x5646c8ad7468] sql/table.cc:9090(TABLE_LIST::handle_derived(LEX*, unsigned int))[0x5646c8f0df5b] sql/sql_lex.h:4455(LEX::handle_list_of_derived(TABLE_LIST*, unsigned int))[0x5646c8b1faa4] sql/sql_lex.cc:4418(st_select_lex::handle_derived(LEX*, unsigned int))[0x5646c8b42017] sql/sql_select.cc:1243(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6ab5e] sql/sql_select.cc:4809(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x5646c8c91c7b] sql/sql_select.cc:442(handle_select(THD*, LEX*, select_result*, unsigned long))[0x5646c8c62972] sql/sql_parse.cc:6523(execute_sqlcom_select(THD*, TABLE_LIST*))[0x5646c8bc9977] sql/sql_parse.cc:3980(mysql_execute_command(THD*))[0x5646c8bb6f97] sql/sp_head.cc:3761(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x5646c8968d8a] sql/sp_head.cc:3491(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x5646c8967420] sql/sp_head.cc:3667(sp_instr_stmt::execute(THD*, unsigned int*))[0x5646c89684d8] sql/sp_head.cc:1372(sp_head::execute(THD*, bool))[0x5646c89597f7] sql/sp_head.cc:2407(sp_head::execute_procedure(THD*, List<Item>*))[0x5646c895fa36] sql/sql_parse.cc:3066(do_execute_sp(THD*, sp_head*))[0x5646c8bb0423] sql/sql_parse.cc:3308(Sql_cmd_call::execute(THD*))[0x5646c8bb201e] sql/sql_parse.cc:6266(mysql_execute_command(THD*))[0x5646c8bc72c5] sql/sql_parse.cc:8062(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x5646c8bd2ef3] sql/sql_parse.cc:1860(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x5646c8ba909f] sql/sql_parse.cc:1378(do_command(THD*))[0x5646c8ba5bca] sql/sql_connect.cc:1419(do_handle_one_connection(CONNECT*))[0x5646c8fbac46] sql/sql_connect.cc:1324(handle_one_connection)[0x5646c8fba4ea] perfschema/pfs.cc:1871(pfs_spawn_thread)[0x5646c9c59274] nptl/pthread_create.c:478(start_thread)[0x7f1d1e655609] Query (0x625000142990): SELECT 1 FROM v1 {noformat} The failure started happening after this commit in 10.4: {noformat} commit 85f2e4f8e8c82978bd9cc0af9bfd2b549ea04d65 Author: Dmitry Shulga <dmitry.shulga@mariadb.com> Date: Fri Nov 24 16:28:31 2023 +0700 {noformat} |
Assignee | Alice Sherepa [ alice ] | Dmitry Shulga [ JIRAUSER47315 ] |
Summary | [draft] Assertion `active_arena->is_stmt_prepare_or_first_stmt_execute() || active_arena->state == Query_arena::STMT_SP_QUERY_ARGUMENTS' failed. in st_select_lex::fix_prepare_information | Assertion `active_arena->is_stmt_prepare_or_first_stmt_execute() || active_arena->state == Query_arena::STMT_SP_QUERY_ARGUMENTS' failed. in st_select_lex::fix_prepare_information |
Labels | regression |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] | |
Fix Version/s | 10.11 [ 27614 ] | |
Fix Version/s | 11.0 [ 28320 ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Priority | Major [ 3 ] | Blocker [ 1 ] |
Description |
{code:sql}
CREATE VIEW v1 AS SELECT 6 ; CREATE PROCEDURE sp() SELECT 1 FROM v1 ; CREATE TEMPORARY TABLE v1 as SELECT 8 ; CALL sp() ; DROP TEMPORARY TABLE v1; CALL sp() ; {code} {noformat} mysqld: /home/alice/am/m4-10.4/src/sql/sql_lex.cc:4149: void st_select_lex::fix_prepare_information(THD*, Item**, Item**): Assertion `active_arena->is_stmt_prepare_or_first_stmt_execute() || active_arena->state == Query_arena::STMT_SP_QUERY_ARGUMENTS' failed. 240112 11:59:28 [ERROR] mysqld got signal 6 ; Server version: 10.4.33-MariaDB-debug-log source revision: 88c46aba753c0094ea16dc707bb76cc5254806c8 /lib/x86_64-linux-gnu/libc.so.6(+0x33fd6)[0x7f1d1e13afd6] sql/sql_lex.cc:4152(st_select_lex::fix_prepare_information(THD*, Item**, Item**))[0x5646c8b40a8f] sql/sql_select.cc:1458(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6d812] sql/sql_union.cc:662(st_select_lex_unit::prepare_join(THD*, st_select_lex*, select_result*, unsigned long, bool))[0x5646c8e7dfbe] sql/sql_union.cc:1009(st_select_lex_unit::prepare(TABLE_LIST*, select_result*, unsigned long))[0x5646c8e8175d] sql/sql_derived.cc:824(mysql_derived_prepare(THD*, LEX*, TABLE_LIST*))[0x5646c8adb097] sql/sql_derived.cc:200(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int))[0x5646c8ad7468] sql/table.cc:9090(TABLE_LIST::handle_derived(LEX*, unsigned int))[0x5646c8f0df5b] sql/sql_lex.h:4455(LEX::handle_list_of_derived(TABLE_LIST*, unsigned int))[0x5646c8b1faa4] sql/sql_lex.cc:4418(st_select_lex::handle_derived(LEX*, unsigned int))[0x5646c8b42017] sql/sql_select.cc:1243(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6ab5e] sql/sql_select.cc:4809(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x5646c8c91c7b] sql/sql_select.cc:442(handle_select(THD*, LEX*, select_result*, unsigned long))[0x5646c8c62972] sql/sql_parse.cc:6523(execute_sqlcom_select(THD*, TABLE_LIST*))[0x5646c8bc9977] sql/sql_parse.cc:3980(mysql_execute_command(THD*))[0x5646c8bb6f97] sql/sp_head.cc:3761(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x5646c8968d8a] sql/sp_head.cc:3491(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x5646c8967420] sql/sp_head.cc:3667(sp_instr_stmt::execute(THD*, unsigned int*))[0x5646c89684d8] sql/sp_head.cc:1372(sp_head::execute(THD*, bool))[0x5646c89597f7] sql/sp_head.cc:2407(sp_head::execute_procedure(THD*, List<Item>*))[0x5646c895fa36] sql/sql_parse.cc:3066(do_execute_sp(THD*, sp_head*))[0x5646c8bb0423] sql/sql_parse.cc:3308(Sql_cmd_call::execute(THD*))[0x5646c8bb201e] sql/sql_parse.cc:6266(mysql_execute_command(THD*))[0x5646c8bc72c5] sql/sql_parse.cc:8062(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x5646c8bd2ef3] sql/sql_parse.cc:1860(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x5646c8ba909f] sql/sql_parse.cc:1378(do_command(THD*))[0x5646c8ba5bca] sql/sql_connect.cc:1419(do_handle_one_connection(CONNECT*))[0x5646c8fbac46] sql/sql_connect.cc:1324(handle_one_connection)[0x5646c8fba4ea] perfschema/pfs.cc:1871(pfs_spawn_thread)[0x5646c9c59274] nptl/pthread_create.c:478(start_thread)[0x7f1d1e655609] Query (0x625000142990): SELECT 1 FROM v1 {noformat} The failure started happening after this commit in 10.4: {noformat} commit 85f2e4f8e8c82978bd9cc0af9bfd2b549ea04d65 Author: Dmitry Shulga <dmitry.shulga@mariadb.com> Date: Fri Nov 24 16:28:31 2023 +0700 {noformat} |
{code:sql}
CREATE VIEW v1 AS SELECT 6 ; CREATE PROCEDURE sp() SELECT 1 FROM v1 ; CREATE TEMPORARY TABLE v1 as SELECT 8 ; CALL sp() ; DROP TEMPORARY TABLE v1; CALL sp() ; {code} {noformat} mysqld: /home/alice/am/m4-10.4/src/sql/sql_lex.cc:4149: void st_select_lex::fix_prepare_information(THD*, Item**, Item**): Assertion `active_arena->is_stmt_prepare_or_first_stmt_execute() || active_arena->state == Query_arena::STMT_SP_QUERY_ARGUMENTS' failed. 240112 11:59:28 [ERROR] mysqld got signal 6 ; Server version: 10.4.33-MariaDB-debug-log source revision: 88c46aba753c0094ea16dc707bb76cc5254806c8 /lib/x86_64-linux-gnu/libc.so.6(+0x33fd6)[0x7f1d1e13afd6] sql/sql_lex.cc:4152(st_select_lex::fix_prepare_information(THD*, Item**, Item**))[0x5646c8b40a8f] sql/sql_select.cc:1458(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6d812] sql/sql_union.cc:662(st_select_lex_unit::prepare_join(THD*, st_select_lex*, select_result*, unsigned long, bool))[0x5646c8e7dfbe] sql/sql_union.cc:1009(st_select_lex_unit::prepare(TABLE_LIST*, select_result*, unsigned long))[0x5646c8e8175d] sql/sql_derived.cc:824(mysql_derived_prepare(THD*, LEX*, TABLE_LIST*))[0x5646c8adb097] sql/sql_derived.cc:200(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int))[0x5646c8ad7468] sql/table.cc:9090(TABLE_LIST::handle_derived(LEX*, unsigned int))[0x5646c8f0df5b] sql/sql_lex.h:4455(LEX::handle_list_of_derived(TABLE_LIST*, unsigned int))[0x5646c8b1faa4] sql/sql_lex.cc:4418(st_select_lex::handle_derived(LEX*, unsigned int))[0x5646c8b42017] sql/sql_select.cc:1243(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6ab5e] sql/sql_select.cc:4809(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x5646c8c91c7b] sql/sql_select.cc:442(handle_select(THD*, LEX*, select_result*, unsigned long))[0x5646c8c62972] sql/sql_parse.cc:6523(execute_sqlcom_select(THD*, TABLE_LIST*))[0x5646c8bc9977] sql/sql_parse.cc:3980(mysql_execute_command(THD*))[0x5646c8bb6f97] sql/sp_head.cc:3761(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x5646c8968d8a] sql/sp_head.cc:3491(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x5646c8967420] sql/sp_head.cc:3667(sp_instr_stmt::execute(THD*, unsigned int*))[0x5646c89684d8] sql/sp_head.cc:1372(sp_head::execute(THD*, bool))[0x5646c89597f7] sql/sp_head.cc:2407(sp_head::execute_procedure(THD*, List<Item>*))[0x5646c895fa36] sql/sql_parse.cc:3066(do_execute_sp(THD*, sp_head*))[0x5646c8bb0423] sql/sql_parse.cc:3308(Sql_cmd_call::execute(THD*))[0x5646c8bb201e] sql/sql_parse.cc:6266(mysql_execute_command(THD*))[0x5646c8bc72c5] sql/sql_parse.cc:8062(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x5646c8bd2ef3] sql/sql_parse.cc:1860(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x5646c8ba909f] sql/sql_parse.cc:1378(do_command(THD*))[0x5646c8ba5bca] sql/sql_connect.cc:1419(do_handle_one_connection(CONNECT*))[0x5646c8fbac46] sql/sql_connect.cc:1324(handle_one_connection)[0x5646c8fba4ea] perfschema/pfs.cc:1871(pfs_spawn_thread)[0x5646c9c59274] nptl/pthread_create.c:478(start_thread)[0x7f1d1e655609] Query (0x625000142990): SELECT 1 FROM v1 {noformat} The failure started happening after this commit in 10.4: {noformat} commit 85f2e4f8e8c82978bd9cc0af9bfd2b549ea04d65 Author: Dmitry Shulga <dmitry.shulga@mariadb.com> Date: Fri Nov 24 16:28:31 2023 +0700 {noformat} maybe fixed |
Link |
This issue relates to |
Description |
{code:sql}
CREATE VIEW v1 AS SELECT 6 ; CREATE PROCEDURE sp() SELECT 1 FROM v1 ; CREATE TEMPORARY TABLE v1 as SELECT 8 ; CALL sp() ; DROP TEMPORARY TABLE v1; CALL sp() ; {code} {noformat} mysqld: /home/alice/am/m4-10.4/src/sql/sql_lex.cc:4149: void st_select_lex::fix_prepare_information(THD*, Item**, Item**): Assertion `active_arena->is_stmt_prepare_or_first_stmt_execute() || active_arena->state == Query_arena::STMT_SP_QUERY_ARGUMENTS' failed. 240112 11:59:28 [ERROR] mysqld got signal 6 ; Server version: 10.4.33-MariaDB-debug-log source revision: 88c46aba753c0094ea16dc707bb76cc5254806c8 /lib/x86_64-linux-gnu/libc.so.6(+0x33fd6)[0x7f1d1e13afd6] sql/sql_lex.cc:4152(st_select_lex::fix_prepare_information(THD*, Item**, Item**))[0x5646c8b40a8f] sql/sql_select.cc:1458(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6d812] sql/sql_union.cc:662(st_select_lex_unit::prepare_join(THD*, st_select_lex*, select_result*, unsigned long, bool))[0x5646c8e7dfbe] sql/sql_union.cc:1009(st_select_lex_unit::prepare(TABLE_LIST*, select_result*, unsigned long))[0x5646c8e8175d] sql/sql_derived.cc:824(mysql_derived_prepare(THD*, LEX*, TABLE_LIST*))[0x5646c8adb097] sql/sql_derived.cc:200(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int))[0x5646c8ad7468] sql/table.cc:9090(TABLE_LIST::handle_derived(LEX*, unsigned int))[0x5646c8f0df5b] sql/sql_lex.h:4455(LEX::handle_list_of_derived(TABLE_LIST*, unsigned int))[0x5646c8b1faa4] sql/sql_lex.cc:4418(st_select_lex::handle_derived(LEX*, unsigned int))[0x5646c8b42017] sql/sql_select.cc:1243(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6ab5e] sql/sql_select.cc:4809(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x5646c8c91c7b] sql/sql_select.cc:442(handle_select(THD*, LEX*, select_result*, unsigned long))[0x5646c8c62972] sql/sql_parse.cc:6523(execute_sqlcom_select(THD*, TABLE_LIST*))[0x5646c8bc9977] sql/sql_parse.cc:3980(mysql_execute_command(THD*))[0x5646c8bb6f97] sql/sp_head.cc:3761(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x5646c8968d8a] sql/sp_head.cc:3491(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x5646c8967420] sql/sp_head.cc:3667(sp_instr_stmt::execute(THD*, unsigned int*))[0x5646c89684d8] sql/sp_head.cc:1372(sp_head::execute(THD*, bool))[0x5646c89597f7] sql/sp_head.cc:2407(sp_head::execute_procedure(THD*, List<Item>*))[0x5646c895fa36] sql/sql_parse.cc:3066(do_execute_sp(THD*, sp_head*))[0x5646c8bb0423] sql/sql_parse.cc:3308(Sql_cmd_call::execute(THD*))[0x5646c8bb201e] sql/sql_parse.cc:6266(mysql_execute_command(THD*))[0x5646c8bc72c5] sql/sql_parse.cc:8062(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x5646c8bd2ef3] sql/sql_parse.cc:1860(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x5646c8ba909f] sql/sql_parse.cc:1378(do_command(THD*))[0x5646c8ba5bca] sql/sql_connect.cc:1419(do_handle_one_connection(CONNECT*))[0x5646c8fbac46] sql/sql_connect.cc:1324(handle_one_connection)[0x5646c8fba4ea] perfschema/pfs.cc:1871(pfs_spawn_thread)[0x5646c9c59274] nptl/pthread_create.c:478(start_thread)[0x7f1d1e655609] Query (0x625000142990): SELECT 1 FROM v1 {noformat} The failure started happening after this commit in 10.4: {noformat} commit 85f2e4f8e8c82978bd9cc0af9bfd2b549ea04d65 Author: Dmitry Shulga <dmitry.shulga@mariadb.com> Date: Fri Nov 24 16:28:31 2023 +0700 {noformat} maybe fixed |
{code:sql}
CREATE VIEW v1 AS SELECT 6 ; CREATE PROCEDURE sp() SELECT 1 FROM v1 ; CREATE TEMPORARY TABLE v1 as SELECT 8 ; CALL sp() ; DROP TEMPORARY TABLE v1; CALL sp() ; {code} {noformat} mysqld: /home/alice/am/m4-10.4/src/sql/sql_lex.cc:4149: void st_select_lex::fix_prepare_information(THD*, Item**, Item**): Assertion `active_arena->is_stmt_prepare_or_first_stmt_execute() || active_arena->state == Query_arena::STMT_SP_QUERY_ARGUMENTS' failed. 240112 11:59:28 [ERROR] mysqld got signal 6 ; Server version: 10.4.33-MariaDB-debug-log source revision: 88c46aba753c0094ea16dc707bb76cc5254806c8 /lib/x86_64-linux-gnu/libc.so.6(+0x33fd6)[0x7f1d1e13afd6] sql/sql_lex.cc:4152(st_select_lex::fix_prepare_information(THD*, Item**, Item**))[0x5646c8b40a8f] sql/sql_select.cc:1458(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6d812] sql/sql_union.cc:662(st_select_lex_unit::prepare_join(THD*, st_select_lex*, select_result*, unsigned long, bool))[0x5646c8e7dfbe] sql/sql_union.cc:1009(st_select_lex_unit::prepare(TABLE_LIST*, select_result*, unsigned long))[0x5646c8e8175d] sql/sql_derived.cc:824(mysql_derived_prepare(THD*, LEX*, TABLE_LIST*))[0x5646c8adb097] sql/sql_derived.cc:200(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int))[0x5646c8ad7468] sql/table.cc:9090(TABLE_LIST::handle_derived(LEX*, unsigned int))[0x5646c8f0df5b] sql/sql_lex.h:4455(LEX::handle_list_of_derived(TABLE_LIST*, unsigned int))[0x5646c8b1faa4] sql/sql_lex.cc:4418(st_select_lex::handle_derived(LEX*, unsigned int))[0x5646c8b42017] sql/sql_select.cc:1243(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6ab5e] sql/sql_select.cc:4809(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x5646c8c91c7b] sql/sql_select.cc:442(handle_select(THD*, LEX*, select_result*, unsigned long))[0x5646c8c62972] sql/sql_parse.cc:6523(execute_sqlcom_select(THD*, TABLE_LIST*))[0x5646c8bc9977] sql/sql_parse.cc:3980(mysql_execute_command(THD*))[0x5646c8bb6f97] sql/sp_head.cc:3761(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x5646c8968d8a] sql/sp_head.cc:3491(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x5646c8967420] sql/sp_head.cc:3667(sp_instr_stmt::execute(THD*, unsigned int*))[0x5646c89684d8] sql/sp_head.cc:1372(sp_head::execute(THD*, bool))[0x5646c89597f7] sql/sp_head.cc:2407(sp_head::execute_procedure(THD*, List<Item>*))[0x5646c895fa36] sql/sql_parse.cc:3066(do_execute_sp(THD*, sp_head*))[0x5646c8bb0423] sql/sql_parse.cc:3308(Sql_cmd_call::execute(THD*))[0x5646c8bb201e] sql/sql_parse.cc:6266(mysql_execute_command(THD*))[0x5646c8bc72c5] sql/sql_parse.cc:8062(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x5646c8bd2ef3] sql/sql_parse.cc:1860(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x5646c8ba909f] sql/sql_parse.cc:1378(do_command(THD*))[0x5646c8ba5bca] sql/sql_connect.cc:1419(do_handle_one_connection(CONNECT*))[0x5646c8fbac46] sql/sql_connect.cc:1324(handle_one_connection)[0x5646c8fba4ea] perfschema/pfs.cc:1871(pfs_spawn_thread)[0x5646c9c59274] nptl/pthread_create.c:478(start_thread)[0x7f1d1e655609] Query (0x625000142990): SELECT 1 FROM v1 {noformat} The failure started happening after this commit in 10.4: {noformat} commit 85f2e4f8e8c82978bd9cc0af9bfd2b549ea04d65 Author: Dmitry Shulga <dmitry.shulga@mariadb.com> Date: Fri Nov 24 16:28:31 2023 +0700 {noformat} maybe fixed by |
Description |
{code:sql}
CREATE VIEW v1 AS SELECT 6 ; CREATE PROCEDURE sp() SELECT 1 FROM v1 ; CREATE TEMPORARY TABLE v1 as SELECT 8 ; CALL sp() ; DROP TEMPORARY TABLE v1; CALL sp() ; {code} {noformat} mysqld: /home/alice/am/m4-10.4/src/sql/sql_lex.cc:4149: void st_select_lex::fix_prepare_information(THD*, Item**, Item**): Assertion `active_arena->is_stmt_prepare_or_first_stmt_execute() || active_arena->state == Query_arena::STMT_SP_QUERY_ARGUMENTS' failed. 240112 11:59:28 [ERROR] mysqld got signal 6 ; Server version: 10.4.33-MariaDB-debug-log source revision: 88c46aba753c0094ea16dc707bb76cc5254806c8 /lib/x86_64-linux-gnu/libc.so.6(+0x33fd6)[0x7f1d1e13afd6] sql/sql_lex.cc:4152(st_select_lex::fix_prepare_information(THD*, Item**, Item**))[0x5646c8b40a8f] sql/sql_select.cc:1458(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6d812] sql/sql_union.cc:662(st_select_lex_unit::prepare_join(THD*, st_select_lex*, select_result*, unsigned long, bool))[0x5646c8e7dfbe] sql/sql_union.cc:1009(st_select_lex_unit::prepare(TABLE_LIST*, select_result*, unsigned long))[0x5646c8e8175d] sql/sql_derived.cc:824(mysql_derived_prepare(THD*, LEX*, TABLE_LIST*))[0x5646c8adb097] sql/sql_derived.cc:200(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int))[0x5646c8ad7468] sql/table.cc:9090(TABLE_LIST::handle_derived(LEX*, unsigned int))[0x5646c8f0df5b] sql/sql_lex.h:4455(LEX::handle_list_of_derived(TABLE_LIST*, unsigned int))[0x5646c8b1faa4] sql/sql_lex.cc:4418(st_select_lex::handle_derived(LEX*, unsigned int))[0x5646c8b42017] sql/sql_select.cc:1243(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6ab5e] sql/sql_select.cc:4809(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x5646c8c91c7b] sql/sql_select.cc:442(handle_select(THD*, LEX*, select_result*, unsigned long))[0x5646c8c62972] sql/sql_parse.cc:6523(execute_sqlcom_select(THD*, TABLE_LIST*))[0x5646c8bc9977] sql/sql_parse.cc:3980(mysql_execute_command(THD*))[0x5646c8bb6f97] sql/sp_head.cc:3761(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x5646c8968d8a] sql/sp_head.cc:3491(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x5646c8967420] sql/sp_head.cc:3667(sp_instr_stmt::execute(THD*, unsigned int*))[0x5646c89684d8] sql/sp_head.cc:1372(sp_head::execute(THD*, bool))[0x5646c89597f7] sql/sp_head.cc:2407(sp_head::execute_procedure(THD*, List<Item>*))[0x5646c895fa36] sql/sql_parse.cc:3066(do_execute_sp(THD*, sp_head*))[0x5646c8bb0423] sql/sql_parse.cc:3308(Sql_cmd_call::execute(THD*))[0x5646c8bb201e] sql/sql_parse.cc:6266(mysql_execute_command(THD*))[0x5646c8bc72c5] sql/sql_parse.cc:8062(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x5646c8bd2ef3] sql/sql_parse.cc:1860(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x5646c8ba909f] sql/sql_parse.cc:1378(do_command(THD*))[0x5646c8ba5bca] sql/sql_connect.cc:1419(do_handle_one_connection(CONNECT*))[0x5646c8fbac46] sql/sql_connect.cc:1324(handle_one_connection)[0x5646c8fba4ea] perfschema/pfs.cc:1871(pfs_spawn_thread)[0x5646c9c59274] nptl/pthread_create.c:478(start_thread)[0x7f1d1e655609] Query (0x625000142990): SELECT 1 FROM v1 {noformat} The failure started happening after this commit in 10.4: {noformat} commit 85f2e4f8e8c82978bd9cc0af9bfd2b549ea04d65 Author: Dmitry Shulga <dmitry.shulga@mariadb.com> Date: Fri Nov 24 16:28:31 2023 +0700 {noformat} maybe fixed by |
{code:sql}
CREATE VIEW v1 AS SELECT 6 ; CREATE PROCEDURE sp() SELECT 1 FROM v1 ; CREATE TEMPORARY TABLE v1 as SELECT 8 ; CALL sp() ; DROP TEMPORARY TABLE v1; CALL sp() ; {code} {noformat} mysqld: /home/alice/am/m4-10.4/src/sql/sql_lex.cc:4149: void st_select_lex::fix_prepare_information(THD*, Item**, Item**): Assertion `active_arena->is_stmt_prepare_or_first_stmt_execute() || active_arena->state == Query_arena::STMT_SP_QUERY_ARGUMENTS' failed. 240112 11:59:28 [ERROR] mysqld got signal 6 ; Server version: 10.4.33-MariaDB-debug-log source revision: 88c46aba753c0094ea16dc707bb76cc5254806c8 /lib/x86_64-linux-gnu/libc.so.6(+0x33fd6)[0x7f1d1e13afd6] sql/sql_lex.cc:4152(st_select_lex::fix_prepare_information(THD*, Item**, Item**))[0x5646c8b40a8f] sql/sql_select.cc:1458(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6d812] sql/sql_union.cc:662(st_select_lex_unit::prepare_join(THD*, st_select_lex*, select_result*, unsigned long, bool))[0x5646c8e7dfbe] sql/sql_union.cc:1009(st_select_lex_unit::prepare(TABLE_LIST*, select_result*, unsigned long))[0x5646c8e8175d] sql/sql_derived.cc:824(mysql_derived_prepare(THD*, LEX*, TABLE_LIST*))[0x5646c8adb097] sql/sql_derived.cc:200(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int))[0x5646c8ad7468] sql/table.cc:9090(TABLE_LIST::handle_derived(LEX*, unsigned int))[0x5646c8f0df5b] sql/sql_lex.h:4455(LEX::handle_list_of_derived(TABLE_LIST*, unsigned int))[0x5646c8b1faa4] sql/sql_lex.cc:4418(st_select_lex::handle_derived(LEX*, unsigned int))[0x5646c8b42017] sql/sql_select.cc:1243(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6ab5e] sql/sql_select.cc:4809(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x5646c8c91c7b] sql/sql_select.cc:442(handle_select(THD*, LEX*, select_result*, unsigned long))[0x5646c8c62972] sql/sql_parse.cc:6523(execute_sqlcom_select(THD*, TABLE_LIST*))[0x5646c8bc9977] sql/sql_parse.cc:3980(mysql_execute_command(THD*))[0x5646c8bb6f97] sql/sp_head.cc:3761(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x5646c8968d8a] sql/sp_head.cc:3491(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x5646c8967420] sql/sp_head.cc:3667(sp_instr_stmt::execute(THD*, unsigned int*))[0x5646c89684d8] sql/sp_head.cc:1372(sp_head::execute(THD*, bool))[0x5646c89597f7] sql/sp_head.cc:2407(sp_head::execute_procedure(THD*, List<Item>*))[0x5646c895fa36] sql/sql_parse.cc:3066(do_execute_sp(THD*, sp_head*))[0x5646c8bb0423] sql/sql_parse.cc:3308(Sql_cmd_call::execute(THD*))[0x5646c8bb201e] sql/sql_parse.cc:6266(mysql_execute_command(THD*))[0x5646c8bc72c5] sql/sql_parse.cc:8062(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x5646c8bd2ef3] sql/sql_parse.cc:1860(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x5646c8ba909f] sql/sql_parse.cc:1378(do_command(THD*))[0x5646c8ba5bca] sql/sql_connect.cc:1419(do_handle_one_connection(CONNECT*))[0x5646c8fbac46] sql/sql_connect.cc:1324(handle_one_connection)[0x5646c8fba4ea] perfschema/pfs.cc:1871(pfs_spawn_thread)[0x5646c9c59274] nptl/pthread_create.c:478(start_thread)[0x7f1d1e655609] Query (0x625000142990): SELECT 1 FROM v1 {noformat} The failure started happening after this commit in 10.4: {noformat} commit 85f2e4f8e8c82978bd9cc0af9bfd2b549ea04d65 Author: Dmitry Shulga <dmitry.shulga@mariadb.com> Date: Fri Nov 24 16:28:31 2023 +0700 {noformat} |
Fix Version/s | 11.1 [ 28549 ] |
Affects Version/s | 11.1 [ 28549 ] |
Labels | regression | not-11.2+ regression |
Status | Confirmed [ 10101 ] | In Progress [ 3 ] |
Priority | Blocker [ 1 ] | Critical [ 2 ] |
Description |
{code:sql}
CREATE VIEW v1 AS SELECT 6 ; CREATE PROCEDURE sp() SELECT 1 FROM v1 ; CREATE TEMPORARY TABLE v1 as SELECT 8 ; CALL sp() ; DROP TEMPORARY TABLE v1; CALL sp() ; {code} {noformat} mysqld: /home/alice/am/m4-10.4/src/sql/sql_lex.cc:4149: void st_select_lex::fix_prepare_information(THD*, Item**, Item**): Assertion `active_arena->is_stmt_prepare_or_first_stmt_execute() || active_arena->state == Query_arena::STMT_SP_QUERY_ARGUMENTS' failed. 240112 11:59:28 [ERROR] mysqld got signal 6 ; Server version: 10.4.33-MariaDB-debug-log source revision: 88c46aba753c0094ea16dc707bb76cc5254806c8 /lib/x86_64-linux-gnu/libc.so.6(+0x33fd6)[0x7f1d1e13afd6] sql/sql_lex.cc:4152(st_select_lex::fix_prepare_information(THD*, Item**, Item**))[0x5646c8b40a8f] sql/sql_select.cc:1458(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6d812] sql/sql_union.cc:662(st_select_lex_unit::prepare_join(THD*, st_select_lex*, select_result*, unsigned long, bool))[0x5646c8e7dfbe] sql/sql_union.cc:1009(st_select_lex_unit::prepare(TABLE_LIST*, select_result*, unsigned long))[0x5646c8e8175d] sql/sql_derived.cc:824(mysql_derived_prepare(THD*, LEX*, TABLE_LIST*))[0x5646c8adb097] sql/sql_derived.cc:200(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int))[0x5646c8ad7468] sql/table.cc:9090(TABLE_LIST::handle_derived(LEX*, unsigned int))[0x5646c8f0df5b] sql/sql_lex.h:4455(LEX::handle_list_of_derived(TABLE_LIST*, unsigned int))[0x5646c8b1faa4] sql/sql_lex.cc:4418(st_select_lex::handle_derived(LEX*, unsigned int))[0x5646c8b42017] sql/sql_select.cc:1243(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6ab5e] sql/sql_select.cc:4809(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x5646c8c91c7b] sql/sql_select.cc:442(handle_select(THD*, LEX*, select_result*, unsigned long))[0x5646c8c62972] sql/sql_parse.cc:6523(execute_sqlcom_select(THD*, TABLE_LIST*))[0x5646c8bc9977] sql/sql_parse.cc:3980(mysql_execute_command(THD*))[0x5646c8bb6f97] sql/sp_head.cc:3761(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x5646c8968d8a] sql/sp_head.cc:3491(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x5646c8967420] sql/sp_head.cc:3667(sp_instr_stmt::execute(THD*, unsigned int*))[0x5646c89684d8] sql/sp_head.cc:1372(sp_head::execute(THD*, bool))[0x5646c89597f7] sql/sp_head.cc:2407(sp_head::execute_procedure(THD*, List<Item>*))[0x5646c895fa36] sql/sql_parse.cc:3066(do_execute_sp(THD*, sp_head*))[0x5646c8bb0423] sql/sql_parse.cc:3308(Sql_cmd_call::execute(THD*))[0x5646c8bb201e] sql/sql_parse.cc:6266(mysql_execute_command(THD*))[0x5646c8bc72c5] sql/sql_parse.cc:8062(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x5646c8bd2ef3] sql/sql_parse.cc:1860(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x5646c8ba909f] sql/sql_parse.cc:1378(do_command(THD*))[0x5646c8ba5bca] sql/sql_connect.cc:1419(do_handle_one_connection(CONNECT*))[0x5646c8fbac46] sql/sql_connect.cc:1324(handle_one_connection)[0x5646c8fba4ea] perfschema/pfs.cc:1871(pfs_spawn_thread)[0x5646c9c59274] nptl/pthread_create.c:478(start_thread)[0x7f1d1e655609] Query (0x625000142990): SELECT 1 FROM v1 {noformat} The failure started happening after this commit in 10.4: {noformat} commit 85f2e4f8e8c82978bd9cc0af9bfd2b549ea04d65 Author: Dmitry Shulga <dmitry.shulga@mariadb.com> Date: Fri Nov 24 16:28:31 2023 +0700 {noformat} |
{code:sql}
CREATE VIEW v1 AS SELECT 6 ; CREATE PROCEDURE sp() SELECT 1 FROM v1 ; CREATE TEMPORARY TABLE v1 as SELECT 8 ; CALL sp() ; DROP TEMPORARY TABLE v1; CALL sp() ; {code} {noformat} mysqld: /home/alice/am/m4-10.4/src/sql/sql_lex.cc:4149: void st_select_lex::fix_prepare_information(THD*, Item**, Item**): Assertion `active_arena->is_stmt_prepare_or_first_stmt_execute() || active_arena->state == Query_arena::STMT_SP_QUERY_ARGUMENTS' failed. 240112 11:59:28 [ERROR] mysqld got signal 6 ; Server version: 10.4.33-MariaDB-debug-log source revision: 88c46aba753c0094ea16dc707bb76cc5254806c8 /lib/x86_64-linux-gnu/libc.so.6(+0x33fd6)[0x7f1d1e13afd6] sql/sql_lex.cc:4152(st_select_lex::fix_prepare_information(THD*, Item**, Item**))[0x5646c8b40a8f] sql/sql_select.cc:1458(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6d812] sql/sql_union.cc:662(st_select_lex_unit::prepare_join(THD*, st_select_lex*, select_result*, unsigned long, bool))[0x5646c8e7dfbe] sql/sql_union.cc:1009(st_select_lex_unit::prepare(TABLE_LIST*, select_result*, unsigned long))[0x5646c8e8175d] sql/sql_derived.cc:824(mysql_derived_prepare(THD*, LEX*, TABLE_LIST*))[0x5646c8adb097] sql/sql_derived.cc:200(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int))[0x5646c8ad7468] sql/table.cc:9090(TABLE_LIST::handle_derived(LEX*, unsigned int))[0x5646c8f0df5b] sql/sql_lex.h:4455(LEX::handle_list_of_derived(TABLE_LIST*, unsigned int))[0x5646c8b1faa4] sql/sql_lex.cc:4418(st_select_lex::handle_derived(LEX*, unsigned int))[0x5646c8b42017] sql/sql_select.cc:1243(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5646c8c6ab5e] sql/sql_select.cc:4809(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x5646c8c91c7b] sql/sql_select.cc:442(handle_select(THD*, LEX*, select_result*, unsigned long))[0x5646c8c62972] sql/sql_parse.cc:6523(execute_sqlcom_select(THD*, TABLE_LIST*))[0x5646c8bc9977] sql/sql_parse.cc:3980(mysql_execute_command(THD*))[0x5646c8bb6f97] sql/sp_head.cc:3761(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x5646c8968d8a] sql/sp_head.cc:3491(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x5646c8967420] sql/sp_head.cc:3667(sp_instr_stmt::execute(THD*, unsigned int*))[0x5646c89684d8] sql/sp_head.cc:1372(sp_head::execute(THD*, bool))[0x5646c89597f7] sql/sp_head.cc:2407(sp_head::execute_procedure(THD*, List<Item>*))[0x5646c895fa36] sql/sql_parse.cc:3066(do_execute_sp(THD*, sp_head*))[0x5646c8bb0423] sql/sql_parse.cc:3308(Sql_cmd_call::execute(THD*))[0x5646c8bb201e] sql/sql_parse.cc:6266(mysql_execute_command(THD*))[0x5646c8bc72c5] sql/sql_parse.cc:8062(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x5646c8bd2ef3] sql/sql_parse.cc:1860(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x5646c8ba909f] sql/sql_parse.cc:1378(do_command(THD*))[0x5646c8ba5bca] sql/sql_connect.cc:1419(do_handle_one_connection(CONNECT*))[0x5646c8fbac46] sql/sql_connect.cc:1324(handle_one_connection)[0x5646c8fba4ea] perfschema/pfs.cc:1871(pfs_spawn_thread)[0x5646c9c59274] nptl/pthread_create.c:478(start_thread)[0x7f1d1e655609] Query (0x625000142990): SELECT 1 FROM v1 {noformat} The failure started happening after this commit in 10.4: {noformat} commit 85f2e4f8e8c82978bd9cc0af9bfd2b549ea04d65 Author: Dmitry Shulga <dmitry.shulga@mariadb.com> Date: Fri Nov 24 16:28:31 2023 +0700 {noformat} |
Affects Version/s | 11.2 [ 28603 ] | |
Affects Version/s | 11.3 [ 28565 ] | |
Affects Version/s | 11.4 [ 29301 ] |
Fix Version/s | 11.2 [ 28603 ] | |
Fix Version/s | 11.3 [ 28565 ] |
Labels | not-11.2+ regression | regression |
Assignee | Dmitry Shulga [ JIRAUSER47315 ] | Oleksandr Byelkin [ sanja ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Assignee | Oleksandr Byelkin [ sanja ] | Dmitry Shulga [ JIRAUSER47315 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Assignee | Dmitry Shulga [ JIRAUSER47315 ] | Oleksandr Byelkin [ sanja ] |
Status | Stalled [ 10000 ] | In Review [ 10002 ] |
Assignee | Oleksandr Byelkin [ sanja ] | Dmitry Shulga [ JIRAUSER47315 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Component/s | Prepared Statements [ 10804 ] | |
Component/s | Stored routines [ 13905 ] | |
Fix Version/s | 10.4.34 [ 29625 ] | |
Fix Version/s | 10.5.25 [ 29626 ] | |
Fix Version/s | 10.6.18 [ 29627 ] | |
Fix Version/s | 10.11.8 [ 29630 ] | |
Fix Version/s | 11.0.6 [ 29628 ] | |
Fix Version/s | 11.1.5 [ 29629 ] | |
Fix Version/s | 11.2.4 [ 29631 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] | |
Fix Version/s | 10.11 [ 27614 ] | |
Fix Version/s | 11.0 [ 28320 ] | |
Fix Version/s | 11.1 [ 28549 ] | |
Fix Version/s | 11.3 [ 28565 ] | |
Fix Version/s | 11.2 [ 28603 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
after fix return assert in st_select_lex::fix_prepare_information