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

Assertion `info->read_pos == info->read_end' failed | size_t my_b_fill(IO_CACHE*)

    XMLWordPrintable

    Details

      Description

      Testcase

      rm -Rf /dev/shm/qa/ps80_dbg/data
      
      /dev/shm/qa/ps80_dbg/bin/mysqld --no-defaults --initialize-insecure --basedir=/dev/shm/qa/ps80_dbg --datadir=/dev/shm/qa/ps80_dbg/data
      
      /dev/shm/qa/ps80_dbg/bin/mysqld --no-defaults --core-file --basedir=/dev/shm/qa/ps80_dbg --tmpdir=/dev/shm/qa/ps80_dbg/data --datadir=/dev/shm/qa/ps80_dbg/data --socket=/dev/shm/qa/ps80_dbg/socket.sock --port=12185 --log-error=/dev/shm/qa/ps80_dbg/log/master.err --server-id=100 --early-plugin-load=keyring_file.so --keyring_file_data=keyring --encrypt_tmp_files=1
      
      CREATE DATABASE IF NOT EXISTS test;
      
      

      GDB info

      #0  __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:62
      #1  0x00000000045c089d in my_write_core (sig=6) at /qa/ps8/PS-8.0_dbg/mysys/stacktrace.cc:278
      #2  0x000000000344fd38 in handle_fatal_signal (sig=6) at /qa/ps8/PS-8.0_dbg/sql/signal_handler.cc:254
      #3  <signal handler called>
      #4  0x00007fe1f8703428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
      #5  0x00007fe1f870502a in __GI_abort () at abort.c:89
      #6  0x00007fe1f86fbbd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x5bf7670 "info->read_pos == info->read_end", file=file@entry=0x5bf7568 "/qa/ps8/PS-8.0_dbg/mysys/mf_iocache2.cc", line=line@entry=210, function=function@entry=0x5bf7750 <my_b_fill(IO_CACHE*)::__PRETTY_FUNCTION__> "size_t my_b_fill(IO_CACHE*)") at assert.c:92
      #7  0x00007fe1f86fbc82 in __GI___assert_fail (assertion=0x5bf7670 "info->read_pos == info->read_end", file=0x5bf7568 "/qa/ps8/PS-8.0_dbg/mysys/mf_iocache2.cc", line=210, function=0x5bf7750 <my_b_fill(IO_CACHE*)::__PRETTY_FUNCTION__> "size_t my_b_fill(IO_CACHE*)") at assert.c:101
      #8  0x0000000004597418 in my_b_fill (info=0x7fe1c6082c18) at /qa/ps8/PS-8.0_dbg/mysys/mf_iocache2.cc:210
      #9  0x00000000041c2668 in IO_CACHE_binlog_cache_storage::next (this=0x7fe1c6082c10, buffer=0x7fe1f844c198, length=0x7fe1f844c1a0) at /qa/ps8/PS-8.0_dbg/sql/binlog_ostream.cc:113
      #10 0x00000000041c25fe in IO_CACHE_binlog_cache_storage::begin (this=0x7fe1c6082c10, buffer=0x7fe1f844c198, length=0x7fe1f844c1a0) at /qa/ps8/PS-8.0_dbg/sql/binlog_ostream.cc:108
      #11 0x00000000041bb4dd in stream_copy<IO_CACHE_binlog_cache_storage, Basic_ostream> (istream=0x7fe1c6082c10, ostream=0x7fe1f844c340, ostream_error=0x7fe1f844c217) at /qa/ps8/PS-8.0_dbg/sql/binlog_ostream.h:39
      #12 0x00000000041b6deb in Binlog_cache_storage::copy_to (this=0x7fe1c6082c00, ostream=0x7fe1f844c340, ostream_error=0x7fe1f844c217) at /qa/ps8/PS-8.0_dbg/sql/binlog_ostream.h:189
      #13 0x00000000041aa87a in MYSQL_BIN_LOG::do_write_cache (this=0x6e43600 <mysql_bin_log>, cache=0x7fe1c6082c00, writer=0x7fe1f844c340) at /qa/ps8/PS-8.0_dbg/sql/binlog.cc:7173
      #14 0x00000000041ab435 in MYSQL_BIN_LOG::write_cache (this=0x6e43600 <mysql_bin_log>, thd=0x7fe1c6024000, cache_data=0x7fe1c6082bb8, writer=0x7fe1f844c340) at /qa/ps8/PS-8.0_dbg/sql/binlog.cc:7426
      #15 0x0000000004198505 in binlog_cache_data::flush (this=0x7fe1c6082bb8, thd=0x7fe1c6024000, bytes_written=0x7fe1f844c400, wrote_xid=0x7fe1f844c433) at /qa/ps8/PS-8.0_dbg/sql/binlog.cc:1770
      #16 0x00000000041ba199 in binlog_cache_mngr::flush (this=0x7fe1c6082a20, thd=0x7fe1c6024000, bytes_written=0x7fe1f844c438, wrote_xid=0x7fe1f844c433) at /qa/ps8/PS-8.0_dbg/sql/binlog.cc:1056
      #17 0x00000000041ae002 in MYSQL_BIN_LOG::flush_thread_caches (this=0x6e43600 <mysql_bin_log>, thd=0x7fe1c6024000) at /qa/ps8/PS-8.0_dbg/sql/binlog.cc:8140
      #18 0x00000000041ae22b in MYSQL_BIN_LOG::process_flush_stage_queue (this=0x6e43600 <mysql_bin_log>, total_bytes_var=0x7fe1f844c530, rotate_var=0x7fe1f844c522, out_queue_var=0x7fe1f844c538) at /qa/ps8/PS-8.0_dbg/sql/binlog.cc:8199
      #19 0x00000000041afab7 in MYSQL_BIN_LOG::ordered_commit (this=0x6e43600 <mysql_bin_log>, thd=0x7fe1c6024000, all=true, skip_commit=false) at /qa/ps8/PS-8.0_dbg/sql/binlog.cc:8774
      #20 0x00000000041ade6a in MYSQL_BIN_LOG::commit (this=0x6e43600 <mysql_bin_log>, thd=0x7fe1c6024000, all=true) at /qa/ps8/PS-8.0_dbg/sql/binlog.cc:8102
      #21 0x0000000002ed151a in ha_commit_trans (thd=0x7fe1c6024000, all=true, ignore_global_read_lock=false) at /qa/ps8/PS-8.0_dbg/sql/handler.cc:1721
      #22 0x00000000033edc21 in trans_commit (thd=0x7fe1c6024000, ignore_global_read_lock=false) at /qa/ps8/PS-8.0_dbg/sql/transaction.cc:251
      #23 0x00000000031ee97c in mysql_create_db (thd=0x7fe1c6024000, db=0x7fe1c60729f0 "test", create_info=0x7fe1f844e090) at /qa/ps8/PS-8.0_dbg/sql/sql_db.cc:380
      #24 0x000000000327b922 in mysql_execute_command (thd=0x7fe1c6024000, first_level=true) at /qa/ps8/PS-8.0_dbg/sql/sql_parse.cc:3689
      #25 0x0000000003280c91 in mysql_parse (thd=0x7fe1c6024000, parser_state=0x7fe1f844f2c0, update_userstat=false, force_primary_storage_engine=false) at /qa/ps8/PS-8.0_dbg/sql/sql_parse.cc:5259
      #26 0x0000000003275c07 in dispatch_command (thd=0x7fe1c6024000, com_data=0x7fe1f844fc90, command=COM_QUERY) at /qa/ps8/PS-8.0_dbg/sql/sql_parse.cc:1734
      #27 0x000000000327417e in do_command (thd=0x7fe1c6024000) at /qa/ps8/PS-8.0_dbg/sql/sql_parse.cc:1290
      #28 0x00000000034394fe in handle_connection (arg=0x7fe1e217f400) at /qa/ps8/PS-8.0_dbg/sql/conn_handler/connection_handler_per_thread.cc:317
      #29 0x00000000046b791a in pfs_spawn_thread (arg=0x7fe1e2188220) at /qa/ps8/PS-8.0_dbg/storage/perfschema/pfs.cc:2836
      #30 0x00007fe1fa4216ba in start_thread (arg=0x7fe1f8450700) at pthread_create.c:333
      #31 0x00007fe1f87d541d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
      

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  laurynas.biveinis Laurynas Biveinis
                  Reporter:
                  ramesh.sivaraman Ramesh Sivaraman
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 2 hours, 44 minutes
                    2h 44m