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

Assertion `!bpage' failed in buf_flush_try_neighbors

    XMLWordPrintable

Details

    Description

      I am creating this as a placeholder for a bug which I have seen a number of times lately (could be a new regression). Testcase reduction is complex as the bug is highly sporadic. Best testcase is still 8k lines long. No rr trace. core dump available. marko FYI.

      11.2.0 5aebc0e1955580cea07a00da20097216afb12b6b (Debug)

      mysqld: /test/11.2_dbg/storage/innobase/buf/buf0flu.cc:1085: ulint buf_flush_try_neighbors(fil_space_t*, page_id_t, buf_page_t*, bool, bool, ulint, ulint): Assertion `!bpage' failed.
      

      11.2.0 5aebc0e1955580cea07a00da20097216afb12b6b (Debug)

      Core was generated by `/test/MD220423-mariadb-11.2.0-linux-x86_64-dbg/bin/mysqld --no-defaults --max_a'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=22834900121152)
          at ./nptl/pthread_kill.c:44
      [Current thread is 1 (Thread 0x14c4aa1c3640 (LWP 3083819))]
      (gdb) bt
      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=22834900121152) at ./nptl/pthread_kill.c:44
      #1  __pthread_kill_internal (signo=6, threadid=22834900121152) at ./nptl/pthread_kill.c:78
      #2  __GI___pthread_kill (threadid=22834900121152, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      #3  0x000014c4ca14f476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      #4  0x000014c4ca1357f3 in __GI_abort () at ./stdlib/abort.c:79
      #5  0x000014c4ca13571b in __assert_fail_base (fmt=0x14c4ca2ea150 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55e52e5e0aef "!bpage", file=0x55e52e5df810 "/test/11.2_dbg/storage/innobase/buf/buf0flu.cc", line=1085, function=<optimized out>) at ./assert/assert.c:92
      #6  0x000014c4ca146e96 in __GI___assert_fail (assertion=0x55e52e5e0aef "!bpage", file=0x55e52e5df810 "/test/11.2_dbg/storage/innobase/buf/buf0flu.cc", line=1085, function=0x55e52e5e0228 "ulint buf_flush_try_neighbors(fil_space_t*, page_id_t, buf_page_t*, bool, bool, ulint, ulint)") at ./assert/assert.c:101
      #7  0x000055e52e07d5b3 in buf_flush_try_neighbors (space=space@entry=0x14c4084ec650, page_id=page_id@entry={m_id = 1168231104513}, bpage=bpage@entry=0x14c4bb4da020, contiguous=contiguous@entry=true, evict=evict@entry=false, n_flushed=n_flushed@entry=69, n_to_flush=300) at /test/11.2_dbg/storage/innobase/buf/buf0flu.cc:1085
      #8  0x000055e52e07ffce in buf_do_flush_list_batch (lsn=18446744073709551615, max_n=300) at /test/11.2_dbg/storage/innobase/buf/buf0flu.cc:1433
      #9  buf_flush_list_holding_mutex (max_n=max_n@entry=300, lsn=lsn@entry=18446744073709551615) at /test/11.2_dbg/storage/innobase/buf/buf0flu.cc:1507
      #10 0x000055e52e082615 in buf_flush_page_cleaner () at /test/11.2_dbg/storage/innobase/buf/buf0flu.cc:2486
      #11 0x000055e52e082a91 in std::__invoke_impl<void, void (*)()> (__f=<optimized out>) at /usr/include/c++/11/bits/invoke.h:60
      #12 std::__invoke<void (*)()> (__fn=<optimized out>) at /usr/include/c++/11/bits/invoke.h:96
      #13 std::thread::_Invoker<std::tuple<void (*)()> >::_M_invoke<0ul> (this=<optimized out>) at /usr/include/c++/11/bits/std_thread.h:253
      #14 std::thread::_Invoker<std::tuple<void (*)()> >::operator() (this=<optimized out>) at /usr/include/c++/11/bits/std_thread.h:260
      #15 std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)()> > >::_M_run (this=<optimized out>) at /usr/include/c++/11/bits/std_thread.h:211
      #16 0x000014c4ca4fa2b3 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
      #17 0x000014c4ca1a1b43 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #18 0x000014c4ca233a00 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            Roel Roel Van de Paar
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.