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

Crash with ALTER TABLE .. CONVERT TO CHARACTER SET utf8mb4

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Duplicate
    • 10.4.10, 10.4(EOL)
    • N/A
    • N/A
    • None

    Description

      CREATE TABLE `test` (
        `umeta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
        `user_id` bigint(20) unsigned NOT NULL DEFAULT 0,
        `meta_key` varchar(255) DEFAULT NULL,
        `meta_value` longtext DEFAULT NULL,
        PRIMARY KEY (`umeta_id`),
        KEY `user_id` (`user_id`),
        KEY `meta_key` (`meta_key`(191))
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
       
      INSERT INTO `test` VALUES (1,1,'first_name','Zone');
       
      ALTER TABLE `test` CONVERT TO CHARACTER SET utf8mb4;
      
      

      ERROR 2013 (HY000): Lost connection to MySQL server during query
      

      Log:

      Dec  4 11:31:33 uvn-234-24 mysqld: Version: '10.4.10-MariaDB'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MariaDB Server
      Dec  4 11:31:33 uvn-234-24 systemd: Started MariaDB 10.4.10 database server.
      Dec  4 11:31:36 uvn-234-24 mysqld: 2019-12-04 11:31:36 0x7fe158b7e700  InnoDB: Assertion failure in file /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.4.10/storage/innobase/data/data0type.cc line 67
      Dec  4 11:31:36 uvn-234-24 mysqld: InnoDB: Failing assertion: !(prefix_len % mbmaxlen)
      Dec  4 11:31:36 uvn-234-24 mysqld: InnoDB: We intentionally generate a memory trap.
      Dec  4 11:31:36 uvn-234-24 mysqld: InnoDB: Submit a detailed bug report to https://jira.mariadb.org/
      Dec  4 11:31:36 uvn-234-24 mysqld: InnoDB: If you get repeated assertion failures or crashes, even
      Dec  4 11:31:36 uvn-234-24 mysqld: InnoDB: immediately after the mysqld startup, there may be
      Dec  4 11:31:36 uvn-234-24 mysqld: InnoDB: corruption in the InnoDB tablespace. Please refer to
      Dec  4 11:31:36 uvn-234-24 mysqld: InnoDB: https://mariadb.com/kb/en/library/innodb-recovery-modes/
      Dec  4 11:31:36 uvn-234-24 mysqld: InnoDB: about forcing recovery.
      Dec  4 11:31:36 uvn-234-24 mysqld: 191204 11:31:36 [ERROR] mysqld got signal 6 ;
      Dec  4 11:31:36 uvn-234-24 mysqld: This could be because you hit a bug. It is also possible that this binary
      Dec  4 11:31:36 uvn-234-24 mysqld: or one of the libraries it was linked against is corrupt, improperly built,
      Dec  4 11:31:36 uvn-234-24 mysqld: or misconfigured. This error can also be caused by malfunctioning hardware.
      Dec  4 11:31:36 uvn-234-24 mysqld: To report this bug, see https://mariadb.com/kb/en/reporting-bugs
      Dec  4 11:31:36 uvn-234-24 mysqld: We will try our best to scrape up some info that will hopefully help
      Dec  4 11:31:36 uvn-234-24 mysqld: diagnose the problem, but since we have already crashed,
      Dec  4 11:31:36 uvn-234-24 mysqld: something is definitely wrong and this may fail.
      Dec  4 11:31:36 uvn-234-24 mysqld: Server version: 10.4.10-MariaDB
      Dec  4 11:31:36 uvn-234-24 mysqld: key_buffer_size=134217728
      Dec  4 11:31:36 uvn-234-24 mysqld: read_buffer_size=131072
      Dec  4 11:31:36 uvn-234-24 mysqld: max_used_connections=1
      Dec  4 11:31:36 uvn-234-24 mysqld: max_threads=153
      Dec  4 11:31:36 uvn-234-24 mysqld: thread_count=7
      Dec  4 11:31:36 uvn-234-24 mysqld: It is possible that mysqld could use up to
      Dec  4 11:31:36 uvn-234-24 mysqld: key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467738 K  bytes of memory
      Dec  4 11:31:36 uvn-234-24 mysqld: Hope that's ok; if not, decrease some variables in the equation.
      Dec  4 11:31:36 uvn-234-24 mysqld: Thread pointer: 0x7fe173d087c8
      Dec  4 11:31:36 uvn-234-24 mysqld: Attempting backtrace. You can use the following information to find out
      Dec  4 11:31:36 uvn-234-24 mysqld: where mysqld died. If you see no messages after this, something went
      Dec  4 11:31:36 uvn-234-24 mysqld: terribly wrong...
      Dec  4 11:31:36 uvn-234-24 mysqld: stack_bottom = 0x7fe158b7dcf0 thread_stack 0x49000
      Dec  4 11:31:36 uvn-234-24 mysqld: /usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x7fe171ecff2e]
      Dec  4 11:31:36 uvn-234-24 mysqld: /usr/sbin/mysqld(handle_fatal_signal+0x30f)[0x7fe1719663af]
      Dec  4 11:31:36 uvn-234-24 mysqld: sigaction.c:0(__restore_rt)[0x7fe170c8e5d0]
      Dec  4 11:31:36 uvn-234-24 mysqld: :0(__GI_raise)[0x7fe16ef612c7]
      Dec  4 11:31:36 uvn-234-24 mysqld: :0(__GI_abort)[0x7fe16ef629b8]
      Dec  4 11:31:36 uvn-234-24 mysqld: /usr/sbin/mysqld(+0x5a1f92)[0x7fe171660f92]
      Dec  4 11:31:36 uvn-234-24 mysqld: /usr/sbin/mysqld(+0xbfdc4c)[0x7fe171cbcc4c]
      Dec  4 11:31:36 uvn-234-24 mysqld: /usr/sbin/mysqld(+0xb0aef0)[0x7fe171bc9ef0]
      Dec  4 11:31:36 uvn-234-24 mysqld: /usr/sbin/mysqld(+0xb1085e)[0x7fe171bcf85e]
      Dec  4 11:31:36 uvn-234-24 mysqld: /usr/sbin/mysqld(+0xb13857)[0x7fe171bd2857]
      Dec  4 11:31:36 uvn-234-24 mysqld: /usr/sbin/mysqld(+0xa6a620)[0x7fe171b29620]
      Dec  4 11:31:36 uvn-234-24 mysqld: /usr/sbin/mysqld(_Z17mysql_alter_tableP3THDPK25st_mysql_const_lex_stringS3_P14HA_CREATE_INFOP10TABLE_LISTP10Alter_infojP8st_orderb+0x3228)[0x7fe1717ef9d8]
      Dec  4 11:31:36 uvn-234-24 mysqld: /usr/sbin/mysqld(_ZN19Sql_cmd_alter_table7executeEP3THD+0x3ff)[0x7fe17184519f]
      Dec  4 11:31:36 uvn-234-24 mysqld: /usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x19c8)[0x7fe171759098]
      Dec  4 11:31:36 uvn-234-24 mysqld: /usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_statebb+0x24b)[0x7fe171760aeb]
      Dec  4 11:31:36 uvn-234-24 mysqld: /usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0x1b5e)[0x7fe1717638ee]
      Dec  4 11:31:36 uvn-234-24 mysqld: /usr/sbin/mysqld(_Z10do_commandP3THD+0x11c)[0x7fe17176507c]
      Dec  4 11:31:36 uvn-234-24 mysqld: /usr/sbin/mysqld(_Z24do_handle_one_connectionP7CONNECT+0x1fa)[0x7fe171840afa]
      Dec  4 11:31:36 uvn-234-24 mysqld: /usr/sbin/mysqld(handle_one_connection+0x3d)[0x7fe171840bdd]
      Dec  4 11:31:36 uvn-234-24 mysqld: pthread_create.c:0(start_thread)[0x7fe170c86dd5]
      Dec  4 11:31:36 uvn-234-24 mysqld: /lib64/libc.so.6(clone+0x6d)[0x7fe16f02902d]
      Dec  4 11:31:36 uvn-234-24 mysqld: Trying to get some variables.
      Dec  4 11:31:36 uvn-234-24 mysqld: Some pointers may be invalid and cause the dump to abort.
      Dec  4 11:31:36 uvn-234-24 mysqld: Query (0x7fe173d16a90): ALTER TABLE `test` CONVERT TO CHARACTER SET utf8mb4
      Dec  4 11:31:36 uvn-234-24 mysqld: Connection ID (thread ID): 8
      Dec  4 11:31:36 uvn-234-24 mysqld: Status: NOT_KILLED
      Dec  4 11:31:36 uvn-234-24 mysqld: 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=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on
      Dec  4 11:31:36 uvn-234-24 mysqld: The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
      Dec  4 11:31:36 uvn-234-24 mysqld: information that should help you find out what is causing the crash.
      Dec  4 11:31:36 uvn-234-24 mysqld: Writing a core file...
      Dec  4 11:31:36 uvn-234-24 mysqld: Working directory at /var/lib/mysql
      Dec  4 11:31:36 uvn-234-24 mysqld: Resource Limits:
      Dec  4 11:31:36 uvn-234-24 mysqld: Limit                     Soft Limit           Hard Limit           Units
      Dec  4 11:31:36 uvn-234-24 mysqld: Max cpu time              unlimited            unlimited            seconds
      Dec  4 11:31:36 uvn-234-24 mysqld: Max file size             unlimited            unlimited            bytes
      Dec  4 11:31:36 uvn-234-24 mysqld: Max data size             unlimited            unlimited            bytes
      Dec  4 11:31:36 uvn-234-24 mysqld: Max stack size            8388608              unlimited            bytes
      Dec  4 11:31:36 uvn-234-24 mysqld: Max core file size        0                    unlimited            bytes
      Dec  4 11:31:36 uvn-234-24 mysqld: Max resident set          unlimited            unlimited            bytes
      Dec  4 11:31:36 uvn-234-24 mysqld: Max processes             3882                 3882                 processes
      Dec  4 11:31:36 uvn-234-24 mysqld: Max open files            16364                16364                files
      Dec  4 11:31:36 uvn-234-24 mysqld: Max locked memory         65536                65536                bytes
      Dec  4 11:31:36 uvn-234-24 mysqld: Max address space         unlimited            unlimited            bytes
      Dec  4 11:31:36 uvn-234-24 mysqld: Max file locks            unlimited            unlimited            locks
      Dec  4 11:31:36 uvn-234-24 mysqld: Max pending signals       3882                 3882                 signals
      Dec  4 11:31:36 uvn-234-24 mysqld: Max msgqueue size         819200               819200               bytes
      Dec  4 11:31:36 uvn-234-24 mysqld: Max nice priority         0                    0
      Dec  4 11:31:36 uvn-234-24 mysqld: Max realtime priority     0                    0
      Dec  4 11:31:36 uvn-234-24 mysqld: Max realtime timeout      unlimited            unlimited            us
      Dec  4 11:31:36 uvn-234-24 mysqld: Core pattern: core
      Dec  4 11:31:37 uvn-234-24 systemd: mariadb.service: main process exited, code=killed, status=6/ABRT
      Dec  4 11:31:37 uvn-234-24 systemd: Unit mariadb.service entered failed state.
      Dec  4 11:31:37 uvn-234-24 systemd: mariadb.service failed.
      Dec  4 11:31:42 uvn-234-24 systemd: mariadb.service holdoff time over, scheduling restart.
      Dec  4 11:31:42 uvn-234-24 systemd: Stopped MariaDB 10.4.10 database server.
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              BB Silver Asu
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.