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

Server stürzt bei Aufruf einer stored procedure, die einen select aufruft ab. Wenn der select direkt aufgerufen wird, geht es.

    XMLWordPrintable

Details

    Description

      Server stürzt bei Aufruf einer stored procedure, die einen select aufruft, ab. Wenn der select direkt aufgerufen wird, geht es. Bis gestern, vor dem update auf 10.3.38 in Debian 10 Buster, ging es.
      Der select in der stored procedure ruft eine recht verschachtelte view auf. Kann es sein, dass durch den Aufruf per stored procedure gerade eine Ebene zu viel an Komplexität erreicht wird?

      230302  8:12:02 [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.3.38-MariaDB-0+deb10u1-log source revision: c73985f2ce8a391582787f3e310a011c1a712bec
      key_buffer_size=16777216
      read_buffer_size=131072
      max_used_connections=1
      max_threads=153
      thread_count=7
      It is possible that mysqld could use up to
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 352747 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x7f91cc000c08
      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 = 0x7f923c4b3dd8 thread_stack 0x30000
      /usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x55d7f4b9be2e]
      /usr/sbin/mysqld(handle_fatal_signal+0x55d)[0x55d7f46c2cbd]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x12730)[0x7f9256a2b730]
      /usr/sbin/mysqld(_ZNK10Item_field11used_tablesEv+0x7)[0x55d7f46e6b87]
      /usr/sbin/mysqld(_ZNK20Item_direct_view_ref11used_tablesEv+0x73)[0x55d7f46e6ff3]
      /usr/sbin/mysqld(_ZN9Item_func18update_used_tablesEv+0x60)[0x55d7f44ac270]
      /usr/sbin/mysqld(_ZN9Item_func18update_used_tablesEv+0x54)[0x55d7f44ac264]
      /usr/sbin/mysqld(_ZN13st_select_lex18update_used_tablesEv+0x2dc)[0x55d7f44cc20c]
      /usr/sbin/mysqld(_ZN4JOIN14optimize_innerEv+0x7f)[0x55d7f453d08f]
      /usr/sbin/mysqld(_ZN4JOIN8optimizeEv+0x37)[0x55d7f453ddb7]
      /usr/sbin/mysqld(_ZN18st_select_lex_unit8optimizeEv+0x30c)[0x55d7f4582b8c]
      /usr/sbin/mysqld(_Z22mysql_derived_optimizeP3THDP3LEXP10TABLE_LIST+0x1a8)[0x55d7f44b31b8]
      /usr/sbin/mysqld(_Z27mysql_handle_single_derivedP3LEXP10TABLE_LISTj+0x8c)[0x55d7f44b29dc]
      /usr/sbin/mysqld(_ZN4JOIN14optimize_innerEv+0x72c)[0x55d7f453d73c]
      /usr/sbin/mysqld(_ZN4JOIN8optimizeEv+0x37)[0x55d7f453ddb7]
      /usr/sbin/mysqld(_ZN18st_select_lex_unit8optimizeEv+0x30c)[0x55d7f4582b8c]
      /usr/sbin/mysqld(_Z22mysql_derived_optimizeP3THDP3LEXP10TABLE_LIST+0x1a8)[0x55d7f44b31b8]
      /usr/sbin/mysqld(_Z27mysql_handle_single_derivedP3LEXP10TABLE_LISTj+0x8c)[0x55d7f44b29dc]
      /usr/sbin/mysqld(_ZN4JOIN14optimize_innerEv+0x72c)[0x55d7f453d73c]
      /usr/sbin/mysqld(_ZN4JOIN8optimizeEv+0x37)[0x55d7f453ddb7]
      /usr/sbin/mysqld(_ZN18st_select_lex_unit8optimizeEv+0x30c)[0x55d7f4582b8c]
      /usr/sbin/mysqld(_Z22mysql_derived_optimizeP3THDP3LEXP10TABLE_LIST+0x1a8)[0x55d7f44b31b8]
      /usr/sbin/mysqld(_Z27mysql_handle_single_derivedP3LEXP10TABLE_LISTj+0x8c)[0x55d7f44b29dc]
      /usr/sbin/mysqld(_ZN4JOIN14optimize_innerEv+0x72c)[0x55d7f453d73c]
      /usr/sbin/mysqld(_ZN4JOIN8optimizeEv+0x37)[0x55d7f453ddb7]
      /usr/sbin/mysqld(_Z12mysql_selectP3THDP10TABLE_LISTjR4ListI4ItemEPS4_jP8st_orderS9_S7_S9_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x7b3)[0x55d7f453fb83]
      /usr/sbin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x14d)[0x55d7f453fddd]
      /usr/sbin/mysqld(+0x5c7a8c)[0x55d7f44dfa8c]
      /usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x5347)[0x55d7f44ec367]
      /usr/sbin/mysqld(_ZN13sp_instr_stmt9exec_coreEP3THDPj+0x15)[0x55d7f4460a45]
      /usr/sbin/mysqld(_ZN13sp_lex_keeper23reset_lex_and_exec_coreEP3THDPjbP8sp_instr+0xa2)[0x55d7f44675f2]
      /usr/sbin/mysqld(_ZN13sp_instr_stmt7executeEP3THDPj+0x560)[0x55d7f4467f80]
      /usr/sbin/mysqld(_ZN7sp_head7executeEP3THDb+0x82c)[0x55d7f44638bc]
      /usr/sbin/mysqld(_ZN7sp_head17execute_procedureEP3THDP4ListI4ItemE+0x93f)[0x55d7f4464d0f]
      /usr/sbin/mysqld(+0x5c7425)[0x55d7f44df425]
      /usr/sbin/mysqld(_ZN12Sql_cmd_call7executeEP3THD+0x166)[0x55d7f44e2126]
      /usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x2b29)[0x55d7f44e9b49]
      /usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_statebb+0x1c9)[0x55d7f44eec49]
      /usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0x111d)[0x55d7f44f0add]
      /usr/sbin/mysqld(_Z10do_commandP3THD+0x122)[0x55d7f44f2252]
      /usr/sbin/mysqld(_Z24do_handle_one_connectionP7CONNECT+0x23a)[0x55d7f45c625a]
      /usr/sbin/mysqld(handle_one_connection+0x3d)[0x55d7f45c63dd]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x7fa3)[0x7f9256a20fa3]
      /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7f925695206f]
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7f91cc1c25a0): SELECT * from `Abrechnung_Basis` a
       
      Connection ID (thread ID): 37
      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=off,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on
       
      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             7859                 7859                 processes
      Max open files            32768                32768                files
      Max locked memory         65536                65536                bytes
      Max address space         unlimited            unlimited            bytes
      Max file locks            unlimited            unlimited            locks
      Max pending signals       7859                 7859                 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
       
      Kernel version: Linux version 4.19.0-23-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.269-1 (2022-12-20)
       
      2023-03-02  8:12:07 0 [Note] Starting MariaDB 10.3.38-MariaDB-0+deb10u1-log source revision c73985f2ce8a391582787f3e310a011c1a712bec as process 5575
      2023-03-02  8:12:07 0 [Note] Using unique option prefix 'myisam-recover' is error-prone and can break in the future. Please use the full name 'myisam-recover-options' instead.
      2023-03-02  8:12:07 0 [Note] InnoDB: Using Linux native AIO
      2023-03-02  8:12:07 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
      2023-03-02  8:12:07 0 [Note] InnoDB: Uses event mutexes
      2023-03-02  8:12:07 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
      2023-03-02  8:12:07 0 [Note] InnoDB: Number of pools: 1
      2023-03-02  8:12:07 0 [Note] InnoDB: Using SSE2 crc32 instructions
      2023-03-02  8:12:07 0 [Note] InnoDB: Initializing buffer pool, total size = 384M, instances = 1, chunk size = 128M
      2023-03-02  8:12:07 0 [Note] InnoDB: Completed initialization of buffer pool
      2023-03-02  8:12:07 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
      2023-03-02  8:12:07 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=119361145319
      2023-03-02  8:12:07 0 [Note] InnoDB: Starting final batch to recover 3 pages from redo log.
      2023-03-02  8:12:08 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
      2023-03-02  8:12:08 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
      2023-03-02  8:12:08 0 [Note] InnoDB: Creating shared tablespace for temporary tables
      2023-03-02  8:12:08 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
      2023-03-02  8:12:08 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
      2023-03-02  8:12:08 0 [Note] InnoDB: Waiting for purge to start
      2023-03-02  8:12:08 0 [Note] InnoDB: 10.3.38 started; log sequence number 119361145776; transaction id 98313874
      2023-03-02  8:12:08 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
      2023-03-02  8:12:08 0 [Note] Plugin 'FEEDBACK' is disabled.
      2023-03-02  8:12:08 0 [Note] Recovering after a crash using tc.log
      2023-03-02  8:12:08 0 [Note] Starting crash recovery...
      2023-03-02  8:12:08 0 [Note] Crash recovery finished.
      2023-03-02  8:12:08 0 [Note] Server socket created on IP: '0.0.0.0'.
      2023-03-02  8:12:08 0 [Note] Reading of all Master_info entries succeeded
      2023-03-02  8:12:08 0 [Note] Added new Master_info '' to hash table
      2023-03-02  8:12:08 0 [Note] /usr/sbin/mysqld: ready for connections.
      Version: '10.3.38-MariaDB-0+deb10u1-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Debian 10
      2023-03-02  8:12:08 6 [Note] Event Scheduler: scheduler thread started with id 6
      2023-03-02  8:12:08 0 [Note] InnoDB: Buffer pool(s) load completed at 230302  8:12:08
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            georgg Georg Getreuer
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.