Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-20667

Server crash on pop_cursor

    XMLWordPrintable

Details

    Description

      Conjunction of cursor and "goto" statement in stored procedure cause crash with stack:
      sql/sp_rcontext.cc:452(sp_rcontext::pop_cursor(THD*))[0x55e353c86a13]
      sql/sp_head.cc:4288(sp_instr_cpop::execute(THD*, unsigned int*))[0x55e353c7755b]
      sql/sp_head.cc:1350(sp_head::execute(THD*, bool))[0x55e353c7b421]
      sql/sp_head.cc:2288(sp_head::execute_procedure(THD*, List<Item>*))[0x55e353c7c5d7]
      sql/sql_parse.cc:3022(do_execute_sp(THD*, sp_head*))[0x55e353cff46f]
      sql/sql_parse.cc:3261(Sql_cmd_call::execute(THD*))[0x55e353d00ba6]
      sql/sql_parse.cc:3272(Sql_cmd_call::execute(THD*))[0x55e353d013a7]
      sql/sql_parse.cc:6099(mysql_execute_command(THD*))[0x55e353d0a30e]
      sql/sp_head.cc:3607(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x55e353c78e84]
      sql/sp_head.cc:3343(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x55e353c7f434]
      sql/sp_head.cc:3514(sp_instr_stmt::execute(THD*, unsigned int*))[0x55e353c7fe59]
      sql/sp_head.cc:1350(sp_head::execute(THD*, bool))[0x55e353c7b421]
      sql/sp_head.cc:2288(sp_head::execute_procedure(THD*, List<Item>*))[0x55e353c7c5d7]
      sql/sql_parse.cc:3022(do_execute_sp(THD*, sp_head*))[0x55e353cff46f]
      sql/sql_parse.cc:5711(mysql_execute_command(THD*))[0x55e353d0852c]
      sql/sql_parse.cc:7910(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x55e353d10112]
      sql/sql_parse.cc:1907(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x55e353d12ed9]
      sql/sql_parse.cc:1360(do_command(THD*))[0x55e353d1473c]
      sql/sql_connect.cc:1412(do_handle_one_connection(CONNECT*))[0x55e353de44f4]
      sql/sql_connect.cc:1318(handle_one_connection)[0x55e353de45d4]
      perfschema/pfs.cc:1865(pfs_spawn_thread)[0x55e354398534]

      Attachments

        Activity

          People

            bar Alexander Barkov
            halfspawn Jérôme Brauge
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.