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

[Draft] Assertion `tuple' failed in dtuple_get_nth_field

    XMLWordPrintable

Details

    Description

      Note: might be related to MDEV-13942 or MDEV-16071.

      https://api.travis-ci.org/v3/job/372146435/log.txt

      10.3 4968049799193394d442f26b4e3a8d95b185be72

      Version: '10.3.7-MariaDB-debug-log'  socket: '/home/travis/logs/vardir1_3/mysql.sock'  port: 19300  Source distribution
      2018-04-28 13:43:14 20 [ERROR] mysqld: Incorrect information in file: './test/#sql-67f8_14.frm'
      mysqld: /home/travis/src/storage/innobase/include/data0data.ic:432: dfield_t* dtuple_get_nth_field(const dtuple_t*, ulint): Assertion `tuple' failed.
      180428 13:43:22 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007fc9db2a6ca2 in __GI___assert_fail (assertion=0x5558c50e3da0 "tuple", file=0x5558c50e3cc8 "/home/travis/src/storage/innobase/include/data0data.ic", line=432, function=0x5558c50ea940 <_ZZL20dtuple_get_nth_fieldPK8dtuple_tmE19__PRETTY_FUNCTION__> "dfield_t* dtuple_get_nth_field(const dtuple_t*, ulint)") at assert.c:101
      #8  0x00005558c48f2b6e in dtuple_get_nth_field (tuple=0x0, n=6) at /home/travis/src/storage/innobase/include/data0data.ic:432
      #9  0x00005558c48fdab2 in innobase_build_col_map (ha_alter_info=0x7fc9d8200170, altered_table=0x7fc9901490f0, table=0x7fc994042550, new_table=0x7fc990085e18, old_table=0x7fc99812a308, defaults=0x0, heap=0x7fc990167270) at /home/travis/src/storage/innobase/handler/handler0alter.cc:3298
      #10 0x00005558c49033a1 in prepare_inplace_alter_table_dict (ha_alter_info=0x7fc9d8200170, altered_table=0x7fc9901490f0, old_table=0x7fc994042550, table_name=0x7fc9940bc1a5 "t6", flags=33, flags2=80, fts_doc_id_col=18446744073709551615, add_fts_doc_id=false, add_fts_doc_id_idx=false) at /home/travis/src/storage/innobase/handler/handler0alter.cc:5165
      #11 0x00005558c49095a4 in ha_innobase::prepare_inplace_alter_table (this=0x7fc994096878, altered_table=0x7fc9901490f0, ha_alter_info=0x7fc9d8200170) at /home/travis/src/storage/innobase/handler/handler0alter.cc:6908
      #12 0x00005558c46c14c1 in handler::ha_prepare_inplace_alter_table (this=0x7fc994096878, altered_table=0x7fc9901490f0, ha_alter_info=0x7fc9d8200170) at /home/travis/src/sql/handler.cc:4386
      #13 0x00005558c44a530d in mysql_inplace_alter_table (thd=0x7fc99000b440, table_list=0x7fc99001e2c0, table=0x7fc994042550, altered_table=0x7fc9901490f0, ha_alter_info=0x7fc9d8200170, inplace_supported=HA_ALTER_INPLACE_NO_LOCK_AFTER_PREPARE, target_mdl_request=0x7fc9d82001e0, alter_ctx=0x7fc9d8200de0) at /home/travis/src/sql/sql_table.cc:7456
      #14 0x00005558c44ab5c7 in mysql_alter_table (thd=0x7fc99000b440, new_db=0x5558c4f276b0 <null_clex_str>, new_name=0x5558c4f276b0 <null_clex_str>, create_info=0x7fc9d82019b0, table_list=0x7fc99001e2c0, alter_info=0x7fc9d82018f0, order_num=0, order=0x0, ignore=false) at /home/travis/src/sql/sql_table.cc:9670
      #15 0x00005558c44ae22f in mysql_recreate_table (thd=0x7fc99000b440, table_list=0x7fc99001e2c0, table_copy=false) at /home/travis/src/sql/sql_table.cc:10501
      #16 0x00005558c453a7b8 in admin_recreate_table (thd=0x7fc99000b440, table_list=0x7fc99001e2c0) at /home/travis/src/sql/sql_admin.cc:59
      #17 0x00005558c453da27 in mysql_admin_table(THD *, TABLE_LIST *, HA_CHECK_OPT *, const char *, thr_lock_type, bool, bool, uint, int (*)(THD *, TABLE_LIST *, HA_CHECK_OPT *), struct {...}, int (*)(THD *, TABLE_LIST *, HA_CHECK_OPT *)) (thd=0x7fc99000b440, tables=0x7fc99001e2c0, check_opt=0x7fc990010208, operator_name=0x5558c4f66560 "optimize", lock_type=TL_WRITE, open_for_modify=true, repair_table_use_frm=false, extra_open_options=0, prepare_func=0x0, operator_func=(int (handler::*)(handler * const, THD *, HA_CHECK_OPT *)) 0x5558c46c103a <handler::ha_optimize(THD*, st_ha_check_opt*)>, view_operator_func=0x0) at /home/travis/src/sql/sql_admin.cc:1026
      #18 0x00005558c453edcf in Sql_cmd_optimize_table::execute (this=0x7fc99001e918, thd=0x7fc99000b440) at /home/travis/src/sql/sql_admin.cc:1366
      #19 0x00005558c43d7da1 in mysql_execute_command (thd=0x7fc99000b440) at /home/travis/src/sql/sql_parse.cc:6282
      #20 0x00005558c43dc834 in mysql_parse (thd=0x7fc99000b440, rawbuf=0x7fc99001e1b8 "OPTIMIZE TABLE t6 /* QNO 14400 CON_ID 16 */", length=43, parser_state=0x7fc9d82035e0, is_com_multi=false, is_next_command=false) at /home/travis/src/sql/sql_parse.cc:8001
      #21 0x00005558c43ca058 in dispatch_command (command=COM_QUERY, thd=0x7fc99000b440, packet=0x7fc9900159f1 "", packet_length=44, is_com_multi=false, is_next_command=false) at /home/travis/src/sql/sql_parse.cc:1846
      #22 0x00005558c43c8aa4 in do_command (thd=0x7fc99000b440) at /home/travis/src/sql/sql_parse.cc:1391
      #23 0x00005558c452c70b in do_handle_one_connection (connect=0x5558c8b0a160) at /home/travis/src/sql/sql_connect.cc:1402
      #24 0x00005558c452c498 in handle_one_connection (arg=0x5558c8b0a160) at /home/travis/src/sql/sql_connect.cc:1308
      #25 0x00007fc9dbe68184 in start_thread (arg=0x7fc9d8204700) at pthread_create.c:312
      #26 0x00007fc9db37503d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
      

      experimental 745dc5101b2c4e986d8d421d85c6617f343d25b5

      perl /home/travis/rqg/runall-new.pl --duration=350 --threads=6 --redefine=conf/mariadb/alter_table.yy --reporters=Backtrace,ErrorLog,Deadlock --engine=InnoDB --seed=1524922891 --basedir=/home/travis/server --mysqld=--max-statement-time=30 --mysqld=--loose-debug_assert_on_not_freed_memory=0 --grammar=conf/runtime/metadata_stability.yy --gendata=conf/runtime/metadata_stability.zz --engine=InnoDB --mysqld=--loose-innodb-sync-debug --vardir=/home/travis/logs/vardir1_3
      

      Can't reproduce right away, hitting MDEV-14864 instead.

      Attachments

        1. threads
          62 kB
          Elena Stepanova

        Issue Links

          Activity

            People

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