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

MariaDB 10.5.5 crash (sig 11) during a SELECT

    XMLWordPrintable

Details

    Description

      2021-02-09  9:03:11 0 [Note] /usr/sbin/mariadbd: ready for connections.
      Version: '10.5.5-MariaDB'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MariaDB Server
      2021-02-09  9:13:05 48 [Warning] Aborted connection 48 to db: 'primary' user: 'main' host: 'localhost' (Got an error reading communication packets)
      210209  9:16:56 [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.5.5-MariaDB
      key_buffer_size=268435456
      read_buffer_size=4194304
      max_used_connections=40
      max_threads=258
      thread_count=41
      It is possible that mysqld could use up to
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 2382111 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x7f3884000c58
      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 = 0x7f397b43dbd8 thread_stack 0x49000
      ??:0(my_print_stacktrace)[0x5641494f9dee]
      ??:0(handle_fatal_signal)[0x564148f84ec5]
      sigaction.c:0(__restore_rt)[0x7f397b1b0b20]
      ??:0(Create_tmp_table::finalize(THD*, TABLE*, TMP_TABLE_PARAM*, bool, bool))[0x564148dd790d]
      ??:0(create_tmp_table(THD*, TMP_TABLE_PARAM*, List<Item>&, st_order*, bool, bool, unsigned long long, unsigned long long, st_mysql_const_lex_string const*, bool, bool))[0x564148dd860d]
      ??:0(select_unit::create_result_table(THD*, List<Item>*, bool, unsigned long long, st_mysql_const_lex_string const*, bool, bool, bool, unsigned int))[0x564148e3978b]
      ??:0(Select_materialize::send_result_set_metadata(List<Item>&, unsigned int))[0x564148d503c3]
      ??:0(JOIN::exec_inner())[0x564148df2eca]
      ??:0(JOIN::exec())[0x564148df3c17]
      ??: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*))[0x564148df1f02]
      ??:0(handle_select(THD*, LEX*, select_result*, unsigned long))[0x564148df27eb]
      ??:0(LEX::mark_first_table_as_inserting())[0x564148d90eed]
      ??:0(mysql_execute_command(THD*))[0x564148d98fbe]
      ??:0(mysql_open_cursor(THD*, select_result*, Server_side_cursor**))[0x564148d506bc]
      ??:0(Prepared_statement::execute(String*, bool))[0x564148dada1e]
      ??:0(Prepared_statement::execute_loop(String*, bool, unsigned char*, unsigned char*))[0x564148dadde2]
      ??:0(Prepared_statement::execute_bulk_loop(String*, bool, unsigned char*, unsigned char*))[0x564148daeb35]
      ??:0(mysqld_stmt_execute(THD*, char*, unsigned int))[0x564148daebd5]
      ??:0(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x564148d95512]
      ??:0(do_command(THD*))[0x564148d9724f]
      ??:0(do_handle_one_connection(CONNECT*, bool))[0x564148e86bf1]
      ??:0(handle_one_connection)[0x564148e86f7d]
      ??:0(MyCTX_nopad::finish(unsigned char*, unsigned int*))[0x5641491a3d5a]
      pthread_create.c:0(start_thread)[0x7f397b1a614a]
      :0(__GI___clone)[0x7f397900ff23]
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7f3884012770): select 774_study.patientID AS patientID, 774_patient.patientStatus AS patientStatus, 774_patient.pid AS pid, 774_patient.pname AS pname, 774_patient.dob AS dob, 774_patient.sex AS sex, 774_study.received AS received, 774_study.sdate AS sdate, 774_study.stime AS stime, 774_study.modality AS modality, 774_study.refphys AS refphys, 774_study.numimages AS numimages, 774_study.numsnapshots AS numsnapshots, 774_study.numattachments AS numattachments, 774_study.sdesc AS sdesc, 774_study.backedup AS backedup, 774_study.modified AS modified, 774_study.siuid AS siuid, 774_study.institution AS institution, 774_study.bodypart AS bodypart, 774_study.tsuid AS tsuid, 774_study.acnum AS acnum from 774_study left join 774_patient on 774_study.patientID = 774_patient.patientID where exists (select pname from 774_patient where pname like 'doe%^john%^%^%^%') and 774_patient.pname in (select pname from 774_patient where pname like 'doe%^john%^%^%^%') order by received desc limit 0,50
      Connection ID (thread ID): 3
      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        unlimited            unlimited            bytes
      Max resident set          unlimited            unlimited            bytes
      Max processes             unlimited            unlimited            processes
      Max open files            16384                16384                files
      Max locked memory         65536                65536                bytes
      Max address space         unlimited            unlimited            bytes
      Max file locks            unlimited            unlimited            locks
      Max pending signals       127425               127425               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/share/apport/apport %p %s %c %d %P %E
       
      2021-02-09  9:32:02 0 [Warning] The parameter innodb_buffer_pool_instances is deprecated and has no effect.
      2021-02-09  9:32:02 0 [Note] InnoDB: Using Linux native AIO
      2021-02-09  9:32:02 0 [Note] InnoDB: Uses event mutexes
      2021-02-09  9:32:02 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
      2021-02-09  9:32:02 0 [Note] InnoDB: Number of pools: 1
      2021-02-09  9:32:02 0 [Note] InnoDB: Using SSE4.2 crc32 instructions
      2021-02-09  9:32:02 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
      2021-02-09  9:32:02 0 [Note] InnoDB: Initializing buffer pool, total size = 2147483648, chunk size = 134217728
      2021-02-09  9:32:02 0 [Note] InnoDB: Completed initialization of buffer pool
      2021-02-09  9:32:02 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
      2021-02-09  9:32:02 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=638714286
      2021-02-09  9:32:02 0 [Note] InnoDB: Starting final batch to recover 22 pages from redo log.
      2021-02-09  9:32:02 0 [Note] InnoDB: 128 rollback segments are active.
      2021-02-09  9:32:02 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
      2021-02-09  9:32:02 0 [Note] InnoDB: Creating shared tablespace for temporary tables
      2021-02-09  9:32:02 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
      2021-02-09  9:32:02 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
      2021-02-09  9:32:02 0 [Note] InnoDB: 10.5.5 started; log sequence number 638715875; transaction id 329221
      2021-02-09  9:32:02 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
      2021-02-09  9:32:02 0 [Note] Plugin 'FEEDBACK' is disabled.
      2021-02-09  9:32:02 0 [Note] Server socket created on IP: '127.0.0.1'.
      2021-02-09  9:32:02 0 [Note] InnoDB: Buffer pool(s) load completed at 210209  9:32:02
      2021-02-09  9:32:03 0 [Note] Reading of all Master_info entries succeeded
      2021-02-09  9:32:03 0 [Note] Added new Master_info '' to hash table
      2021-02-09  9:32:03 0 [Note] /usr/sbin/mariadbd: ready for connections.
      Version: '10.5.5-MariaDB'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MariaDB Server
      

      Attachments

        1. mysqld_full_bt_all_threads-debug.txt
          137 kB
        2. mysqld_full_bt_all_threads.txt
          43 kB
        3. mysqld_bt_all_threads.txt
          29 kB
        4. my.cnf
          0.7 kB
        5. MDEV-24827.sql
          4 kB

        Activity

          People

            shulga Dmitry Shulga
            gsmethells Greg Smethells
            Votes:
            1 Vote for this issue
            Watchers:
            13 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.