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

(Reopen) Unexpected crash occured repeatedly

    XMLWordPrintable

Details

    Description

      Thank you for many people's previous support for my issue.

      After upgrading my DB from 10.2.8 to 10.2.24, unexpected crash has been occured again

      and DB left error log below.

       
      #######
      190621 16:39:39 [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.24-MariaDB-log
      key_buffer_size=134217728
      read_buffer_size=131072
      max_used_connections=21
      max_threads=1002
      thread_count=27
      It is possible that mysqld could use up to
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 408925 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x7fe5fc0009a8
      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 = 0x7fe808928e18 thread_stack 0x49000
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(my_print_stacktrace+0x2e)[0xdf0f9e]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(handle_fatal_signal+0x4f8)[0x7eb2c8]
      /lib64/libpthread.so.0[0x36d580f7e0]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN13st_select_lex21save_prep_leaf_tablesEP3THD+0x72)[0x5ddf72]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN13st_select_lex21save_prep_leaf_tablesEP3THD+0xef)[0x5ddfef]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN13st_select_lex21save_prep_leaf_tablesEP3THD+0xef)[0x5ddfef]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN3LEX21save_prep_leaf_tablesEv+0x52)[0x5de072]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z26mysql_multi_update_prepareP3THD+0x790)[0x6a1560]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z21mysql_execute_commandP3THD+0x2d15)[0x5ef915]
      sql/log_event.h:1345(Log_event::write_footer())[0x97603e]
      sql/sql_acl.cc:12061(login_failed_error)[0x976ef7]
      sql/sql_acl.cc:1453(ACL_ROLE)[0x97910f]
      sql/sql_acl.cc:13654(old_password_authenticate)[0x979c7c]
      sql/sql_string.h:346(~String)[0x97b1ed]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z21mysql_execute_commandP3THD+0x363f)[0x5f023f]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN18Prepared_statement7executeEP6Stringb+0x4d5)[0x6079d5]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN18Prepared_statement12execute_loopEP6StringbPhS2_+0x9e)[0x60d9ee]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z22mysql_sql_stmt_executeP3THD+0x149)[0x60e2d9]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z21mysql_execute_commandP3THD+0x336c)[0x5eff6c]
      sql/log_event.h:1345(Log_event::write_footer())[0x97603e]
      sql/sql_acl.cc:12061(login_failed_error)[0x976ef7]
      sql/sql_acl.cc:1453(ACL_ROLE)[0x97910f]
      sql/sql_acl.cc:13654(old_password_authenticate)[0x979c7c]
      sql/sql_string.h:346(~String)[0x97b1ed]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z21mysql_execute_commandP3THD+0x363f)[0x5f023f]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN18Prepared_statement7executeEP6Stringb+0x4d5)[0x6079d5]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN18Prepared_statement12execute_loopEP6StringbPhS2_+0x9e)[0x60d9ee]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld[0x60e5a7]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z19mysqld_stmt_executeP3THDPcj+0x28)[0x60e718]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0x2355)[0x5fa725]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z10do_commandP3THD+0x165)[0x5fb465]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z24do_handle_one_connectionP7CONNECT+0x235)[0x6e3a55]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(handle_one_connection+0x3f)[0x6e3c1f]
      sql/sql_repl.cc:2713(mysql_binlog_send(THD*, char*, unsigned long long, unsigned short))[0xa15919]
      /lib64/libpthread.so.0[0x36d5807aa1]
      /lib64/libc.so.6(clone+0x6d)[0x36d54e8bcd]
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7fe5fd9132c0): 
      analyze
      UPDATE qt_entry et                      
        left join if_xximpm_cc_completion_r r
        on et.IMP_IF_REC_SEQ = r.REC_SEQ
        SET et.DIVISION_CODE = QT_GET_DIVISION_BY_MODEL(r.item_no),
            et.SUBSIDIARY_CODE = QT_GET_CORP_BY_ORG_ID(r.OPERATION_UNIT_ID),
        et.AU_CODE = QT_GET_AU_OF_CORP(QT_GET_CORP_BY_ORG_ID(r.OPERATION_UNIT_ID)),
        et.DECLARATION_YMD = DATE_FORMAT(r.IMPORT_DECLARATION_COMPLT_DATE,'%Y%m%d'),
        et.COMPLETE_YMD = DATE_FORMAT(r.CC_COMPLETION_TRANSACTION_DATE,'%Y%m%d'),
        et.ITEM_NO = r.ITEM_NO,
        et.DESTINATION_PORT  = QT_GET_NTH_FIELD(r.ATTRIBUTE11,1,':'),
        et.HOUSE_BL_NO = r.HOUSE_BL_NO,
        et.IMPORT_DECLARATION_NO = r.ATTRIBUTE1,
        et.INVOICE_NO = r.ATTRIBUTE3,
        et.SHIPMENT_LINE_ID = r.CC_SHIPMENT_LINE_ID,
        et.FILE_NO = r.FILE_NO,
        et.REFRIGERANTS_CODE = QT_GET_MODEL_REFRIG_TYPE(r.item_no),
        et.REFRIGERANTS_QTY = QT_GET_MODEL_REFRIG_QTY(r.item_no),
        et.CURRENCY_CODE = r.SHIPMENT_CURRENCY_CODE,
        et.CC_QTY = r.CUSTOMS_CLEARANCE_QTY,
        et.UPDT_DT = NOW(),
        et.UPDT_ID = 'RQMS_INF',
        et.GWP = (SELECT mm.gwp FROM v_model_master MM
                        where MM.MODEL_SUFFIX = r.item_no), -- GWP
        et.ORGANIZATION_CODE = r.ORGANIZATION_CODE
        WHERE et.IMP_IF_REC_SEQ =  NAME_CONST('rech_REC_SEQ',232772);
      Connection ID (thread ID): 54346
      Status: NOT_KILLED
       
      Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,
      index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,
      derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,
      partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,
      outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,
      optimize_join_buffer_size=off,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,
      condition_pushdown_for_derived=on
      

      Occurance frequency reduced, but I still cannot determine root cause of this crash.

      DB/Table configuration has no problem and the result of analyzing table may have no issue.

      ######
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 408925 Kbytes = 399.34Mbytes of memory
      Hope that's ok; if not, decrease some variables in the equation.

      My DB : 128M + (128K + 128K) * 1000 = 128M + 256M = 384M
      ######

      Any suggestion or advice is highly appreciated.

      If you want to get more information, please let me know.

      Thank you!

      (Previously posted issue)
      =======================================================
      Hello,

      Database engine has been crashed and automatically restarted. Problem is being occured 2~3 times per week. I found error details on error log as below.

      180921 10:24:04 [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.8-MariaDB-log
      key_buffer_size=134217728
      read_buffer_size=131072
      max_used_connections=15
      max_threads=1002
      thread_count=22
      It is possible that mysqld could use up to
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 408761 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x7ff1e80009a8
      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 = 0x7ff398351e18 thread_stack 0x49000
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(my_print_stacktrace+0x2e)[0xde62fe]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(handle_fatal_signal+0x444)[0x7dbcc4]
      /lib64/libpthread.so.0[0x36d580f7e0]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN8Item_row10fix_fieldsEP3THDPP4Item+0xd0)[0x8993e0]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN17Item_in_optimizer8fix_leftEP3THD+0x242)[0x820d52]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN17Item_in_optimizer10fix_fieldsEP3THDPP4Item+0x49)[0x822969]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN9Item_cond10fix_fieldsEP3THDPP4Item+0x19a)[0x82c57a]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN9Item_func10fix_fieldsEP3THDPP4Item+0x1d4)[0x8659d4]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN13Item_func_not10fix_fieldsEP3THDPP4Item+0x320)[0x82e8d0]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN9Item_cond10fix_fieldsEP3THDPP4Item+0x19a)[0x82c57a]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z11setup_condsP3THDP10TABLE_LISTR4ListIS1_EPP4Item+0x204)[0x597df4]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN4JOIN7prepareEP10TABLE_LISTjP4ItemjP8st_orderbS5_S3_S5_P13st_select_lexP18st_select_lex_unit+0x5a1)[0x63c8d1]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z12mysql_selectP3THDP10TABLE_LISTjR4ListI4ItemEPS4_jP8st_orderS9_S7_S9_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x9cd)[0x64d43d]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x254)[0x64e884]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld[0x5e6e42]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z21mysql_execute_commandP3THD+0x1688)[0x5ea218]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z17mysql_open_cursorP3THDP13select_resultPP18Server_side_cursor+0x156)[0x97e046]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN9sp_cursor4openEP3THD+0x1e)[0x96ebfe]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN14sp_instr_copen9exec_coreEP3THDPj+0x30)[0x963250]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN13sp_lex_keeper23reset_lex_and_exec_coreEP3THDPjbP8sp_instr+0xa2)[0x963b02]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN14sp_instr_copen7executeEP3THDPj+0x63)[0x963e13]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN7sp_head7executeEP3THDb+0x4be)[0x965a6e]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN7sp_head17execute_procedureEP3THDP4ListI4ItemE+0x61d)[0x9692dd]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z21mysql_execute_commandP3THD+0x25c8)[0x5eb158]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN18Prepared_statement7executeEP6Stringb+0x49c)[0x60393c]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN18Prepared_statement12execute_loopEP6StringbPhS2_+0xb1)[0x609061]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z22mysql_sql_stmt_executeP3THD+0x10e)[0x6097be]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z21mysql_execute_commandP3THD+0x1e9e)[0x5eaa2e]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN13sp_instr_stmt9exec_coreEP3THDPj+0x1e)[0x962a8e]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN13sp_lex_keeper23reset_lex_and_exec_coreEP3THDPjbP8sp_instr+0xa2)[0x963b02]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN13sp_instr_stmt7executeEP3THDPj+0x51e)[0x96687e]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN7sp_head7executeEP3THDb+0x4be)[0x965a6e]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN7sp_head17execute_procedureEP3THDP4ListI4ItemE+0x61d)[0x9692dd]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z21mysql_execute_commandP3THD+0x25c8)[0x5eb158]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN18Prepared_statement7executeEP6Stringb+0x49c)[0x60393c]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_ZN18Prepared_statement12execute_loopEP6StringbPhS2_+0xb1)[0x609061]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld[0x6099b6]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z19mysqld_stmt_executeP3THDPcj+0x28)[0x609b18]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0x20bd)[0x5f619d]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z10do_commandP3THD+0x15d)[0x5f782d]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(_Z24do_handle_one_connectionP7CONNECT+0x235)[0x6db3d5]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld(handle_one_connection+0x3f)[0x6db59f]
      /engn001/masvc01/RQMSP/mysql/bin/mysqld[0xa01c79]
      /lib64/libpthread.so.0[0x36d5807aa1]
      /lib64/libc.so.6(clone+0x6d)[0x36d54e8bcd]
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7ff1e903bd90): call QT_CLOSING_PROC
      Connection ID (thread ID): 17
      Status: NOT_KILLED
       
      Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on
       
      ========================================
      By equation on error log, my DB is satisfying condition.
       
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 408761 K 
      131072 + (128 + 128) * 1002 = 131072 + 256 * 1002 = 131072 + 256512 = 387584K < 408761K
       
      
      

      Any suggestion or comment is highly appreciated.

      Thank you and have a good day!

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              csk6210 SKCHOI
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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