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

CREATE TABLE for Spider table causes binlog-related crash

    XMLWordPrintable

Details

    Description

      A user tried creating a Spider table, and it led to the following crash:

      180327 13:31:48 [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.2.13-MariaDB-log
      key_buffer_size=134217728
      read_buffer_size=2097152
      max_used_connections=3
      max_threads=65546
      thread_count=9
      It is possible that mysqld could use up to 
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 403307444 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x7f15e0000a88
      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 = 0x7f16f53c5dc8 thread_stack 0x49000
      /usr/local/mariadb-10.2.13-linux-glibc_214-x86_64/bin/mysqld(my_print_stacktrace+0x2b)[0x555afac7a77b]
      mysys/stacktrace.c:268(my_print_stacktrace)[0x555afa747de5]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x10330)[0x7f80530f5330]
      /usr/local/mariadb-10.2.13-linux-glibc_214-x86_64/bin/mysqld(bitmap_bits_set+0x7)[0x555afac6fcd7]
      mysys/my_bitmap.c:600(bitmap_bits_set)[0x555afa827192]
      sql/rpl_record.cc:68(pack_row(TABLE*, st_bitmap const*, unsigned char*, unsigned char const*))[0x555afa5a16b5]
      sql/sql_class.cc:6422(THD::binlog_write_row(TABLE*, bool, unsigned char const*))[0x555afa7529ff]
      sql/log_event.h:4717(Write_rows_log_event::binlog_row_logging_function(THD*, TABLE*, bool, unsigned char const*, unsigned char const*))[0x555afa751183]
      sql/handler.cc:5844(binlog_log_row_internal)[0x555afa751768]
      spider/spd_sys_table.cc:1054(spider_insert_tables(TABLE*, st_spider_share*))[0x7f804cee6d87]
      spider/ha_spider.cc:10664(ha_spider::create(char const*, TABLE*, HA_CREATE_INFO*))[0x7f804cf34953]
      /usr/local/mariadb-10.2.13-linux-glibc_214-x86_64/bin/mysqld(_ZN7handler9ha_createEPKcP5TABLEP14HA_CREATE_INFO+0x3f)[0x555afa74f34f]
      sql/handler.cc:4370(handler::ha_create(char const*, TABLE*, HA_CREATE_INFO*))[0x555afa74fc4a]
      sql/handler.cc:4742(ha_create_table(THD*, char const*, char const*, char const*, HA_CREATE_INFO*, st_mysql_const_unsigned_lex_string*))[0x555afa6765e9]
      sql/unireg.cc:428(rea_create_table(THD*, st_mysql_const_unsigned_lex_string*, char const*, char const*, char const*, HA_CREATE_INFO*, handler*, bool))[0x555afa649566]
      sql/sql_table.cc:4899(create_table_impl)[0x555afa649abb]
      sql/sql_table.cc:5013(mysql_create_table_no_lock(THD*, char const*, char const*, Table_specification_st*, Alter_info*, bool*, int))[0x555afa64a4b8]
      sql/sql_table.cc:5074(mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*))[0x555afa5cd3f5]
      sql/sql_parse.cc:3971(mysql_execute_command(THD*))[0x555afa5ce2da]
      sql/sql_parse.cc:7902(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x555afa5d066e]
      sql/sql_parse.cc:1806(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x555afa5d0c1e]
      sql/sql_parse.cc:1362(do_command(THD*))[0x555afa6c8017]
      sql/threadpool_common.cc:366(threadpool_process_request)[0x555afa720fe0]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x8184)[0x7f80530ed184]
      /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f805281003d]
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7f15e000f300): is an invalid pointer
      Connection ID (thread ID): 55
      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
       
      The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
      information that should help you find out what is causing the crash.
      

      The create table statement did have a typo in the connection string in the comment (e.g. see MDEV-15698). However, I don't know if that's relevant to the cause of the crash.

      Attachments

        Issue Links

          Activity

            People

              jacob-mathew Jacob Mathew (Inactive)
              GeoffMontee Geoff Montee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.