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

[draft] Assertion table->get_ref_count() == 0 failed in dict0dict.cc line 1986

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 10.4
    • N/A
    • N/A
    • None

    Description

      10.4 9e1a39aae49eaaf397eb85aac481228694a75aed

      2018-09-17 15:47:33 0x7fe7e8054700  InnoDB: Assertion failure in file /git/10.4/storage/innobase/dict/dict0dict.cc line 1986
      InnoDB: Failing assertion: table->get_ref_count() == 0
      InnoDB: We intentionally generate a memory trap.
      InnoDB: Submit a detailed bug report to https://jira.mariadb.org/
      InnoDB: If you get repeated assertion failures or crashes, even
      InnoDB: immediately after the mysqld startup, there may be
      InnoDB: corruption in the InnoDB tablespace. Please refer to
      InnoDB: https://mariadb.com/kb/en/library/xtradbinnodb-recovery-modes/
      InnoDB: about forcing recovery.
      180917 15:47:33 [ERROR] mysqld got signal 6 ;
      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.4.0-MariaDB-debug-log
      key_buffer_size=134217728
      read_buffer_size=131072
      max_used_connections=3
      max_threads=153
      thread_count=9
      It is possible that mysqld could use up to 
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467566 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x7fe77c000b00
      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 = 0x7fe7e8053d40 thread_stack 0x49000
      /home/alice/git/10.4/sql/mysqld(my_print_stacktrace+0x40)[0x560b66027c26]
      mysys/stacktrace.c:269(my_print_stacktrace)[0x560b65880d1c]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7fe7f0c8a390]
      linux/raise.c:54(__GI_raise)[0x7fe7f0043428]
      stdlib/abort.c:91(__GI_abort)[0x7fe7f004502a]
      ut/ut0dbg.cc:62(__static_initialization_and_destruction_0(int, int))[0x560b65df133d]
      dict/dict0dict.cc:1987(dict_table_remove_from_cache_low(dict_table_t*, unsigned long))[0x560b65eaa373]
      dict/dict0dict.cc:2070(dict_table_remove_from_cache(dict_table_t*))[0x560b65eaab18]
      row/row0mysql.cc:3470(row_drop_table_for_mysql(char const*, trx_t*, enum_sql_command, bool, bool))[0x560b65d349f0]
      handler/ha_innodb.cc:12828(ha_innobase::delete_table(char const*, enum_sql_command))[0x560b65bf2563]
      handler/ha_innodb.cc:13219(ha_innobase::truncate())[0x560b65bdf43f]
      sql/handler.cc:4307(handler::ha_truncate())[0x560b6588cc01]
      sql/sql_truncate.cc:242(Sql_cmd_truncate_table::handler_truncate(THD*, TABLE_LIST*, bool))[0x560b65a5743c]
      sql/sql_truncate.cc:404(Sql_cmd_truncate_table::truncate_table(THD*, TABLE_LIST*))[0x560b65a579cd]
      sql/sql_truncate.cc:502(Sql_cmd_truncate_table::execute(THD*))[0x560b65a57cb6]
      sql/sql_parse.cc:6288(mysql_execute_command(THD*))[0x560b65594cc9]
      sql/sql_parse.cc:8085(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x560b65599e85]
      sql/sql_parse.cc:1852(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x560b65586f50]
      sql/sql_parse.cc:1395(do_command(THD*))[0x560b6558596d]
      sql/sql_connect.cc:1402(do_handle_one_connection(CONNECT*))[0x560b656ec67f]
      sql/sql_connect.cc:1309(handle_one_connection)[0x560b656ec3d0]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7fe7f0c806ba]
      x86_64/clone.S:111(clone)[0x7fe7f011541d]
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7fe77c015c48): TRUNCATE TABLE `view_A`  /* QNO 11295 CON_ID 15 */
      Connection ID (thread ID): 15
      Status: NOT_KILLED
      
      

      Can not reproduce right away, weird as TRUNCATE TABLE does not work on view, so error is expected.

      perl /home/alice/git/rqg1/runall-new.pl --no-mask --seed=random --duration=600 --queries=100M --short_column_names --reporters=Backtrace,ErrorLog,Deadlock --validators=TransformerNoComparator --transformer=Count, DisableChosenPlan, DisableIndexes, DisableJoinCache, DisableOptimizations, Distinct, ExecuteAsCTE, ExecuteAsDeleteReturning, ExecuteAsDerived, ExecuteAsExcept, ExecuteAsExecuteImmediate, ExecuteAsFunctionTwice, ExecuteAsInsertSelect, ExecuteAsUnion, Having, InlineSubqueries, InlineVirtualColumns, LimitDecrease, LimitIncrease, LimitRowsExamined, NullIf, OrderBy --mysqld=--log_output=FILE --querytimeout=120 --redefine=conf/mariadb/alter_table.yy --redefine=conf/mariadb/sp.yy --redefine=conf/mariadb/bulk_insert.yy --redefine=conf/mariadb/sequences.yy --views --notnull --threads=1 --grammar=conf/mariadb/window_func.yy --engine=InnoDB --gendata --mysqld=--join_cache_level=4 --mysqld=--optimizer_use_condition_selectivity=4 --basedir1=/git/10.4 --vardir1=/1
      

      Attachments

        Activity

          People

            alice Alice Sherepa
            alice Alice Sherepa
            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.