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

assertion@entry=0x1e00a30 "!table || !table->in_use || table->in_use == _current_thd()"

    Details

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

      Description

      gdb:

      (gdb) bt
      +bt
      #0  0x00007efdc70e8a01 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  0x00007efdc51ec277 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
      #5  0x00007efdc51ed968 in __GI_abort () at abort.c:90
      #6  0x00007efdc51e5096 in __assert_fail_base (fmt=0x7efdc5340580 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x1e00a30 "!table || !table->in_use || table->in_use == _current_thd()", file=file@entry=0x1dffd38 "/home/hrvoje/worktable/PS-5.7.23_dbg/sql/handler.cc", line=line@entry=2859, function=function@entry=0x1e03110 <handler::ha_thd() const::__PRETTY_FUNCTION__> "THD* handler::ha_thd() const") at assert.c:92
      #7  0x00007efdc51e5142 in __GI___assert_fail (assertion=0x1e00a30 "!table || !table->in_use || table->in_use == _current_thd()", file=0x1dffd38 "/home/hrvoje/worktable/PS-5.7.23_dbg/sql/handler.cc", line=2859, function=0x1e03110 <handler::ha_thd() const::__PRETTY_FUNCTION__> "THD* handler::ha_thd() const") at assert.c:101
      #8  0x0000000000f2e999 in handler::ha_thd (this=0x7efd86cb0830) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/handler.cc:2859
      #9  0x0000000000f344ac in handler::mark_trx_read_write (this=0x7efd86cb0830) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/handler.cc:4867
      #10 0x0000000000f3be40 in handler::ha_write_row (this=0x7efd86cb0830, buf=0x7efd86cfb030 "\001\264\376\003") at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/handler.cc:8516
      #11 0x00000000015ab5fb in schema_table_store_record (thd=0x7efd86c19000, table=0x7efd86cf9030) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_show.cc:3523
      #12 0x00000000015b1034 in get_schema_tables_record (thd=0x7efd86c19000, tables=0x7efd86e2b7f8, table=0x7efd86cf9030, res=false, db_name=0x7efd86c87030, table_name=0x7efd86e15f68) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_show.cc:5804
      #13 0x00000000015ad2ca in fill_schema_table_by_open (thd=0x7efd86c19000, mem_root=0x7efdc76dd9e0, is_show_fields_or_keys=false, table=0x7efd86cf9030, schema_table=0x2c4c780 <schema_tables+1856>, orig_db_name=0x7efd86c87030, orig_table_name=0x7efd86e15f68, open_tables_state_backup=0x7efdc76dda40, can_deadlock=false) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_show.cc:4356
      #14 0x00000000015af5c2 in get_all_tables (thd=0x7efd86c19000, tables=0x7efd86c27cc8, cond=0x0) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_show.cc:5345
      #15 0x00000000015bd89e in do_fill_table (thd=0x7efd86c19000, table_list=0x7efd86c27cc8, qep_tab=0x7efd86d0b538) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_show.cc:8792
      #16 0x00000000015bdd96 in get_schema_tables_result (join=0x7efd86d0ae58, executed_place=PROCESSED_BY_JOIN_EXEC) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_show.cc:8922
      #17 0x0000000001593e13 in JOIN::prepare_result (this=0x7efd86d0ae58) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_select.cc:910
      #18 0x00000000014f63e0 in JOIN::exec (this=0x7efd86d0ae58) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_executor.cc:124
      #19 0x00000000015929e9 in handle_query (thd=0x7efd86c19000, lex=0x7efd86c1b638, result=0x7efd86cf7d98, added_options=0, removed_options=0) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_select.cc:185
      #20 0x0000000001546293 in execute_sqlcom_select (thd=0x7efd86c19000, all_tables=0x7efd86c27cc8) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_parse.cc:5417
      #21 0x000000000153f66d in mysql_execute_command (thd=0x7efd86c19000, first_level=true) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_parse.cc:2961
      #22 0x0000000001547305 in mysql_parse (thd=0x7efd86c19000, parser_state=0x7efdc76df470) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_parse.cc:5873
      #23 0x000000000153c179 in dispatch_command (thd=0x7efd86c19000, com_data=0x7efdc76dfc50, command=COM_QUERY) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_parse.cc:1516
      #24 0x000000000153b001 in do_command (thd=0x7efd86c19000) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/sql_parse.cc:1047
      #25 0x000000000167b6ca in handle_connection (arg=0x7efdaab015b0) at /home/hrvoje/worktable/PS-5.7.23_dbg/sql/conn_handler/connection_handler_per_thread.cc:312
      #26 0x00000000018a3644 in pfs_spawn_thread (arg=0x7efdc3018e20) at /home/hrvoje/worktable/PS-5.7.23_dbg/storage/perfschema/pfs.cc:2190
      #27 0x00007efdc70e3e25 in start_thread (arg=0x7efdc76e0700) at pthread_create.c:308
      #28 0x00007efdc52b4bad in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
      

      sql:

      # mysqld options required for replay:  --log-slow-verbosity=innodb
      SET @@session.tmp_table_size=65535;
      SET GLOBAL slow_query_log=ON;
      SELECT * FROM information_schema.tables;
      

      Reproduced with: https://github.com/percona/percona-server/tree/release-5.7.23-23

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated: