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

Mariadb signal11 crash and restart after select

    XMLWordPrintable

    Details

      Description

      Hi, I might an issue with my PROD database.
      The database crashed with signal 11 and then restarted.
      Below is the related alert message and gdb backtrace. anyone can help with this?
      Thank you

      the SQL statement below is not a one time query, it will take exec lots of times per hour

      220517 15:00:51 [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.4.18-MariaDB-log
      key_buffer_size=10485760
      read_buffer_size=131072
      max_used_connections=457
      max_threads=2051
      thread_count=27
      It is possible that mysqld could use up to
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 8725647 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x5625418f2008
      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 = 0x7f8d7e372bd8 thread_stack 0x49000
      mysys/stacktrace.c:175(my_print_stacktrace)[0x5624e7cd3dd9]
      sql/signal_handler.cc:209(handle_fatal_signal)[0x5624e77fcc3f]
      /lib64/libpthread.so.0(+0xf630)[0x7f8d97276630]
      bits/string3.h:51(memcpy)[0x5624e7bfd160]
      maria/ma_blockrec.c:3564(allocate_and_write_block_record)[0x5624e7bfe206]
      maria/ma_write.c:157(maria_write)[0x5624e7c05a34]
      sql/sql_class.h:6638(handler::ha_write_tmp_row(unsigned char*))[0x5624e7663a80]
      sql/sql_select.cc:21833(end_write(JOIN*, st_join_table*, bool))[0x5624e764f3d7]
      sql/sql_class.h:3908(THD::get_stmt_da())[0x5624e7631967]
      sql/sql_select.cc:20413(sub_select(JOIN*, st_join_table*, bool))[0x5624e763eec6]
      sql/sql_class.h:3908(THD::get_stmt_da())[0x5624e7631967]
      sql/sql_select.cc:20413(sub_select(JOIN*, st_join_table*, bool))[0x5624e763eec6]
      sql/sql_select.cc:19944(do_select)[0x5624e766147a]
      sql/sql_select.cc:4269(JOIN::exec())[0x5624e7661694]
      sql/sql_select.cc:4705(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x5624e765f940]
      sql/sql_select.cc:422(handle_select(THD*, LEX*, select_result*, unsigned long))[0x5624e76604df]
      sql/sql_parse.cc:6419(execute_sqlcom_select(THD*, TABLE_LIST*))[0x5624e750963f]
      sql/sql_parse.cc:3937(mysql_execute_command(THD*))[0x5624e7609f2a]
      sql/sql_parse.cc:7960(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x5624e760f4d6]
      sql/sql_parse.cc:1917(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x5624e7611864]
      sql/sql_parse.cc:1374(do_command(THD*))[0x5624e7612bd0]
      sql/threadpool_common.cc:373(threadpool_process_request)[0x5624e77d1ebf]
      sql/threadpool_generic.cc:1605(worker_main(void*))[0x5624e796e23e]
      perfschema/pfs.cc:1872(pfs_spawn_thread)[0x5624e7c96184]
      pthread_create.c:0(start_thread)[0x7f8d9726eea5]
      /lib64/libc.so.6(clone+0x6d)[0x7f8d94fe39fd]
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x56253f542820): SELECT
                         A.TR_ID,
                         A.SVC_TR_ID,
                     A.INTER_AUTH_TOKEN,
                     A.RESLT_CD FINAL_RESLT_CD,
                     TIMESTAMPDIFF(SECOND, NOW(), STR_TO_DATE(A.expire_dt, '%Y%m%d%H%i%s')) AS avlbl_time,
                     B.RESLT_CD,
                     B.RESLT_MSG,
                     A.DEVICE_MNGT_ID,
                     A.BIZ_REQ_TYPE,
                     B.EXECT_TYPE,
                     B.EXECT_ORDER,
                     B.APD_EXECT_TYPE,
                     B.APD_EXECT_ORDER,
                     A.SVC_TR_CHALLENGE,
                     B.TR_PLAIN,
                     B.TR_PLAIN1,
                     B.TR_PLAIN2,
                     B.TR_PLAIN3,
                     B.TR_PLAIN4,
                     B.TR_PLAIN5,
                      B.TR_SIGN,
                     B.TR_SIGN1,
                     B.TR_SIGN2,
                     B.TR_SIGN3,
                     B.TR_SIGN4,
                     B.TR_SIGN5,
                     A.POLICY_ID,
                     A.SITE_ID,
                     A.SVC_ID,
                     B.AAID,
                     A.USER_ID,
                     A.CUST_MNGT_ID,
                                 A.REQ_PROTOCOL_TYPE,
                                 A.TRAN_DATA_TYPE,
                                 A.APP_PKG_NM,
                                 A.FACET_ID,
                                 A.KEY_ID
                FROM OP_SESSION_MNGT A, OP_SESSION_JOB_LIST B
                WHERE 1 = 1
                      AND  A.TR_ID = 'here is a number I masked'
                          AND A.TR_ID = B.TR_ID
                      ORDER BY A.TR_ID, B.EXECT_ORDER ASC
       
      Connection ID (thread ID): 76621082
      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=on,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=on,mrr_cost_based=on,mrr_sort_keys=on,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=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on
      

      GDB backtrace

      [Thread debugging using libthread_db enabled]
      Using host libthread_db library "/lib64/libthread_db.so.1".
      Core was generated by `/opt/maria10.1/bin/mysqld'.
      Program terminated with signal 11, Segmentation fault.
      #0  0x00007f8d94fd8ccd in poll () from /lib64/libc.so.6
      Missing separate debuginfos, use: debuginfo-install bits-mariadb-galera-rac-2.4.4-1.x86_64
      (gdb) bt
      #0  0x00007f8d94fd8ccd in poll () from /lib64/libc.so.6
      #1  0x00005624e7554409 in poll (__timeout=-1, __nfds=2, __fds=0x7ffcea0612e0) at /usr/include/bits/poll2.h:41
      #2  handle_connections_sockets () at /data/rpm/source/mariadb-10.4.18/sql/mysqld.cc:6465
      #3  0x00005624e75570bd in mysqld_main (argc=147, argv=0x5624eae3e668) at /data/rpm/source/mariadb-10.4.18/sql/mysqld.cc:5901
      #4  0x00007f8d94f07555 in __libc_start_main () from /lib64/libc.so.6
      #5  0x00005624e754b6e7 in _start ()
      
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            yongjian.wu yongjian.wu
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.