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

DRAFT: trx0rec.cc:230: byte* trx_undo_log_v_idx(buf_block_t*, const dict_table_t*, ulint, byte*, bool): Assertion `n_idx > 0' failed.

    XMLWordPrintable

Details

    Description

      Assert hit during RQG testing
      origin/10.5 c24253d0fa3161b0703630b0fbdcb98d235073a5 2019-12-16 compiled with debug
      ...
      Version: '10.5.1-MariaDB-debug-log'  socket: '/dev/shm/vardir/1576514062/9/1/mysql.sock'  port: 28760  Source distribution
      mysqld: storage/innobase/trx/trx0rec.cc:230: byte* trx_undo_log_v_idx(buf_block_t*, const dict_table_t*, ulint, byte*, bool): Assertion `n_idx > 0' failed.
      191216 17:50:25 [ERROR] mysqld got signal 6 ;
      ...
      Query (0x7ff120011770): INSERT INTO t3 (col1,col2, col_text_g, col_string, col_text) VALUES ( 314, 314, 314 - 1, REPEAT(SUBSTR(CAST( 314 AS CHAR),1,1), 10), REPEAT(SUBSTR(CAST( 314 AS CHAR),1,1), @fill_amount) ) /* E_R Thread3 QNO 8291 CON_ID 13 */
      Connection ID (thread ID): 13
      Status: NOT_KILLED
       
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
      #5  0x00007ff18120af5d in __GI_abort () at abort.c:90
      #6  0x00007ff181200f17 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x5558bbe0a3e8 "n_idx > 0", file=file@entry=0x5558bbe0a310 "storage/innobase/trx/trx0rec.cc", line=line@entry=230, function=function@entry=0x5558bbe0baa0 <trx_undo_log_v_idx(buf_block_t*, dict_table_t const*, unsigned long, unsigned char*, bool)::__PRETTY_FUNCTION__> "byte* trx_undo_log_v_idx(buf_block_t*, const dict_table_t*, ulint, byte*, bool)") at assert.c:92
      #7  0x00007ff181200fc2 in __GI___assert_fail (assertion=0x5558bbe0a3e8 "n_idx > 0", file=0x5558bbe0a310 "storage/innobase/trx/trx0rec.cc", line=230, function=0x5558bbe0baa0 <trx_undo_log_v_idx(buf_block_t*, dict_table_t const*, unsigned long, unsigned char*, bool)::__PRETTY_FUNCTION__> "byte* trx_undo_log_v_idx(buf_block_t*, const dict_table_t*, ulint, byte*, bool)") at assert.c:101
      #8  0x00005558bb69a04a in trx_undo_log_v_idx (undo_block=0x7ff15f84a320, table=0x7ff0e8069eb8, pos=0, ptr=0x7ff160aaf45e "", first_v_col=true) at storage/innobase/trx/trx0rec.cc:230
      #9  0x00005558bb69a581 in trx_undo_report_insert_virtual (undo_block=0x7ff15f84a320, table=0x7ff0e8069eb8, row=0x7ff120060258, ptr=0x7ff17805c458) at storage/innobase/trx/trx0rec.cc:403
      #10 0x00005558bb69ac8c in trx_undo_page_report_insert (undo_block=0x7ff15f84a320, trx=0x7ff16c21b390, index=0x7ff12c3439b8, clust_entry=0x7ff120060258, mtr=0x7ff17805c550) at storage/innobase/trx/trx0rec.cc:528
      #11 0x00005558bb6a06d2 in trx_undo_report_row_operation (thr=0x7ff120093500, index=0x7ff12c3439b8, clust_entry=0x7ff120060258, update=0x0, cmpl_info=0, rec=0x0, offsets=0x0, roll_ptr=0x7ff17805cad0) at storage/innobase/trx/trx0rec.cc:2113
      #12 0x00005558bb7077c6 in btr_cur_ins_lock_and_undo (flags=0, cursor=0x7ff17805cc70, entry=0x7ff120060258, thr=0x7ff120093500, mtr=0x7ff17805cfd0, inherit=0x7ff17805cb3a) at storage/innobase/btr/btr0cur.cc:3277
      #13 0x00005558bb70927d in btr_cur_pessimistic_insert (flags=0, cursor=0x7ff17805cc70, offsets=0x7ff17805cc08, heap=0x7ff17805cc00, entry=0x7ff120060258, rec=0x7ff17805cc10, big_rec=0x7ff17805cbf8, n_ext=0, thr=0x7ff120093500, mtr=0x7ff17805cfd0) at storage/innobase/btr/btr0cur.cc:3675
      #14 0x00005558bb5be17e in row_ins_clust_index_entry_low (flags=0, mode=33, index=0x7ff12c3439b8, n_uniq=1, entry=0x7ff120060258, n_ext=0, thr=0x7ff120093500) at storage/innobase/row/row0ins.cc:2780
      #15 0x00005558bb5bf9fc in row_ins_clust_index_entry (index=0x7ff12c3439b8, entry=0x7ff120060258, thr=0x7ff120093500, n_ext=0) at storage/innobase/row/row0ins.cc:3251
      #16 0x00005558bb5bfe34 in row_ins_index_entry (index=0x7ff12c3439b8, entry=0x7ff120060258, thr=0x7ff120093500) at storage/innobase/row/row0ins.cc:3359
      #17 0x00005558bb5c06aa in row_ins_index_entry_step (node=0x7ff120093000, thr=0x7ff120093500) at storage/innobase/row/row0ins.cc:3528
      #18 0x00005558bb5c0ace in row_ins (node=0x7ff120093000, thr=0x7ff120093500) at storage/innobase/row/row0ins.cc:3664
      #19 0x00005558bb5c127a in row_ins_step (thr=0x7ff120093500) at storage/innobase/row/row0ins.cc:3807
      #20 0x00005558bb5e65c7 in row_insert_for_mysql (mysql_rec=0x7ff1200895a0 "\330:\001", prebuilt=0x7ff1200929b8, ins_mode=ROW_INS_NORMAL) at storage/innobase/row/row0mysql.cc:1463
      #21 0x00005558bb43ddd8 in ha_innobase::write_row (this=0x7ff1200797f0, record=0x7ff1200895a0 "\330:\001") at storage/innobase/handler/ha_innodb.cc:7810
      #22 0x00005558bb0746f8 in handler::ha_write_row (this=0x7ff1200797f0, buf=0x7ff1200895a0 "\330:\001") at sql/handler.cc:6657
      #23 0x00005558bacd3aa0 in write_record (thd=0x7ff120000ce8, table=0x7ff12008b648, info=0x7ff17805dc80, sink=0x0) at sql/sql_insert.cc:2056
      #24 0x00005558bacd0a64 in mysql_insert (thd=0x7ff120000ce8, table_list=0x7ff1200119e0, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false, result=0x0) at sql/sql_insert.cc:1081
      #25 0x00005558bad213da in mysql_execute_command (thd=0x7ff120000ce8) at sql/sql_parse.cc:4504
      #26 0x00005558bad2de54 in mysql_parse (thd=0x7ff120000ce8, rawbuf=0x7ff120011770 "INSERT INTO t3 (col1,col2, col_text_g, col_string, col_text) VALUES ( 314, 314, 314 - 1, REPEAT(SUBSTR(CAST( 314 AS CHAR),1,1), 10), REPEAT(SUBSTR(CAST( 314 AS CHAR),1,1), @fill_amount) ) /* E_R Thread3 QNO 8291 CON_ID 13 */", length=224, parser_state=0x7ff17805e5b0, is_com_multi=false, is_next_command=false) at sql/sql_parse.cc:7988
      #27 0x00005558bad18efa in dispatch_command (command=COM_QUERY, thd=0x7ff120000ce8, packet=0x7ff120008419 "INSERT INTO t3 (col1,col2, col_text_g, col_string, col_text) VALUES ( 314, 314, 314 - 1, REPEAT(SUBSTR(CAST( 314 AS CHAR),1,1), 10), REPEAT(SUBSTR(CAST( 314 AS CHAR),1,1), @fill_amount) ) /* E_R Thread3 QNO 8291 CON_ID 13 */ ", packet_length=225, is_com_multi=false, is_next_command=false) at sql/sql_parse.cc:1845
      #28 0x00005558bad17653 in do_command (thd=0x7ff120000ce8) at sql/sql_parse.cc:1363
      #29 0x00005558baeb6f12 in do_handle_one_connection (connect=0x5558c04f9028, put_in_cache=true) at sql/sql_connect.cc:1422
      #30 0x00005558baeb6c46 in handle_one_connection (arg=0x5558c05ea888) at sql/sql_connect.cc:1319
       
      The RQG test simplifier is already running.
      In the moment its unknown if the problem affects versions < 10.5 too,
      
      

      Attachments

        Issue Links

          Activity

            People

              nikitamalyavin Nikita Malyavin
              mleich Matthias Leich
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.