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

handler::ha_index_read_map crash

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Incomplete
    • 10.11.5
    • N/A
    • Optimizer

    Description

      Hello Team

      We are facing many restart in the DBs. the last one was yesterday, as checked in the mysqld.log, the DB got signal 11 (SIGSEGV) that's why it was restarted it could be a bug. see details below and the version of mariadb (see attached the complete logs)

      250513 13:20:17 [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.11.5-MariaDB-log source revision: 7875294b6b74b53dd3aaa723e6cc103d2bb47b2c
      key_buffer_size=67108864
      read_buffer_size=131072
      max_used_connections=23
      max_threads=802
      thread_count=37
      It is possible that mysqld could use up to
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 1831964 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x7f30dc000c58
      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 = 0x7f325c280b98 thread_stack 0x49000
      /usr/sbin/mariadbd(my_print_stacktrace+0x2e)[0x55d98923612e]
      /usr/sbin/mariadbd(handle_fatal_signal+0x485)[0x55d988d2f5b5]
      /lib64/libpthread.so.0(+0x12d40)[0x7f585b34bd40]
      /usr/sbin/mariadbd(handler::ha_index_read_map(unsigned char*, unsigned char const*, unsigned long, ha_rkey_function)+0x2f0)[0x55d988d36890]
      /usr/sbin/mariadbd(+0xc37600)[0x55d988f2b600]
      /usr/sbin/mariadbd(handler::ha_index_read_map(unsigned char*, unsigned char const*, unsigned long, ha_rkey_function)+0x298)[0x55d988d36838]
      /usr/sbin/mariadbd(+0x854578)[0x55d988b48578]
      /usr/sbin/mariadbd(sub_select(JOIN*, st_join_table*, bool)+0x1a2)[0x55d988b33322]
      /usr/sbin/mariadbd(JOIN::exec_inner()+0xe59)[0x55d988b5f579]
      /usr/sbin/mariadbd(JOIN::exec()+0x37)[0x55d988b5f837]
      /usr/sbin/mariadbd(st_select_lex_unit::exec()+0x474)[0x55d988baa8a4]
      /usr/sbin/mariadbd(+0x7b6396)[0x55d988aaa396]
      /usr/sbin/mariadbd(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int)+0x99)[0x55d988aa9d69]
      /usr/sbin/mariadbd(st_join_table::preread_init()+0x74)[0x55d988b33064]
      /usr/sbin/mariadbd(sub_select(JOIN*, st_join_table*, bool)+0xa3)[0x55d988b33223]
      /usr/sbin/mariadbd(JOIN::exec_inner()+0xe59)[0x55d988b5f579]
      /usr/sbin/mariadbd(JOIN::exec()+0x37)[0x55d988b5f837]
      /usr/sbin/mariadbd(mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*)+0x11f)[0x55d988b5db8f]
      /usr/sbin/mariadbd(handle_select(THD*, LEX*, select_result*, unsigned long long)+0x14b)[0x55d988b5e31b]
      /usr/sbin/mariadbd(+0x7f26d2)[0x55d988ae66d2]
      /usr/sbin/mariadbd(mysql_execute_command(THD*, bool)+0x126d)[0x55d988aeebca]
      /usr/sbin/mariadbd(mysql_parse(THD*, char*, unsigned int, Parser_state*)+0x25c)[0x55d988ae1b87]
      /usr/sbin/mariadbd(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool)+0x1080)[0x55d988aeb6e6]
      /usr/sbin/mariadbd(do_command(THD*, bool)+0x12f)[0x55d988aecdab]
      /usr/sbin/mariadbd(do_handle_one_connection(CONNECT*, bool)+0x3f7)[0x55d988c00977]
      /usr/sbin/mariadbd(handle_one_connection+0x5d)[0x55d988c00cbd]
      /usr/sbin/mariadbd(+0xc42c9d)[0x55d988f36c9d]
      /lib64/libpthread.so.0(+0x81da)[0x7f585b3411da]
      /lib64/libc.so.6(clone+0x43)[0x7f585a692e73]
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7f30dc012ee0): SELECT USER_NAME,NAS_IP,ERROR_TIME,PASSWORDTYPED,case when ERROR_MSG='USER_NOT_FOUND' then 'Invalid User' when ERROR_MSG='USER_BARRED' then 'User Suspended' when ERROR_MSG='INVALID_PASSWORD' then 'Invalid Password' else ERROR_MSG end as ERROR_MSG from vw_aaa_auth_errorlogsmp where USER_NAME='100323179535' LIMIT 10
      

      In the var/log/messages (see attached the complete log), we found the below kernel error:

      May 13 13:20:40 ALEPO-REPORTING-DB-ILB kernel: traps: mariadbd[2795136] general protection fault ip:55d988d36890 sp:7f325c27eb60 error:0 in mariadbd[55d9882f4000+16fd000]
      

      see below the version of mariadb and see attached the my.cnf file

      MariaDB [aaa_reporting]> select version();
      +---------------------+
      | version()           |
      +---------------------+
      | 10.11.5-MariaDB-log |
      +---------------------+
      1 row in set (0.000 sec)
      

      Attachments

        1. my.cnf
          5 kB
        2. mysqld.log.log
          12 kB
        3. messages_130525
          37 kB
        4. aaa_reporting.authenticationlog.sql
          225 kB
        5. aaadb.authenticationlog.sql
          217 kB

        Activity

          People

            Roel Roel Van de Paar
            Gian Franco Gian Franco Arqque Quispe
            Votes:
            0 Vote for this issue
            Watchers:
            6 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.