XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 10.4.10
    • N/A
    • N/A
    • None

    Description

      Segfault while running a stored procedure.
      To reproduce, extract the attached not-so-small working example mariadb-MDEV-2100.tar and run the runme.sh that it contains.

      (gdb) bt
      #0  0x000055f5aa20d0f9 in JOIN::destroy() ()
      #1  0x000055f5aa27389a in st_select_lex::cleanup() ()
      #2  0x000055f5aa481bba in subselect_single_select_engine::prepare(THD*) ()
      #3  0x000055f5aa481619 in Item_subselect::fix_fields(THD*, Item**) ()
      #4  0x000055f5aa481947 in Item_in_subselect::fix_fields(THD*, Item**) ()
      #5  0x000055f5aa408490 in Item_in_optimizer::fix_fields(THD*, Item**) ()
      #6  0x000055f5aa406070 in Item_cond::fix_fields(THD*, Item**) ()
      #7  0x000055f5aa137e0c in THD::sp_fix_func_item(Item**) ()
      #8  0x000055f5aa137e7f in THD::sp_prepare_func_item(Item**, unsigned int) ()
      #9  0x000055f5aa137ede in sp_instr_jump_if_not::exec_core(THD*, unsigned int*) ()
      #10 0x000055f5aa13eb06 in sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*) ()
      #11 0x000055f5aa139858 in sp_head::execute(THD*, bool) ()
      #12 0x000055f5aa13af83 in sp_head::execute_procedure(THD*, List<Item>*) ()
      #13 0x000055f5aa1bdcbc in ?? ()
      #14 0x000055f5aa1bfd56 in Sql_cmd_call::execute(THD*) ()
      #15 0x000055f5aa1c754f in mysql_execute_command(THD*) ()
      #16 0x000055f5aa1cf7b9 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) ()
      #17 0x000055f5aa1d1ee1 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) ()
      #18 0x000055f5aa1d4541 in do_command(THD*) ()
      #19 0x000055f5aa2b7826 in do_handle_one_connection(CONNECT*) ()
      #20 0x000055f5aa2b7963 in handle_one_connection ()
      #21 0x00007f5f129d84cf in start_thread () from /usr/lib/libpthread.so.0
      #22 0x00007f5f121ae2d3 in clone () from /usr/lib/libc.so.6
      
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gauravjuvekar Gaurav Juvekar
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.