[MDEV-29257] Assertion `! is_set()' failed in Diagnostics_area::set_eof_status after running ANALYZE SELECT with --cursor Created: 2022-08-05  Updated: 2023-11-28

Status: Open
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9
Fix Version/s: 10.4, 10.5, 10.6

Type: Bug Priority: Minor
Reporter: Alice Sherepa Assignee: Oleksandr Byelkin
Resolution: Unresolved Votes: 0
Labels: None


 Description   

# please run as ./mtr --cursor-protocol
analyze select 1;

10.3 43c7f6a0f3d2d636fea0decf

Version: '10.3.36-MariaDB-debug-log'  
mysqld: /10.3/src/sql/sql_error.cc:375: void Diagnostics_area::set_eof_status(THD*): Assertion `! is_set()' failed.
220805 19:43:21 [ERROR] mysqld got signal 6 ;
 
Server version: 10.3.36-MariaDB-debug-log
 
mysys/stacktrace.c:174(my_print_stacktrace)[0x55a12113bf38]
sql/signal_handler.cc:231(handle_fatal_signal)[0x55a11fd97afc]
sql/sql_error.cc:380(Diagnostics_area::set_eof_status(THD*))[0x55a11f562c31]
sql/sql_class.h:4964(my_eof(THD*))[0x55a11f38f5b0]
sql/sql_prepare.cc:3850(Select_fetch_protocol_binary::send_eof())[0x55a11f682e3a]
sql/sql_cursor.cc:318(Materialized_cursor::open(JOIN*))[0x55a11f5478eb]
sql/sql_cursor.cc:181(mysql_open_cursor(THD*, select_result*, Server_side_cursor**))[0x55a11f5464cf]
sql/sql_prepare.cc:5007(Prepared_statement::execute(String*, bool))[0x55a11f68be51]
sql/sql_prepare.cc:4455(Prepared_statement::execute_loop(String*, bool, unsigned char*, unsigned char*))[0x55a11f687181]
sql/sql_prepare.cc:3437(mysql_stmt_execute_common(THD*, unsigned long, unsigned char*, unsigned char*, unsigned long, bool, bool))[0x55a11f6806fb]
sql/sql_prepare.cc:3227(mysqld_stmt_execute(THD*, char*, unsigned int))[0x55a11f67f9a7]
sql/sql_parse.cc:1796(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x55a11f60fd77]
sql/sql_parse.cc:1398(do_command(THD*))[0x55a11f60ce5a]
sql/sql_connect.cc:1403(do_handle_one_connection(CONNECT*))[0x55a11f9e09d9]
sql/sql_connect.cc:1309(handle_one_connection)[0x55a11f9e0293]
perfschema/pfs.cc:1871(pfs_spawn_thread)[0x55a121011255]
nptl/pthread_create.c:478(start_thread)[0x7f0ef48ab609]
 
Query (0x62b000032a20): analyze select 1


Generated at Thu Feb 08 10:07:06 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.