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

Assertion `share->rows_recorded' failed in ha_tina::delete_row

    XMLWordPrintable

Details

    Description

      USE test;
      CREATE TEMPORARY TABLE t(c INT NOT NULL) ENGINE=CSV;
      INSERT INTO t VALUES(1);
      REPAIR TABLE t;
      DELETE FROM t;
      

      Leads to:

      10.5.6 c5517cd86440b6669509211b1ad10f837a929952 (Debug)

      mysqld: /test/10.5_dbg/storage/csv/ha_tina.cc:1141: virtual int ha_tina::delete_row(const uchar*): Assertion `share->rows_recorded' failed.
      

      10.5.6 c5517cd86440b6669509211b1ad10f837a929952 (Debug)

      Core was generated by `/test/MD080920-mariadb-10.5.6-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
          at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
      [Current thread is 1 (Thread 0x14b2347e5700 (LWP 715338))]
      (gdb) bt
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
      #1  0x000055bf400bb4e8 in my_write_core (sig=sig@entry=6) at /test/10.5_dbg/mysys/stacktrace.c:424
      #2  0x000055bf3f88256b in handle_fatal_signal (sig=6) at /test/10.5_dbg/sql/signal_handler.cc:330
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
      #5  0x000014b232a7b8b1 in __GI_abort () at abort.c:79
      #6  0x000014b232a6b42a in __assert_fail_base (fmt=0x14b232bf2a38 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x55bf4049ee7c "share->rows_recorded", file=file@entry=0x55bf4049ecf0 "/test/10.5_dbg/storage/csv/ha_tina.cc", line=line@entry=1141, function=function@entry=0x55bf4049f220 <ha_tina::delete_row(unsigned char const*)::__PRETTY_FUNCTION__> "virtual int ha_tina::delete_row(const uchar*)") at assert.c:92
      #7  0x000014b232a6b4a2 in __GI___assert_fail (assertion=assertion@entry=0x55bf4049ee7c "share->rows_recorded", file=file@entry=0x55bf4049ecf0 "/test/10.5_dbg/storage/csv/ha_tina.cc", line=line@entry=1141, function=function@entry=0x55bf4049f220 <ha_tina::delete_row(unsigned char const*)::__PRETTY_FUNCTION__> "virtual int ha_tina::delete_row(const uchar*)") at assert.c:101
      #8  0x000055bf3fc2c93f in ha_tina::delete_row (this=0x14b2104890a0, buf=<optimized out>) at /test/10.5_dbg/storage/csv/ha_tina.cc:1141
      #9  0x000055bf3f89749d in handler::ha_delete_row (this=0x14b2104890a0, buf=0x14b2104525a8 "") at /test/10.5_dbg/sql/handler.cc:7253
      #10 0x000055bf3fa4d0bd in TABLE::delete_row (this=0x14b210452088) at /test/10.5_dbg/sql/sql_delete.cc:277
      #11 0x000055bf3fa4c12a in mysql_delete (thd=thd@entry=0x14b210415088, table_list=0x14b210474168, conds=<optimized out>, order_list=order_list@entry=0x14b210419cc0, limit=18446744073709551615, options=<optimized out>, result=<optimized out>) at /test/10.5_dbg/sql/sql_delete.cc:794
      #12 0x000055bf3f5d1963 in mysql_execute_command (thd=thd@entry=0x14b210415088) at /test/10.5_dbg/sql/sql_parse.cc:4780
      #13 0x000055bf3f5dc4b8 in mysql_parse (thd=thd@entry=0x14b210415088, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14b2347e4350, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:7994
      #14 0x000055bf3f5c8ee8 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14b210415088, packet=packet@entry=0x14b210467089 "DELETE FROM t", packet_length=packet_length@entry=13, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:1867
      #15 0x000055bf3f5c76d2 in do_command (thd=0x14b210415088) at /test/10.5_dbg/sql/sql_parse.cc:1348
      #16 0x000055bf3f726a27 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x14b2138d4808, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1410
      #17 0x000055bf3f72714b in handle_one_connection (arg=arg@entry=0x14b2138d4808) at /test/10.5_dbg/sql/sql_connect.cc:1312
      #18 0x000055bf3fb91784 in pfs_spawn_thread (arg=0x14b231446508) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
      #19 0x000014b23375e6db in start_thread (arg=0x14b2347e5700) at pthread_create.c:463
      #20 0x000014b232b5ca3f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.1.47 (dbg), 10.2.34 (dbg), 10.3.25 (dbg), 10.4.15 (dbg), 10.5.6 (dbg)
      MySQL: 5.5.62 (dbg), 5.6.47 (dbg), 5.7.29 (dbg), 8.0.19 (dbg)

      Bug confirmed not present in:
      MariaDB: 10.1.47 (opt), 10.2.34 (opt), 10.3.25 (opt), 10.4.15 (opt), 10.5.6 (opt)
      MySQL: 5.5.62 (opt), 5.6.47 (opt), 5.7.29 (opt), 8.0.19 (opt)

      Attachments

        Activity

          People

            sanja Oleksandr Byelkin
            Roel Roel Van de Paar
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.