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

Mariadb process crashes when running a simple join query

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 11.2.3
    • N/A
    • Server

    Description

      Hi, weird thing happened today. Running that one particular query crashes the process.
      When I delete the record that would be affected directly, no problem happens and then this query runs ok.

      Below is an error log.

      This happens locally when running mariadb in the container and on the server as well, where mariadb is installed as a standard service via PPA repository.

      2024-02-22  8:48:12 0 [Note] Starting MariaDB 11.2.3-MariaDB-1:11.2.3+maria~ubu2204 source revision 79580f4f96fc2547711f674eb8dd514abd312b4a as process 1
      2024-02-22  8:48:12 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
      2024-02-22  8:48:12 0 [Note] InnoDB: Number of transaction pools: 1
      2024-02-22  8:48:12 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
      2024-02-22  8:48:12 0 [Warning] mariadbd: io_uring_queue_init() failed with errno 1
      2024-02-22  8:48:12 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF
      2024-02-22  8:48:12 0 [Note] InnoDB: Initializing buffer pool, total size = 4.000GiB, chunk size = 64.000MiB
      2024-02-22  8:48:12 0 [Note] InnoDB: Completed initialization of buffer pool
      2024-02-22  8:48:12 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
      2024-02-22  8:48:12 0 [Note] InnoDB: Resetting space id's in the doublewrite buffer
      2024-02-22  8:48:12 0 [Note] InnoDB: End of log at LSN=327821752784
      2024-02-22  8:48:12 0 [Note] InnoDB: Opened 3 undo tablespaces
      2024-02-22  8:48:12 0 [Note] InnoDB: 128 rollback segments in 3 undo tablespaces are active.
      2024-02-22  8:48:12 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
      2024-02-22  8:48:12 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
      2024-02-22  8:48:12 0 [Note] InnoDB: log sequence number 327821752784; transaction id 1563216
      2024-02-22  8:48:12 0 [Note] Plugin 'FEEDBACK' is disabled.
      2024-02-22  8:48:12 0 [Note] Plugin 'wsrep-provider' is disabled.
      2024-02-22  8:48:12 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
      2024-02-22  8:48:12 0 [Note] Server socket created on IP: '0.0.0.0'.
      2024-02-22  8:48:12 0 [Note] Server socket created on IP: '::'.
      2024-02-22  8:48:12 0 [Note] mariadbd: Event Scheduler: Loaded 0 events
      2024-02-22  8:48:12 0 [Note] mariadbd: ready for connections.
      Version: '11.2.3-MariaDB-1:11.2.3+maria~ubu2204'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
      2024-02-22  8:48:13 0 [Note] InnoDB: Buffer pool(s) load completed at 240222  8:48:13
      240222  8:49:04 [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-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: 11.2.3-MariaDB-1:11.2.3+maria~ubu2204 source revision: 79580f4f96fc2547711f674eb8dd514abd312b4a
      key_buffer_size=134217728
      read_buffer_size=131072
      max_used_connections=2
      max_threads=38
      thread_count=2
      It is possible that mysqld could use up to 
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 292580 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x7ff1fc000c68
      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 = 0x7ff34c15fc38 thread_stack 0x49000
      Printing to addr2line failed
      mariadbd(my_print_stacktrace+0x32)[0x5650029bbd02]
      mariadbd(handle_fatal_signal+0x478)[0x56500248e968]
      /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7ff364ee9520]
      mariadbd(handler_rowid_filter_check+0x58)[0x56500249ca38]
      mariadbd(+0xe82984)[0x565002844984]
      mariadbd(+0xe861c7)[0x5650028481c7]
      mariadbd(+0xdc12ac)[0x5650027832ac]
      mariadbd(_ZN7handler10ha_rnd_posEPhS0_+0x2da)[0x56500249669a]
      mariadbd(_Z16rr_from_pointersP11READ_RECORD+0x3c)[0x56500213b07c]
      mariadbd(_ZN12multi_delete16do_table_deletesEP5TABLEP9SORT_INFOb+0x98)[0x5650021c4048]
      mariadbd(_ZN12multi_delete10do_deletesEv+0x88)[0x5650021c4308]
      mariadbd(_ZN12multi_delete8send_eofEv+0x75)[0x5650021c43e5]
      mariadbd(_ZN4JOIN10exec_innerEv+0xf8a)[0x565002290e6a]
      mariadbd(_ZN4JOIN4execEv+0x3f)[0x56500229131f]
      mariadbd(_ZN11Sql_cmd_dml13execute_innerEP3THD+0x7a)[0x56500229144a]
      mariadbd(_ZN14Sql_cmd_delete13execute_innerEP3THD+0x2a)[0x5650021c3cea]
      mariadbd(_ZN11Sql_cmd_dml7executeEP3THD+0xc3)[0x565002248f23]
      mariadbd(_Z21mysql_execute_commandP3THDb+0x4672)[0x565002211e22]
      mariadbd(_Z11mysql_parseP3THDPcjP12Parser_state+0x1e7)[0x565002212db7]
      mariadbd(_Z16dispatch_command19enum_server_commandP3THDPcjb+0x14cd)[0x5650022155ad]
      mariadbd(_Z10do_commandP3THDb+0x138)[0x5650022174b8]
      mariadbd(_Z24do_handle_one_connectionP7CONNECTb+0x3bf)[0x5650023438ff]
      mariadbd(handle_one_connection+0x5d)[0x565002343c4d]
      mariadbd(+0xcfce26)[0x5650026bee26]
      /lib/x86_64-linux-gnu/libc.so.6(+0x94ac3)[0x7ff364f3bac3]
      /lib/x86_64-linux-gnu/libc.so.6(clone+0x44)[0x7ff364fcca04]
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7ff1fc010b80): delete dro from DenRozpisuOsoba dro inner join DenRozpisu dr on dro.denRozpisu_id = dr.id where dro.osoba_id = 8901 and dr.datum = '2024-03-11'
       
      Connection ID (thread ID): 52
      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,hash_join_cardinality=on,cset_narrowing=off
       
      The 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         8388608              8388608              bytes     
      Max address space         unlimited            unlimited            bytes     
      Max file locks            unlimited            unlimited            locks     
      Max pending signals       255061               255061               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: |/lib/systemd/systemd-coredump %P %u %g %s %t 9223372036854775808 %h
      

      Kernel version: Linux version 6.5.0-18-generic (buildd@lcy02-amd64-070) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #18~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb  7 11:40:03 UTC 2
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vitro Vit Rozkovec
              Votes:
              0 Vote for this issue
              Watchers:
              5 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.