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

Server crashes in THD::mark_tmp_table_as_free_for_reuse

    XMLWordPrintable

    Details

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

      Description

      _Note: until now, it was assumed that these failures might be the same as MDEV-11071. However, MDEV-11071 is fixed and closed now, but the crash still occurs (the revision under test contains the fix for MDEV-11071).

      http://buildbot.askmonty.org/buildbot/builders/qa-win-rel/builds/5151/steps/result_summary/logs/stdio

      10.2 d79bf0009a17f0020203003a97ce7e83449aeb3a

      180620  4:48:47 [ERROR] mysqld got exception 0xc0000005 ;
      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.16-MariaDB-log
      key_buffer_size=134217728
      read_buffer_size=131072
      max_used_connections=7
      max_threads=65537
      thread_count=14
      It is possible that mysqld could use up to 
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 136060 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x652d502f28
      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...
      mysqld.exe!handler::ha_reset()[handler.cc:5933]
      mysqld.exe!THD::mark_tmp_table_as_free_for_reuse()[temporary_tables.cc:768]
      mysqld.exe!THD::mark_tmp_tables_as_free_for_reuse()[temporary_tables.cc:727]
      mysqld.exe!close_thread_tables()[sql_base.cc:795]
      mysqld.exe!Locked_tables_list::unlock_locked_tables()[sql_base.cc:2176]
      mysqld.exe!Locked_tables_list::unlink_all_closed_tables()[sql_base.cc:2343]
      mysqld.exe!Locked_tables_list::reopen_tables()[sql_base.cc:2389]
      mysqld.exe!mysql_inplace_alter_table()[sql_table.cc:7492]
      mysqld.exe!mysql_alter_table()[sql_table.cc:9390]
      mysqld.exe!Sql_cmd_alter_table::execute()[sql_alter.cc:329]
      mysqld.exe!mysql_execute_command()[sql_parse.cc:6223]
      mysqld.exe!mysql_parse()[sql_parse.cc:8004]
      mysqld.exe!dispatch_command()[sql_parse.cc:1823]
      mysqld.exe!do_command()[sql_parse.cc:1374]
      mysqld.exe!threadpool_process_request()[threadpool_common.cc:366]
      mysqld.exe!tp_callback()[threadpool_common.cc:192]
      ntdll.dll!RtlFreeUnicodeString()
      ntdll.dll!RtlFreeUnicodeString()
      KERNEL32.DLL!BaseThreadInitThunk()
      ntdll.dll!RtlUserThreadStart()
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x652d95fd00): ALTER TABLE `t4` /* 100301 WAIT 5 */ FORCE, ALGORITHM=INPLACE /* QNO 1349 CON_ID 19 */
      Connection ID (thread ID): 19
      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
      

      windows 59febe381aafeca45419bb73b4a1144ca8a5fb20

      perl E:\buildbot\rqg/runall-new.pl --grammar=conf/mariadb/optimizer.yy --gendata-advanced --skip-gendata --no-mask --queries=100M --duration=350 --threads=6 --seed=1529469830 --views --vcols --reporters=Backtrace,ErrorLog --validators=TransformerNoComparator --transformers=ExecuteAsCTE,ExecuteAsDeleteReturning,ExecuteAsExecuteImmediate,ExecuteAsInsertSelect,ExecuteAsUnion,ExecuteAsUpdateDelete,ExecuteAsView,ExecuteAsPreparedTwice,ExecuteAsSPTwice --redefine=conf/mariadb/general-workarounds.yy --redefine=conf/mariadb/alter_table.yy --redefine=conf/mariadb/bulk_insert.yy --mysqld=--log_output=FILE --mysqld=--log_bin_trust_function_creators=1 --mysqld=--log-bin --mysqld=--loose-max-statement-time=30 --mysqld=--loose-debug_assert_on_not_freed_memory=0 --engine=InnoDB --mysqld=--innodb-buffer-pool-size=256M --mtr-build-thread=140 --basedir1=D:\qa-win-rel\install --vardir1=E:\buildbot\vardirs\qa-win-rel\10.2-5151\optim-combo/current1_1
      

      Not reproducible right away (not surprisingly, given that it happens on KILL_TIMEOUT).

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:

                  Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.