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

Assertion `!((col->prtype ^ prtype) & ~(16384U|32768U))' failed

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      Assertion found on 10.11

      10.11.17-MariaDB-debug source revision ddc6874363e394e9347c8702049fad70a0e63865

      mariadbd: /data/Server/10.11H/storage/innobase/handler/handler0alter.cc:9786: bool innobase_rename_or_enlarge_column_try(ha_innobase_inplace_ctx*, trx_t*, const char*, ulint, const Field&, bool): Assertion `!((col->prtype ^ prtype) & ~(16384U|32768U))' failed.
      260412 21:10:20 [ERROR] /Server_bin/10.11H_debug_Og/bin/mariadbd got signal 6 ;
      Sorry, we probably made a mistake, and this is a bug.
       
      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
      #1  __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
      #2  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      #3  __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      #4  __GI_abort () at ./stdlib/abort.c:79
      #5  __assert_fail_base (fmt="%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry="!((col->prtype ^ prtype) & ~(16384U|32768U))", file=file@entry="/data/Server/10.11H/storage/innobase/handler/handler0alter.cc", line=line@entry=9786,
          function=function@entry="bool innobase_rename_or_enlarge_column_try(ha_innobase_inplace_ctx*, trx_t*, const char*, ulint, const Field&, bool)") at ./assert/assert.c:96
      #6  __assert_fail (assertion="!((col->prtype ^ prtype) & ~(16384U|32768U))", file="/data/Server/10.11H/storage/innobase/handler/handler0alter.cc", line=9786,
          function="bool innobase_rename_or_enlarge_column_try(ha_innobase_inplace_ctx*, trx_t*, const char*, ulint, const Field&, bool)") at ./assert/assert.c:105
      #7  innobase_rename_or_enlarge_column_try (ctx=ctx@entry=, trx=trx@entry=, table_name=table_name@entry="t2", pos=pos@entry=1, f=..., is_v=is_v@entry=false) at /data/Server/10.11H/storage/innobase/handler/handler0alter.cc:9786
      #8  innobase_rename_or_enlarge_columns_try (ha_alter_info=ha_alter_info@entry=, ctx=ctx@entry=, altered_table=altered_table@entry=, table=table@entry=, trx=trx@entry=, table_name=table_name@entry="t2") at /data/Server/10.11H/storage/innobase/handler/handler0alter.cc:9852
      #9  commit_try_norebuild (ha_alter_info=ha_alter_info@entry=, ctx=ctx@entry=, altered_table=altered_table@entry=, old_table=, statistics_exist=true, trx=trx@entry=, table_name="t2") at /data/Server/10.11H/storage/innobase/handler/handler0alter.cc:10904
      #10 ha_innobase::commit_inplace_alter_table (this=<optimized out>, altered_table=, ha_alter_info=, commit=<optimized out>) at /data/Server/10.11H/storage/innobase/handler/handler0alter.cc:11646
      #11 handler::ha_commit_inplace_alter_table (this=, altered_table=altered_table@entry=, ha_alter_info=ha_alter_info@entry=, commit=commit@entry=true) at /data/Server/10.11H/sql/handler.cc:5464
      #12 mysql_inplace_alter_table (thd=thd@entry=, table_list=, table=table@entry=, altered_table=altered_table@entry=, ha_alter_info=ha_alter_info@entry=, target_mdl_request=target_mdl_request@entry=, ddl_log_state=, trigger_param=, alter_ctx=, partial_alter=false, start_alter_id=0,
          if_exists=false) at /data/Server/10.11H/sql/sql_table.cc:8195
      #13 mysql_alter_table (thd=thd@entry=, new_db=new_db@entry=, new_name=<optimized out>, create_info=create_info@entry=, table_list=<optimized out>, table_list@entry=, recreate_info=recreate_info@entry=, alter_info=<optimized out>, order_num=<optimized out>, order=<optimized out>,
          ignore=<optimized out>, if_exists=<optimized out>) at /data/Server/10.11H/sql/sql_table.cc:11467
      #14 Sql_cmd_alter_table::execute (this=<optimized out>, thd=) at /data/Server/10.11H/sql/sql_alter.cc:688
      #15 mysql_execute_command (thd=thd@entry=, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /data/Server/10.11H/sql/sql_parse.cc:6201
      #16 mysql_parse (thd=thd@entry=, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=) at /data/Server/10.11H/sql/sql_parse.cc:8223
      #17 dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=, packet=packet@entry="ALTER TABLE t2 CHANGE COLUMN IF EXISTS col_int ren_col_int INT(11);", packet_length=packet_length@entry=67, blocking=blocking@entry=true) at /data/Server/10.11H/sql/sql_parse.cc:1924
      #18 do_command (thd=thd@entry=, blocking=blocking@entry=true) at /data/Server/10.11H/sql/sql_parse.cc:1434
      #19 do_handle_one_connection (connect=<optimized out>, connect@entry=, put_in_cache=put_in_cache@entry=true) at /data/Server/10.11H/sql/sql_connect.cc:1475
      #20 handle_one_connection (arg=) at /data/Server/10.11H/sql/sql_connect.cc:1387
      #21 start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
      #22 clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100
      (rr) frame 7
      #7  innobase_rename_or_enlarge_column_try (ctx=ctx@entry=, trx=trx@entry=, table_name=table_name@entry="t2", pos=pos@entry=1, f=..., is_v=is_v@entry=false) at /data/Server/10.11H/storage/innobase/handler/handler0alter.cc:9786
      9786                    ut_ad(!((col->prtype ^ prtype) & ~DATA_VERSIONED));
      (rr) info args
      ctx = 
      trx = 
      table_name = "t2"
      pos = 1
      f = {<Value_source> = {<No data fields>}, _vptr.Field = <vtable for Field_long+16>, ptr = "", null_ptr = "\377", table = , orig_table = , table_name = , field_name = {str = "ren_col_int", length = 11}, comment = {str = "", length = 0}, 
        option_list = , option_struct = , key_start = {static BITS_PER_ELEMENT = 64, static ARRAY_ELEMENTS = 1, static ALL_BITS_SET = 18446744073709551615, buffer = {0}}, part_of_key = {static BITS_PER_ELEMENT = 64, static ARRAY_ELEMENTS = 1, 
          static ALL_BITS_SET = 18446744073709551615, buffer = {0}}, part_of_key_not_clustered = {static BITS_PER_ELEMENT = 64, static ARRAY_ELEMENTS = 1, static ALL_BITS_SET = 18446744073709551615, buffer = {0}}, part_of_sortkey = {
          static BITS_PER_ELEMENT = 64, static ARRAY_ELEMENTS = 1, static ALL_BITS_SET = 18446744073709551615, buffer = {0}}, unireg_check = Field::NONE, invisible = VISIBLE, field_length = 11, flags = 0, field_index = 1, null_bit = 1 '\001', 
        is_created_from_null_item = false, cond_selectivity = 1, next_equal_field = , read_stats = , collected_stats = , vcol_info = , check_constraint = , default_value = }
      is_v = false
      (rr) info locals
      col = 
      user_table = 
      __PRETTY_FUNCTION__ = "bool innobase_rename_or_enlarge_column_try(ha_innobase_inplace_ctx*, trx_t*, const char*, ulint, const Field&, bool)"
      n_base = 0
      prtype = 1027
      mtype = 6 '\006'
      len = 4
      col_name = <optimized out>
      same_name = <optimized out>
       
       
      Connection ID (thread ID): 19
      Status: NOT_KILLED
      Query (0xbb570013550): ALTER TABLE t2 CHANGE COLUMN IF EXISTS col_int ren_col_int INT(11)
      
      

      Startup option used

      --loose-innodb-buffer-pool-size=128M
      --loose-innodb-log-file-size=48M
      --max-connections=50
      --loose-innodb-flush-log-at-trx-commit=0
      --loose-sync-binlog=0
      --core-file
      --loose-innodb_lock_schedule_algorithm=fcfs
      --loose-idle_write_transaction_timeout=0
      --loose-idle_transaction_timeout=0
      --loose-idle_readonly_transaction_timeout=0
      --connect_timeout=60
      --loose-innodb_fatal_semaphore_wait_threshold=300
      --log_output=none
      --log_bin_trust_function_creators=1
      --loose-debug_assert_on_not_freed_memory=0
      --loose-innodb_read_only_compressed=OFF
      --loose-max-statement-time=30
      --loose-innodb_page_size=4K
      --loose-innodb-buffer-pool-size=5M
      --lock-wait-timeout=86400
      --loose-innodb-lock-wait-timeout=50
      --loose-innodb_fast_shutdown=1
      --sql_mode=traditional
      --loose-innodb_file_per_table=0
      --loose-innodb-sync-debug
      --loose-innodb_stats_persistent=off
      --loose-innodb_adaptive_hash_index=off
      --loose-innodb_random_read_ahead=OFF
      --loose-innodb-open-files=10
      --loose-innodb_evict_tables_on_commit_debug=on
      --loose-innodb_undo_log_truncate=OFF
      --loose-innodb_rollback_on_timeout=ON
      

      RR trace is present on Pluto:-
      /data/results/crash_0001_vardir/crash_0001_rr

      Attachments

        Activity

          People

            thiru Thirunarayanan Balathandayuthapani
            saahil Saahil Alam
            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.