Uploaded image for project: 'Percona Server'
  1. Percona Server
  2. PS-4783

assertion=assertion@entry=0x208d2d8 "innodb_trx_id == 0 || innodb_trx_id == trx_id"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: On Hold
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 5.7
    • Fix Version/s: None
    • Component/s: None

      Description

      SQL:

      CREATE DATABASE test;
      USE test;
      SET SESSION log_slow_verbosity='microtime,innodb,query_plan';
      CREATE TEMPORARY TABLE t1(c1 DATE);
      SET GLOBAL SLOW_QUERY_LOG=ON;
      INSERT INTO t1 VALUES();
      ALTER TABLE t1 CHANGE c1 c1 BLOB;
      
      (gdb) bt
      +bt
      #0  0x00007fb1df567a01 in __pthread_kill (threadid=<optimized out>, signo=6) at ../nptl/sysdeps/unix/sysv/linux/pthread_kill.c:61
      #1  0x000000000187fa59 in my_write_core (sig=6) at /home/hrvoje/worktable/PS-5.7.23_dbg/mysys/stacktrace.c:249
      #2  0x0000000000e9e3bb in handle_fatal_signal (sig=6) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/signal_handler.cc:223
      #3  <signal handler called>
      #4  0x00007fb1dd66b277 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
      #5  0x00007fb1dd66c968 in __GI_abort () at abort.c:90
      #6  0x00007fb1dd664096 in __assert_fail_base (fmt=0x7fb1dd7bf580 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x208d2d8 "innodb_trx_id == 0 || innodb_trx_id == trx_id", file=file@entry=0x208d230 "/home/hrvoje/wor
      ktable/PS-5.7.23_dbg/sql/sql_class.h", line=line@entry=2228, function=function@entry=0x208e8c0 <THD::mark_innodb_used(unsigned long long)::__PRETTY_FUNCTION__> "void THD::mark_innodb_used(ulonglong)") at assert.c:92
      #7  0x00007fb1dd664142 in __GI___assert_fail (assertion=0x208d2d8 "innodb_trx_id == 0 || innodb_trx_id == trx_id", file=0x208d230 "/home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_class.h", line=2228, function=0x208e8c0 <THD::mark_innodb_used
      (unsigned long long)::__PRETTY_FUNCTION__> "void THD::mark_innodb_used(ulonglong)") at assert.c:101
      #8  0x00000000014e52a4 in THD::mark_innodb_used (this=0x7fb19f419000, trx_id=0) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_class.h:2228
      #9  0x00000000014d81e9 in thd_report_innodb_stat (thd=0x7fb19f419000, trx_id=0, type=MYSQL_TRX_STAT_ACCESS_PAGE_ID, value=23068729) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_class.cc:892
      #10 0x0000000001c6fc0e in trx_stats::inc_page_get (trx=..., page_id_fold=23068729) at /home/hrvoje/worktable/PS-5.7.23_dbg/storage/innobase/include/trx0trx.h:1535
      #11 0x0000000001c6fbd2 in trx_stats::inc_page_get (trx=0x7fb1ce800a80, page_id_fold=23068729) at /home/hrvoje/worktable/PS-5.7.23_dbg/storage/innobase/include/trx0trx.h:1528
      #12 0x0000000001c68afe in buf_page_get_gen (page_id=..., page_size=..., rw_latch=2, guess=0x0, mode=10, file=0x22a9e60 "/home/hrvoje/worktable/PS-5.7.23_dbg/storage/innobase/btr/btr0btr.cc", line=1258, mtr=0x7fb1dfb59540, dirty_with_no_la
      tch=false) at /home/hrvoje/worktable/PS-5.7.23_dbg/storage/innobase/buf/buf0buf.cc:4716
      #13 0x0000000001c1a432 in btr_free (page_id=..., page_size=...) at /home/hrvoje/worktable/PS-5.7.23_dbg/storage/innobase/btr/btr0btr.cc:1257
      #14 0x0000000001ca1aee in dict_drop_index_tree_in_mem (index=0x7fb19f432ba0, page_no=35) at /home/hrvoje/worktable/PS-5.7.23_dbg/storage/innobase/dict/dict0crea.cc:1189
      #15 0x0000000001b27cc2 in row_drop_table_for_mysql (name=0x7fb1dfb5a750 "tmp/#sql7316_4_0", trx=0x7fb1ce800fb0, drop_db=false, nonatomic=true, handler=0x0) at /home/hrvoje/worktable/PS-5.7.23_dbg/storage/innobase/row/row0mysql.cc:5215
      #16 0x00000000019c59ce in ha_innobase::delete_table (this=0x7fb19f52b030, name=0x7fb19f4cbb68 "/dev/shm/1535139631/tmp/#sql7316_4_0") at /home/hrvoje/worktable/PS-5.7.23_dbg/storage/innobase/handler/ha_innodb.cc:13537
      #17 0x0000000000f35018 in handler::ha_delete_table (this=0x7fb19f52b030, name=0x7fb19f4cbb68 "/dev/shm/1535139631/tmp/#sql7316_4_0") at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/handler.cc:5241
      #18 0x00000000014bca8f in rm_temporary_table (base=0x7fb1d47f2560, path=0x7fb19f4cbb68 "/dev/shm/1535139631/tmp/#sql7316_4_0") at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_base.cc:7076
      #19 0x00000000014b4b34 in close_temporary (table=0x7fb19f4cae20, free_share=true, delete_table=true) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_base.cc:2536
      #20 0x00000000014b49e0 in close_temporary_table (thd=0x7fb19f419000, table=0x7fb19f4cae20, free_share=true, delete_table=true) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_base.cc:2504
      #21 0x00000000015de085 in mysql_alter_table (thd=0x7fb19f419000, new_db=0x7fb19f427f70 "test", new_name=0x0, create_info=0x7fb1dfb5cad0, table_list=0x7fb19f4279e8, alter_info=0x7fb1dfb5ca00) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql
      _table.cc:10484
      #22 0x000000000174fe00 in Sql_cmd_alter_table::execute (this=0x7fb19f428070, thd=0x7fb19f419000) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_alter.cc:347
      #23 0x0000000001545326 in mysql_execute_command (thd=0x7fb19f419000, first_level=true) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_parse.cc:5089
      #24 0x0000000001547305 in mysql_parse (thd=0x7fb19f419000, parser_state=0x7fb1dfb5e470) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_parse.cc:5873
      #25 0x000000000153c179 in dispatch_command (thd=0x7fb19f419000, com_data=0x7fb1dfb5ec50, command=COM_QUERY) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_parse.cc:1516
      #26 0x000000000153b001 in do_command (thd=0x7fb19f419000) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_parse.cc:1047
      #27 0x000000000167b6ca in handle_connection (arg=0x7fb1c33015b0) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/conn_handler/connection_handler_per_thread.cc:312
      #28 0x00000000018a3644 in pfs_spawn_thread (arg=0x7fb1db818f20) at /home/hrvoje/worktable/PS-5.7.23_dbg/storage/perfschema/pfs.cc:2190
      #29 0x00007fb1df562e25 in start_thread (arg=0x7fb1dfb5f700) at pthread_create.c:308
      #30 0x00007fb1dd733bad in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
      

      Reproduced with: https://github.com/percona/percona-server/tree/release-5.7.23-23
      Couldn't reproduce with upstream 5.7.23.

      This is seen frequently.

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  hrvoje.matijakovic Hrvoje Matijakovic
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 8 minutes
                    8m