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

MariaDB 10.5.6-4 crash (signal 7) during a SELECT

    XMLWordPrintable

Details

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

    Description

      240609 23:26:21 [ERROR] mysqld got signal 7 ;
      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.5.6-4-MariaDB-enterprise-log
      key_buffer_size=134217728
      read_buffer_size=131072
      max_used_connections=350
      max_threads=153
      thread_count=249
      It is possible that mysqld could use up to
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 489095 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x7f138c04b618
      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 = 0x7f13c0de3c90 thread_stack 0x49000
      /usr/sbin/mariadbd(my_print_stacktrace+0x2e)[0x5652a75b451e]
      /usr/sbin/mariadbd(handle_fatal_signal+0x307)[0x5652a6f7fc47]
      sigaction.c:0(__restore_rt)[0x7f19fc2905d0]
      /usr/sbin/mariadbd(+0xd37b94)[0x5652a7342b94]
      ??:0(void std::__introsort_loop<unsigned char**, long>(unsigned char**, unsigned char**, long))[0x5652a73114a2]
      ??:0(std::unique_lock<std::mutex>::unlock())[0x5652a74246a9]
      ??:0(std::pair<std::_Rb_tree_iterator<unsigned int>, bool> std::_Rb_tree<unsigned int, unsigned int, std::_Identity<unsigned int>, std::less<unsigned int>, std::allocator<unsigned int> >::_M_insert_unique<unsigned int const&>(unsi
      gned int const&))[0x5652a73943cb]
      ??:0(void std::__introsort_loop<unsigned char**, long>(unsigned char**, unsigned char**, long))[0x5652a72a00af]
      ??:0(wsrep_notify_status(wsrep::server_state::state, wsrep::view const*))[0x5652a6f85688]
      ??:0(handler::ha_index_read_map(unsigned char*, unsigned char const*, unsigned long, ha_rkey_function))[0x5652a6dbb05a]
      ??:0(join_read_key2(THD*, st_join_table*, TABLE*, st_table_ref*))[0x5652a6dade1a]
      ??:0(sub_select(JOIN*, st_join_table*, bool))[0x5652a6da84bc]
      ??:0(Item_cond_and::build_equal_items(THD*, COND_EQUAL*, bool, COND_EQUAL**))[0x5652a6dade8d]
      ??:0(sub_select(JOIN*, st_join_table*, bool))[0x5652a6ddcaaf]
      ??:0(JOIN::exec_inner())[0x5652a6ddcd13]
      ??:0(JOIN::exec())[0x5652a6ddaed6]
      ??:0(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*))[0x5652a6ddba3c]
      ??:0(handle_select(THD*, LEX*, select_result*, unsigned long))[0x5652a6c411bb]
      /usr/sbin/mariadbd(_Z21mysql_execute_commandP3THD+0x37ad)[0x5652a6d80a0d]
      ??:0(mysql_execute_command(THD*))[0x5652a6d83845]
      ??:0(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x5652a6d859e3]
      ??:0(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x5652a6d86fab]
      ??:0(do_command(THD*))[0x5652a6e70fd9]
      ??:0(do_handle_one_connection(CONNECT*, bool))[0x5652a6e71274]
      ??:0(handle_one_connection)[0x5652a71f3c5d]
      /lib64/libpthread.so.0(+0x7dd5)[0x7f19fc288dd5]
      /lib64/libc.so.6(clone+0x6d)[0x7f19fa423ead]
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7f138c073350): select             childNode.id             as id,             childNode.version        as version,             childStore.id            as store_id,             childStore.protocol      as protocol,             childStore.identifier    as identifier,             childNode.uuid           as uuid,             childNode.type_qname_id  as type_qname_id,             childNode.locale_id      as locale_id,             childNode.acl_id         as acl_id,             childTxn.id              as txn_id,             childTxn.change_txn_id   as txn_change_id,             childNode.audit_creator  as audit_creator,             childNode.audit_created  as audit_created,             childNode.audit_modifier as audit_modifier,             childNode.audit_modified as audit_modified,             childNode.audit_accessed  as audit_accessed                         , prop1.node_id            as prop1_node_id,             prop1.qname_id           as prop1_qname_id,             prop1.locale_id          as prop1_locale_id,             prop1.list_index         as prop1_list_index,             prop1.actual_type_n      as prop1_actual_type_n,             prop1.persisted_type_n   as prop1_persisted_type_n,             prop1.boolean_value      as prop1_boolean_value,             prop1.long_value         as prop1_long_value,             prop1.float_value        as prop1_float_value,             prop1.double_value       as prop1_double_value,             prop1.string_value       as prop1_string_value                                                   from             alf_child_assoc assoc             join alf_node childNode on (childNode.id = assoc.child_node_id)             left join alf_store childStore on (childStore.id = childNode.store_id)             join alf_transaction childTxn on (childTxn.id = childNode.transaction_id)                           left join alf_node_properties prop1 on (prop1.node_id = childNode.id and prop1.qname_id = 26)                                                                 where             assoc.parent_node_id = 15122177                                         and childNode.type_qname_id in                   (                       141                  ,                      24                  ,                      32                  ,                      164                  ,                      46                  ,                      47                  ,                      305                  ,                      51                  ,                      66                  ,                      199                  ,                      72                  ,                      75                  ,                      203                  ,                      205                  ,                      79                  ,                      81                  ,                      212                  ,                      347                  ,                      91                  ,                      349                  ,                      97                  ,                      230                  ,                      103                  ,                      106                  )
      Connection ID (thread ID): 361169
      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=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,not_null_range_scan=off
       
      The manual page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mysqld/ contains
      information that should help you find out what is causing the crash.
      Writing a core file...
      Working directory at /var/lib/mysql
      Resource Limits:
      Limit                     Soft Limit           Hard Limit           Units
      Max cpu time              unlimited            unlimited            seconds
      Max file size             unlimited            unlimited            bytes
      Max data size             unlimited            unlimited            bytes
      Max stack size            8388608              unlimited            bytes
      Max core file size        0                    unlimited            bytes
      Max resident set          unlimited            unlimited            bytes
      Max processes             510820               510820               processes
      Max open files            1048576              1048576              files
      Max locked memory         65536                65536                bytes
      Max address space         unlimited            unlimited            bytes
      Max file locks            unlimited            unlimited            locks
      Max pending signals       510820               510820               signals
      Max msgqueue size         819200               819200               bytes
      Max nice priority         0                    0
      Max realtime priority     0                    0
      Max realtime timeout      unlimited            unlimited            us
      Core pattern: core
       
      2024-06-09 23:26:35 0 [Note] mariadbd: Aria engine: starting recovery
      recovered pages: 0% 31% 43% 100% (0.0 seconds); tables to flush: 1 0
       (0.0 seconds);
      2024-06-09 23:26:35 0 [Note] mariadbd: Aria engine: recovery done
      2024-06-09 23:26:35 0 [Note] InnoDB: Using Linux native AIO
      2024-06-09 23:26:35 0 [Note] InnoDB: Uses event mutexes
      2024-06-09 23:26:35 0 [Note] InnoDB: Compressed tables use zlib 1.2.7
      2024-06-09 23:26:35 0 [Note] InnoDB: Number of pools: 1
      2024-06-09 23:26:35 0 [Note] InnoDB: Using SSE4.2 crc32 instructions
      2024-06-09 23:26:35 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
      2024-06-09 23:26:35 0 [Note] InnoDB: Initializing buffer pool, total size = 25769803776, chunk size = 134217728
      2024-06-09 23:26:36 0 [Note] InnoDB: Completed initialization of buffer pool
      2024-06-09 23:26:36 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
      2024-06-09 23:26:36 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=1411131456673
      2024-06-09 23:26:36 0 [Note] InnoDB: Transaction 741851457 was in the XA prepared state.
      2024-06-09 23:26:36 0 [Note] InnoDB: 1 transaction(s) which must be rolled back or cleaned up in total 0 row operations to undo
      2024-06-09 23:26:36 0 [Note] InnoDB: Trx id counter is 741851458
      2024-06-09 23:26:36 0 [Note] InnoDB: Starting final batch to recover 4 pages from redo log.
      2024-06-09 23:26:36 0 [Note] InnoDB: Last binlog file './mariadb-bin.001847', position 122613055
      2024-06-09 23:26:36 0 [Note] InnoDB: 128 rollback segments are active.
      2024-06-09 23:26:36 0 [Note] InnoDB: Starting in background the rollback of recovered transactions
      2024-06-09 23:26:36 0 [Note] InnoDB: Rollback of non-prepared transactions completed
      2024-06-09 23:26:36 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
      2024-06-09 23:26:36 0 [Note] InnoDB: Creating shared tablespace for temporary tables
      2024-06-09 23:26:36 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
      2024-06-09 23:26:36 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
      2024-06-09 23:26:36 0 [Note] InnoDB: 10.5.6 started; log sequence number 1411131457072; transaction id 741851460
      2024-06-09 23:26:36 0 [Note] Plugin 'FEEDBACK' is disabled.
      2024-06-09 23:26:36 server_audit: MariaDB Audit Plugin version 2.0.2 STARTED.
      2024-06-09 23:26:36 server_audit: Query cache is enabled with the TABLE events. Some table reads can be veiled.
      2024-06-09 23:26:36 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
      2024-06-09 23:26:36 0 [Note] Recovering after a crash using mariadb-bin
      2024-06-09 23:26:37 0 [Note] Starting crash recovery...
      2024-06-09 23:26:37 0 [Note] InnoDB: Starting recovery for XA transactions...
      2024-06-09 23:26:37 0 [Note] InnoDB: Transaction 741851457 in prepared state after recovery
      2024-06-09 23:26:37 0 [Note] InnoDB: Transaction contains changes to 1 rows
      2024-06-09 23:26:37 0 [Note] InnoDB: 1 transactions in prepared state after recovery
      2024-06-09 23:26:37 0 [Note] Found 1 prepared transaction(s) in InnoDB
      2024-06-09 23:26:37 0 [Note] Crash recovery finished.
      2024-06-09 23:26:37 0 [Note] Server socket created on IP: '::'.
      2024-06-09 23:26:37 0 [Note] Reading of all Master_info entries succeeded
      2024-06-09 23:26:37 0 [Note] Added new Master_info '' to hash table
      2024-06-09 23:26:37 0 [Note] /usr/sbin/mariadbd: ready for connections.
      Version: '10.5.6-4-MariaDB-enterprise-log'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MariaDB Enterprise Server

      Attachments

        Activity

          People

            Unassigned Unassigned
            Isaac Lencoe Isaac Lencoe
            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.