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

Crash in Item_equal::sort on second execution of stored procedure

    XMLWordPrintable

    Details

      Description

      The following crash happens on a second call to the stored procedure:

      211202 20:18:42 [ERROR] mysqld got signal 11 ;
      This could be because you hit a bug. It is also possible that this binary
      or one of the libraries it was linked against is corrupt, improperly built,
      or misconfigured. This error can also be caused by malfunctioning hardware.
       
      To report this bug, see https://mariadb.com/kb/en/reporting-bugs
       
      We will try our best to scrape up some info that will hopefully help
      diagnose the problem, but since we have already crashed,
      something is definitely wrong and this may fail.
       
      Server version: 10.2.41-MariaDB-log
      key_buffer_size=33554432
      read_buffer_size=131072
      max_used_connections=302
      max_threads=31002
      thread_count=313
      It is possible that mysqld could use up to
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 68155039 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x7f8b54067ad8
      Attempting backtrace. You can use the following information to find out
      where mysqld died. If you see no messages after this, something went
      terribly wrong...
      stack_bottom = 0x7f8711915d30 thread_stack 0x30000
      /usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x561d8c792e8e]
      /usr/sbin/mysqld(handle_fatal_signal+0x30d)[0x561d8c22af3d]
      /lib64/libpthread.so.0(+0xf630)[0x7f8bac326630]
      /usr/sbin/mysqld(+0x53a6c6)[0x561d8c0b96c6]
      /usr/sbin/mysqld(_ZN10Item_equal4sortEPFiP4ItemS1_PvES2_+0x7d)[0x561d8c26df1d]
      /usr/sbin/mysqld(+0x54d184)[0x561d8c0cc184]
      /usr/sbin/mysqld(_ZN4JOIN14optimize_innerEv+0x111b)[0x561d8c0e733b]
      /usr/sbin/mysqld(_ZN4JOIN8optimizeEv+0x56)[0x561d8c0e9066]
      /usr/sbin/mysqld(_ZN13st_select_lex31optimize_unflattened_subqueriesEb+0xd8)[0x561d8c0887f8]
      /usr/sbin/mysqld(_ZN4JOIN14optimize_innerEv+0x1f37)[0x561d8c0e8157]
      /usr/sbin/mysqld(_ZN4JOIN8optimizeEv+0x56)[0x561d8c0e9066]
      /usr/sbin/mysqld(_Z12mysql_selectP3THDP10TABLE_LISTjR4ListI4ItemEPS4_jP8st_orderS9_S7_S9_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x94)[0x561d8c0ea944]
      /usr/sbin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x26c)[0x561d8c0eb55c]
      /usr/sbin/mysqld(+0x43b641)[0x561d8bfba641]
      /usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x5e04)[0x561d8c097cd4]
      /usr/sbin/mysqld(_Z17mysql_open_cursorP3THDP13select_resultPP18Server_side_cursor+0x187)[0x561d8c068f97]
      /usr/sbin/mysqld(_ZN9sp_cursor4openEP3THD+0x1e)[0x561d8c022c9e]
      /usr/sbin/mysqld(_ZN14sp_instr_copen9exec_coreEP3THDPj+0x27)[0x561d8c017b27]
      /usr/sbin/mysqld(_ZN13sp_lex_keeper23reset_lex_and_exec_coreEP3THDPjbP8sp_instr+0xab)[0x561d8c01dd5b]
      /usr/sbin/mysqld(_ZN14sp_instr_copen7executeEP3THDPj+0x48)[0x561d8c01e0f8]
      /usr/sbin/mysqld(_ZN7sp_head7executeEP3THDb+0x7d0)[0x561d8c01ab50]
      /usr/sbin/mysqld(_ZN7sp_head17execute_procedureEP3THDP4ListI4ItemE+0x5ef)[0x561d8c01c2ff]
      /usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x1e65)[0x561d8c093d35]
      /usr/sbin/mysqld(_ZN13sp_instr_stmt9exec_coreEP3THDPj+0x36)[0x561d8c017996]
      /usr/sbin/mysqld(_ZN13sp_lex_keeper23reset_lex_and_exec_coreEP3THDPjbP8sp_instr+0xab)[0x561d8c01dd5b]
      /usr/sbin/mysqld(_ZN13sp_instr_stmt7executeEP3THDPj+0x205)[0x561d8c01e335]
      /usr/sbin/mysqld(_ZN7sp_head7executeEP3THDb+0x7d0)[0x561d8c01ab50]
      /usr/sbin/mysqld(_ZN7sp_head17execute_procedureEP3THDP4ListI4ItemE+0x5ef)[0x561d8c01c2ff]
      /usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x1e65)[0x561d8c093d35]
      /usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_statebb+0x34a)[0x561d8c09a74a]
      /usr/sbin/mysqld(+0x43b83b)[0x561d8bfba83b]
      /usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0x2e2f)[0x561d8c09ddaf]
      /usr/sbin/mysqld(_Z10do_commandP3THD+0x11a)[0x561d8c09e42a]
      /usr/sbin/mysqld(_Z24do_handle_one_connectionP7CONNECT+0x1d6)[0x561d8c16a346]
      /usr/sbin/mysqld(handle_one_connection+0x3d)[0x561d8c16a45d]
      pthread_create.c:0(start_thread)[0x7f8bac31eea5]
      /lib64/libc.so.6(clone+0x6d)[0x7f8baa6beb0d]
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7f8b5437bed0): CALL SP( NAME_CONST(...),  NAME_CONST(...), ...)
       
      Connection ID (thread ID): 94
      Status: NOT_KILLED
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              igor Igor Babaev
              Reporter:
              valerii Valerii Kravchuk
              Votes:
              0 Vote for this issue
              Watchers:
              10 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.