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

Crash, got signal 11 on query execution

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 11.4.2, 11.4.3
    • None
    • Server
    • Docker Deployment under RHEL 8

    Description

      Problem

      We deploy MariaDB via Docker with a Memory Limit of 30GB. It is used for a nightly batch ETL workload that creates many tables and loads data into those tables via "LOAD DATA INFILE" and then running analytical queries on those tables.

      There is a specific query that after the second execution seems to crash MariaDB 11.4.2.

      We see this problem on 2 environments we deploy the same workload: One is the aforementioned Docker deployment on RHEL 8 - another is a deployment on RedHat OpenShift. So the issue does not seem to be platform dependent.

      Output when it crashes:

      240805  9:40:53 [ERROR] mysqld got signal 11 ;
      Sorry, we probably made a mistake, and this is a bug.Your assistance in bug reporting will enable us to fix this for the next release.
      To report this bug, see https://mariadb.com/kb/en/reporting-bugsWe 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: 11.4.2-MariaDB-ubu2404 source revision: 3fca5ed772fb75e3e57c507edef2985f8eba5b12
      key_buffer_size=4294967296
      read_buffer_size=131072
      max_used_connections=13
      max_threads=153
      thread_count=13
      It is possible that mysqld could use up to
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 4531298 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.Thread pointer: 0x7f5c30000c68
      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 = 0x7f5c6c142ca8 thread_stack 0x49000
      Printing to addr2line failed
      mariadbd(my_print_stacktrace+0x32)[0x55f3befd3a92]
      mariadbd(handle_fatal_signal+0x2b3)[0x55f3bea959c3]
      /lib/x86_64-linux-gnu/libc.so.6(+0x45320)[0x7f5d7cf49320]
      mariadbd(_ZN11sp_rcontext14init_var_itemsEP3THDR4ListI16Spvar_definitionE+0x13d)[0x55f3be75f0fd]
      mariadbd(_ZN11sp_rcontext6createEP3THDP7sp_headPK11sp_pcontextP5FieldR19Row_definition_list+0xd2)[0x55f3be75f3a2]
      mariadbd(_ZN7sp_head15rcontext_createEP3THDP5FieldP4ListI4ItemE+0x7d)[0x55f3be7558dd]
      mariadbd(_ZN7sp_head17execute_procedureEP3THDP4ListI4ItemE+0x4e4)[0x55f3be7565d4]
      mariadbd(+0x863717)[0x55f3be801717]
      mariadbd(_ZN12Sql_cmd_call7executeEP3THD+0x183)[0x55f3be805f63]
      mariadbd(_Z21mysql_execute_commandP3THDb+0xe86)[0x55f3be80d386]
      mariadbd(_Z11mysql_parseP3THDPcjP12Parser_state+0x1ce)[0x55f3be811bae]
      mariadbd(_Z16dispatch_command19enum_server_commandP3THDPcjb+0x1715)[0x55f3be814595]
      mariadbd(_Z10do_commandP3THDb+0x13a)[0x55f3be81623a]
      mariadbd(_Z24do_handle_one_connectionP7CONNECTb+0x3b7)[0x55f3be94b4e7]
      mariadbd(handle_one_connection+0x5d)[0x55f3be94b85d]
      mariadbd(+0xd2ab38)[0x55f3becc8b38]
      /lib/x86_64-linux-gnu/libc.so.6(+0x9ca94)[0x7f5d7cfa0a94]
      /lib/x86_64-linux-gnu/libc.so.6(__clone+0x44)[0x7f5d7d02da34]Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7f5c30010b40): call execute_sql()Connection ID (thread ID): 4
      Status: NOT_KILLEDOptimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=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,hash_join_cardinality=on,cset_narrowing=off,sargable_casefold=onThe manual page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mariadbd/ 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        unlimited            unlimited            bytes
      Max resident set          unlimited            unlimited            bytes
      Max processes             unlimited            unlimited            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       384441               384441               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: |/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %eKernel version: Linux version 4.18.0-553.5.1.el8_10.x86_64 (mockbuild@x86-vm-09.brew-001.prod.iad2.dc.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-22) (GCC)) #1 SMP Tue May 21 03:13:04 EDT 2024
      

      Attachments

        Activity

          People

            ramesh Ramesh Sivaraman
            darionuevo Dario Nuevo
            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.