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

Update handle_binlog_flush_or_sync_error() to set my_ok(thd) after thd->clear_error() to correct assert in THD::send_statement_status

Details

    • Bug
    • Status: Done
    • Medium
    • Resolution: Fixed
    • 5.7.24-26, 8.0.13-3
    • 8.0.15-5, 5.7.31-34
    • None

    Description

      No tmpdir space can cause a DBUG_ASSERT(0) call in send_statement_status().
      This issue breaks rpl.rpl_bug72457_innodb and rpl.rpl_bug72457_myisam

      Program terminated with signal SIGABRT, Aborted.
      #0  __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
      57      ../sysdeps/unix/sysv/linux/pthread_kill.c: No such file or directory.
      [Current thread is 1 (Thread 0x7f71e0058700 (LWP 20794))]
      #0  __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
      #1  0x00005577f6e52c0c in my_write_core (sig=6) at /github/percona-server/mysql-8.0/mysys/stacktrace.cc:278
      #2  0x00005577f5b28d80 in handle_fatal_signal (sig=6) at /github/percona-server/mysql-8.0/sql/signal_handler.cc:249
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
      #5  0x00007f71ef76c801 in __GI_abort () at abort.c:79
      #6  0x00007f71ef75c39a in __assert_fail_base (fmt=0x7f71ef8e37d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x5577f7d8a4b1 "0",
      file=file@entry=0x5577f7d8ac88 "/github/percona-server/mysql-8.0/sql/sql_class.cc",
      line=line@entry=2618, function=function@entry=0x5577f7d8c8c0 <THD::send_statement_status()::__PRETTY_FUNCTION__> "void THD::send_statement_status()") at assert.c:92
      #7  0x00007f71ef75c412 in __GI___assert_fail (assertion=0x5577f7d8a4b1 "0", file=0x5577f7d8ac88 "/github/percona-server/mysql-8.0/sql/sql_class.cc", line=2618,
      function=0x5577f7d8c8c0 <THD::send_statement_status()::__PRETTY_FUNCTION__> "void THD::send_statement_status()") at assert.c:101
      #8  0x00005577f58e6909 in THD::send_statement_status (this=0x7f7134000e40) at
      /github/percona-server/mysql-8.0/sql/sql_class.cc:2618
      #9  0x00005577f596df5d in dispatch_command (thd=0x7f7134000e40, com_data=0x7f71e0057c90, command=COM_QUERY) at
      /github/percona-server/mysql-8.0/sql/sql_parse.cc:2048
      #10 0x00005577f596b026 in do_command (thd=0x7f7134000e40) at /github/percona-server/mysql-8.0/sql/sql_parse.cc:1260
      #11 0x00005577f5b14b2e in handle_connection (arg=0x5577fb4b9ec0) at /github/percona-server/mysql-8.0/sql/conn_handler/connection_handler_per_thread.cc:308
      #12 0x00005577f7427b74 in pfs_spawn_thread (arg=0x5577fb514da0) at /github/percona-server/mysql-8.0/storage/perfschema/pfs.cc:2836
      #13 0x00007f71f24736db in start_thread (arg=0x7f71e0058700) at pthread_create.c:463
      #14 0x00007f71ef84d88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Attachments

        Activity

          People

            przemyslaw.skibinski Przemyslaw Skibinski
            przemyslaw.skibinski Przemyslaw Skibinski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 2 hours
                1d 2h

                Smart Checklist