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

Mariadb crashes with signal 11 when using federatedx engine and galera

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 10.1.20, 10.1.25
    • N/A

    Description

      Tested on versions above.

      3 node galera installation, requests go to only one (primary node).

      Some queries against a database full of federatedx engine tables causes the server to crash. After restart the node syncs back to the cluster with no apparent damage.

      Not every query against the federatedx engine tables causes the crash. We were not able to identify the exact query. The ones suggested by log of query pointer after crash executed successfully when run by hand in console.

      Additional note:
      Disabling query cache seemed to have prevented the crash, but sent our server performance to the gutter. So we re-enabled the case and stopped using federatedx engine tables.

      Crash log:
      171011 3:05:00 [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.1.25-MariaDB
      key_buffer_size=67108864
      read_buffer_size=262144
      max_used_connections=35
      max_threads=3002
      thread_count=16
      It is possible that mysqld could use up to
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 1574808332 K bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.

      Thread pointer: 0x7f9c8c666008
      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 = 0x7f9c9d9bbc1f thread_stack 0xa0000
      /usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x55f498e2c46e]
      /usr/sbin/mysqld(handle_fatal_signal+0x305)[0x55f498952375]
      /lib64/libpthread.so.0(+0xf5e0)[0x7f9dfe3a45e0]
      /usr/sbin/mysqld(_ZN13QUERY_PROFILE10new_statusEPKcS1_S1_j+0x70)[0x55f4988a1820]
      /usr/sbin/mysqld(set_thd_stage_info+0xd4)[0x55f49879a194]
      /usr/sbin/mysqld(_ZN11Query_cache8try_lockEP3THDNS_19Cache_try_lock_modeE+0x91)[0x55f498791641]
      /usr/sbin/mysqld(_ZN11Query_cache6insertEP3THDP15Query_cache_tlsPKcmj+0x3f)[0x55f49879581f]
      /usr/sbin/mysqld(net_real_write+0x45)[0x55f49873ffd5]
      mysys/stacktrace.c:268(my_print_stacktrace)[0x55f498740313]
      sql/signal_handler.cc:168(handle_fatal_signal)[0x55f498740a7b]
      sql/sql_profile.h:312(PROFILING::status_change(char const*, char const*, char const*, unsigned int))[0x55f498932002]
      sql-common/client.c:4062(mysql_send_query)[0x55f49892f6e1]
      sql-common/client.c:4071(mysql_real_query)[0x55f49892f701]
      /usr/lib64/mysql/plugin/ha_federatedx.so(_ZN19federatedx_io_mysql12actual_queryEPKcj+0x31)[0x7f9cee9f9611]
      /usr/lib64/mysql/plugin/ha_federatedx.so(_ZN19federatedx_io_mysql5queryEPKcj+0x18d)[0x7f9cee9f9add]
      /usr/lib64/mysql/plugin/ha_federatedx.so(_ZN13ha_federatedx15end_bulk_insertEv+0x86)[0x7f9cee9f6546]
      sql/sql_insert.cc:3773(select_insert::prepare_eof())[0x55f4987ba851]
      sql/sql_insert.cc:3864(select_insert::send_eof())[0x55f4987baa31]
      /usr/sbin/mysqld(+0x47aa16)[0x55f498814a16]
      sql/sql_select.cc:18099(do_select(JOIN*, List<Item>, TABLE, Procedure*))[0x55f498826c9c]
      sql/sql_select.cc:2513(JOIN::exec())[0x55f498828c94]
      sql/sql_select.cc:3451(mysql_select(THD*, Item**, TABLE_LIST, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x55f498825322]
      sql/sql_select.cc:384(handle_select(THD*, LEX*, select_result*, unsigned long))[0x55f498825e15]
      /usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x8092)[0x55f4987d3582]
      sql/sql_parse.cc:4030(mysql_execute_command(THD*))[0x55f498a60c06]
      sql/sp_head.cc:2978(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x55f498a676d3]
      sql/sp_head.cc:3129(sp_instr_stmt::execute(THD*, unsigned int*))[0x55f498a67c85]
      sql/sp_head.cc:1318(sp_head::execute(THD*, bool))[0x55f498a63bc6]
      sql/sp_head.cc:2103(sp_head::execute_procedure(THD*, List<Item>*))[0x55f498a65217]
      sql/event_data_objects.cc:1433(Event_job_data::execute(THD*, bool))[0x55f49888a6b3]
      sql/event_scheduler.cc:325(Event_worker_thread::run(THD*, Event_queue_element_for_exec*))[0x55f498a9b473]
      sql/event_scheduler.cc:278(event_worker_thread)[0x55f498a9b50d]
      /lib64/libpthread.so.0(+0x7e25)[0x7f9dfe39ce25]
      /lib64/libc.so.6(clone+0x6d)[0x7f9dfc74034d]

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jlunacek Jiri Lunacek
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.