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

Assertion `!writer.checksum_len || writer.remains == 0' failed in Event_log::write_cache on OOS in --tmpdir

    XMLWordPrintable

Details

    Description

      This issue looks to be different from both MDEV-23529 and MDEV-25488. It was likely previously seen by mleich, here in 11.3 as well.

      11.3.0 126157061b4376496c034a809ea4943e863d1465 (Debug)

      mariadbd: /test/11.3_dbg/sql/log.cc:8068: int Event_log::write_cache(THD*, IO_CACHE*): Assertion `!writer.checksum_len || writer.remains == 0' failed.
      

      11.3.0 126157061b4376496c034a809ea4943e863d1465 (Debug)

      Core was generated by `/test/MD311023-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd --no-defaults --gti'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=22527977334336)
          at ./nptl/pthread_kill.c:44
      [Current thread is 1 (Thread 0x147d34162640 (LWP 2379815))]
      (gdb) bt
      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=22527977334336) at ./nptl/pthread_kill.c:44
      #1  __pthread_kill_internal (signo=6, threadid=22527977334336) at ./nptl/pthread_kill.c:78
      #2  __GI___pthread_kill (threadid=22527977334336, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      #3  0x0000147d49242476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      #4  0x0000147d492287f3 in __GI_abort () at ./stdlib/abort.c:79
      #5  0x0000147d4922871b in __assert_fail_base (fmt=0x147d493dd130 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x5627d25c6ce0 "!writer.checksum_len || writer.remains == 0", file=0x5627d25c48dc "/test/11.3_dbg/sql/log.cc", line=8068, function=<optimized out>) at ./assert/assert.c:92
      #6  0x0000147d49239e96 in __GI___assert_fail (assertion=0x5627d25c6ce0 "!writer.checksum_len || writer.remains == 0", file=0x5627d25c48dc "/test/11.3_dbg/sql/log.cc", line=8068, function=0x5627d25c6bf8 "int Event_log::write_cache(THD*, IO_CACHE*)") at ./assert/assert.c:101
      #7  0x00005627d1c66000 in Event_log::write_cache (this=this@entry=0x5627d2eb0a48 <mysql_bin_log+8>, thd=<optimized out>, cache=cache@entry=0x147d1802be28) at /test/11.3_dbg/sql/log.cc:8068
      #8  0x00005627d1c664fb in MYSQL_BIN_LOG::write_transaction_or_stmt (this=this@entry=0x5627d2eb0a40 <mysql_bin_log>, entry=entry@entry=0x147d34160740, commit_id=commit_id@entry=0) at /test/11.3_dbg/sql/log.cc:567
      #9  0x00005627d1c73130 in MYSQL_BIN_LOG::trx_group_commit_leader (this=this@entry=0x5627d2eb0a40 <mysql_bin_log>, leader=leader@entry=0x147d34160740) at /test/11.3_dbg/sql/log.cc:8918
      #10 0x00005627d1c73e1e in MYSQL_BIN_LOG::write_transaction_to_binlog_events (this=this@entry=0x5627d2eb0a40 <mysql_bin_log>, entry=entry@entry=0x147d34160740) at /test/11.3_dbg/sql/log.cc:8710
      #11 0x00005627d1c7444e in MYSQL_BIN_LOG::write_transaction_to_binlog (this=this@entry=0x5627d2eb0a40 <mysql_bin_log>, thd=thd@entry=0x147d18005dc8, cache_mngr=cache_mngr@entry=0x147d1802be28, end_ev=end_ev@entry=0x147d341608d0, all=all@entry=false, using_stmt_cache=using_stmt_cache@entry=true, using_trx_cache=false, is_ro_1pc=false) at /test/11.3_dbg/sql/log.cc:8307
      #12 0x00005627d1c74632 in binlog_flush_cache (thd=thd@entry=0x147d18005dc8, cache_mngr=cache_mngr@entry=0x147d1802be28, end_ev=end_ev@entry=0x147d341608d0, all=all@entry=false, using_stmt=using_stmt@entry=true, using_trx=using_trx@entry=false, is_ro_1pc=false) at /test/11.3_dbg/sql/log.cc:1907
      #13 0x00005627d1c74902 in binlog_commit_flush_stmt_cache (thd=thd@entry=0x147d18005dc8, all=all@entry=false, cache_mngr=cache_mngr@entry=0x147d1802be28) at /test/11.3_dbg/sql/log.cc:1960
      #14 0x00005627d1c74ceb in binlog_rollback (hton=<optimized out>, thd=0x147d18005dc8, all=false) at /test/11.3_dbg/sql/log.cc:2484
      #15 0x00005627d1b11c76 in ha_rollback_trans (thd=thd@entry=0x147d18005dc8, all=all@entry=false) at /test/11.3_dbg/sql/handler.cc:2266
      #16 0x00005627d199039e in trans_rollback_stmt (thd=thd@entry=0x147d18005dc8) at /test/11.3_dbg/sql/transaction.cc:535
      #17 0x00005627d18106aa in mysql_execute_command (thd=thd@entry=0x147d18005dc8, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/11.3_dbg/sql/sql_parse.cc:5813
      #18 0x00005627d1811193 in mysql_parse (thd=thd@entry=0x147d18005dc8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x147d341611e0) at /test/11.3_dbg/sql/sql_parse.cc:7742
      #19 0x00005627d1813509 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x147d18005dc8, packet=packet@entry=0x147d1800faf9 "2717029162\t19095264\t17983729\n2514624261\t1805713521\t473331427\t87102688\t303387515\n311589450\t838519948\t1300610719\t2455619390\t433631583\n40910711\t2017015626\t111163223\t1757432376\t184167807\n514823146\t1079126"..., packet_length=packet_length@entry=163, blocking=blocking@entry=true) at /test/11.3_dbg/sql/sql_class.h:251
      #20 0x00005627d1815625 in do_command (thd=0x147d18005dc8, blocking=blocking@entry=true) at /test/11.3_dbg/sql/sql_parse.cc:1406
      #21 0x00005627d197a54d in do_handle_one_connection (connect=<optimized out>, connect@entry=0x5627d4ff33e8, put_in_cache=put_in_cache@entry=true) at /test/11.3_dbg/sql/sql_connect.cc:1418
      #22 0x00005627d197a842 in handle_one_connection (arg=arg@entry=0x5627d4ff33e8) at /test/11.3_dbg/sql/sql_connect.cc:1320
      #23 0x00005627d1dbfa28 in pfs_spawn_thread (arg=0x5627d4ff7968) at /test/11.3_dbg/storage/perfschema/pfs.cc:2201
      #24 0x0000147d49294ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #25 0x0000147d49326660 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      The issue was seen with the testcase here and is likely caused due to OOS in --tmpdir.

      Attachments

        Issue Links

          Activity

            People

              Elkin Andrei Elkin
              Roel Roel Van de Paar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.