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

[Draft] Assertion `!table->pos_in_locked_tables' failed in tc_release_table on KILL_TIMEOUT during FLUSH TABLES

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.1, 10.2
    • Fix Version/s: None
    • Component/s: Admin statements, Locking
    • Labels:
      None

      Description

      https://travis-ci.org/elenst/travis-tests/jobs/458887316

      elenst-dev 0025eb562b9f334c1b80e0be959f1521905575ad

      perl ./runall-new.pl --basedir=/home/travis/server --vardir=/home/travis/logs/vardir --duration=350 --threads=6 --seed=1543071655 --reporters=Backtrace,ErrorLog,Deadlock --validators=TransformerNoComparator --views --redefine=conf/mariadb/alter_table.yy --redefine=conf/mariadb/sp.yy --redefine=conf/mariadb/bulk_insert.yy --mysqld=--log_output=FILE --mysqld=--max-statement-time=30 --mysqld=--lock-wait-timeout=10 --mysqld=--loose-innodb-lock-wait-timeout=5 --mysqld=--loose-debug_assert_on_not_freed_memory=0 --grammar=conf/optimizer/updateable_views.yy --mysqld=--init-file=$RQG_HOME/conf/optimizer/updateable_views.init --skip-gendata --gendata-advanced --vcols --transformers=ExecuteAsCTE,ExecuteAsExecuteImmediate,ExecuteAsDeleteReturning,ExecuteAsInsertSelect,ExecuteAsUnion,ExecuteAsUpdateDelete,ExecuteAsView,ExecuteAsPreparedTwice
      

      10.2 3728b11f879634a7ddab39cb951aedceadba80b1

      mysqld: /home/travis/src/sql/table_cache.cc:453: void tc_release_table(TABLE*): Assertion `!table->pos_in_locked_tables' failed.
      181124 15:06:50 [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.2.20-MariaDB-debug-log
      key_buffer_size=134217728
      read_buffer_size=131072
      max_used_connections=8
      max_threads=153
      thread_count=14
      It is possible that mysqld could use up to 
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467325 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
      Thread pointer: 0x565528d53c00
      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 = 0x7f42205c0e80 thread_stack 0x49000
      mysys/stacktrace.c:267(my_print_stacktrace)[0x56552511de2a]
      sql/signal_handler.cc:168(handle_fatal_signal)[0x5655249c3f1a]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x10330)[0x7f422a2e6330]
      /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37)[0x7f4229723c37]
      /lib/x86_64-linux-gnu/libc.so.6(abort+0x148)[0x7f4229727028]
      /lib/x86_64-linux-gnu/libc.so.6(+0x2fbf6)[0x7f422971cbf6]
      /lib/x86_64-linux-gnu/libc.so.6(+0x2fca2)[0x7f422971cca2]
      sql/table_cache.cc:455(tc_release_table(TABLE*))[0x56552493cfbc]
      sql/sql_base.cc:904(close_thread_table(THD*, TABLE**))[0x5655246d07d2]
      sql/sql_base.cc:2354(Locked_tables_list::unlink_all_closed_tables(THD*, st_mysql_lock*, unsigned long))[0x5655246d3245]
      sql/sql_base.cc:2465(Locked_tables_list::reopen_tables(THD*, bool))[0x5655246d3612]
      sql/sql_base.cc:485(close_cached_tables(THD*, TABLE_LIST*, bool, unsigned long))[0x5655246cfa3c]
      sql/sql_reload.cc:344(reload_acl_and_cache(THD*, unsigned long long, TABLE_LIST*, int*))[0x5655248cdb19]
      sql/sql_parse.cc:5402(mysql_execute_command(THD*))[0x56552474b67d]
      sql/sql_parse.cc:8013(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x56552475319e]
      sql/sql_parse.cc:1826(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x565524740aec]
      sql/sql_parse.cc:1378(do_command(THD*))[0x56552473f44f]
      sql/sql_connect.cc:1335(do_handle_one_connection(CONNECT*))[0x5655248929c5]
      sql/sql_connect.cc:1242(handle_one_connection)[0x565524892752]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x8184)[0x7f422a2de184]
      /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f42297eaffd]
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x565528d61538): FLUSH TABLES /* QNO 17133 CON_ID 17 */
      Connection ID (thread ID): 17
      Status: KILL_TIMEOUT
      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
      

      And on 10.1: https://travis-ci.org/elenst/travis-tests/jobs/467295584

      Note: the failure is similar to MDEV-17717, but that one happens without KILL_TIMEOUT, on plain FLUSH TABLES, and seems to require RocksDB.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                elenst Elena Stepanova
                Reporter:
                elenst Elena Stepanova
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: