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

[Draft] Failing assertion: block->magic_n == MEM_BLOCK_MAGIC_N upon lack of disk space

    XMLWordPrintable

Details

    Description

      10.3 57c3dd991b

      2018-05-06 22:51:48 16 [Warning] InnoDB: 16384 bytes should have been written. Only 4096 bytes written. Retrying for the remaining bytes.
      2018-05-06 22:51:48 16 [Warning] InnoDB: Retry attempts for writing partial data failed.
      2018-05-06 22:51:48 16 [ERROR] InnoDB: IO: Failed to write the file size to './ib_6512_8589_trunc.log'
      2018-05-06 22:51:48 16 [ERROR] InnoDB: preallocating 98304 bytes for file ./test/#sql-4d4d_10.ibd failed with error 28
      2018-05-06 22:51:48 16 [ERROR] InnoDB: preallocating 98304 bytes for file ./test/#sql-4d4d_10.ibd failed with error 28
      2018-05-06 22:51:48 17 [ERROR] InnoDB: preallocating 98304 bytes for file ./test/#sql-4d4d_11.ibd failed with error 28
      2018-05-06 22:51:48 14 [ERROR] InnoDB: preallocating 98304 bytes for file ./test/#sql-4d4d_e.ibd failed with error 28
      2018-05-06 22:51:48 16 [ERROR] InnoDB: preallocating 98304 bytes for file ./test/#sql-4d4d_10.ibd failed with error 28
      2018-05-06 22:51:48 14 [ERROR] InnoDB: preallocating 65536 bytes for file ./test/#sql-4d4d_e.ibd failed with error 28
      2018-05-06 22:51:48 14 [Warning] InnoDB: Cannot create table `test`.`#sql-4d4d_e` because tablespace full
      2018-05-06 22:51:48 0x7f3c55bb5700  InnoDB: Assertion failure in file /data/src/10.3/storage/innobase/include/mem0mem.ic line 156
      InnoDB: Failing assertion: block->magic_n == MEM_BLOCK_MAGIC_N
      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.
      180506 22:51:48 [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.3.7-MariaDB-debug-log
      key_buffer_size=134217728
      read_buffer_size=131072
      max_used_connections=9
      max_threads=153
      thread_count=15
      It is possible that mysqld could use up to 
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467496 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x7f3bf0000b00
      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 = 0x7f3c55bb4ec0 thread_stack 0x49000
      mysys/stacktrace.c:269(my_print_stacktrace)[0x55ca086e5764]
      sql/signal_handler.cc:168(handle_fatal_signal)[0x55ca07f37a44]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x110c0)[0x7f3c6d0070c0]
      linux/raise.c:51(__GI_raise)[0x7f3c6b32dfcf]
      stdlib/abort.c:91(__GI_abort)[0x7f3c6b32f3fa]
      ut/ut0dbg.cc:62(__static_initialization_and_destruction_0(int, int))[0x55ca084847a3]
      include/mem0mem.ic:157(mem_block_validate(mem_block_info_t const*))[0x55ca0855bc53]
      include/mem0mem.ic:518(mem_heap_free(mem_block_info_t*))[0x55ca0855bf58]
      dict/dict0mem.cc:248(dict_mem_table_free(dict_table_t*))[0x55ca0855d65d]
      handler/handler0alter.cc:4941(prepare_inplace_alter_table_dict(Alter_inplace_info*, TABLE const*, TABLE const*, char const*, unsigned long, unsigned long, unsigned long, bool, bool))[0x55ca0828f8f3]
      handler/handler0alter.cc:6892(ha_innobase::prepare_inplace_alter_table(TABLE*, Alter_inplace_info*))[0x55ca08296666]
      sql/handler.cc:4387(handler::ha_prepare_inplace_alter_table(TABLE*, Alter_inplace_info*))[0x55ca07f43bff]
      sql/sql_table.cc:7456(mysql_inplace_alter_table(THD*, TABLE_LIST*, TABLE*, TABLE*, Alter_inplace_info*, enum_alter_inplace_result, MDL_request*, Alter_table_ctx*))[0x55ca07d2e9ab]
      sql/sql_table.cc:9670(mysql_alter_table(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, HA_CREATE_INFO*, TABLE_LIST*, Alter_info*, unsigned int, st_order*, bool))[0x55ca07d34c67]
      sql/sql_alter.cc:334(Sql_cmd_alter_table::execute(THD*))[0x55ca07dba0ba]
      sql/sql_parse.cc:6282(mysql_execute_command(THD*))[0x55ca07c60fa1]
      sql/sql_parse.cc:8001(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x55ca07c65a6e]
      sql/sql_parse.cc:1848(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x55ca07c53251]
      sql/sql_parse.cc:1391(do_command(THD*))[0x55ca07c51c90]
      sql/sql_connect.cc:1402(do_handle_one_connection(CONNECT*))[0x55ca07db4b45]
      sql/sql_connect.cc:1309(handle_one_connection)[0x55ca07db48d2]
      nptl/pthread_create.c:333(start_thread)[0x7f3c6cffd494]
      x86_64/clone.S:99(clone)[0x7f3c6b3e393f]
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7f3bf0029f78): ALTER TABLE `PP_K` FORCE, ALGORITHM=INPLACE, ADD COLUMN IF NOT EXISTS ecol3 SET('foo','bar') NOT NULL DEFAULT '', ALGORITHM=INPLACE, LOCK=SHARED /* QNO 4528 CON_ID 13 */
      Connection ID (thread ID): 14
      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,split_materialized=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.
      Writing a core file at /data/bld/10.3/mysql-test/var/mysqld.1/data/
      ----------SERVER LOG END-------------
      

      Attachments

        Activity

          People

            elenst Elena Stepanova
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.