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

SIGSEGV in buf_flush_LRU_list_batch

    XMLWordPrintable

Details

    Description

      This following bug was observed:

      preview-10.10-MDEV-16329-online-alter 10.10.0 d7a7d16713070c7c2902c3df4b4f6d024cd0320f (Optimized)

      Core was generated by `/test/online-alter_MD080622-mariadb-10.10.0-linux-x86_64-opt/bin/mysqld --no-de'.
      Program terminated with signal SIGSEGV, Segmentation fault.
      #0  buf_flush_LRU_list_batch (n=<synthetic pointer>, n=<synthetic pointer>, 
          max=1536)
          at /test/preview-10.10-MDEV-16329-online-alter_opt/storage/innobase/buf/buf0flu.cc:1280
      1280        buf_page_t *prev= UT_LIST_GET_PREV(LRU, bpage);
      [Current thread is 1 (Thread 0x14ac32811700 (LWP 3928898))]
      (gdb) bt
      #0  buf_flush_LRU_list_batch (n=<synthetic pointer>, n=<synthetic pointer>, max=1536) at /test/preview-10.10-MDEV-16329-online-alter_opt/storage/innobase/buf/buf0flu.cc:1280
      #1  buf_do_LRU_batch (max=1536) at /test/preview-10.10-MDEV-16329-online-alter_opt/storage/innobase/buf/buf0flu.cc:1374
      #2  buf_flush_LRU (max_n=1536) at /test/preview-10.10-MDEV-16329-online-alter_opt/storage/innobase/buf/buf0flu.cc:1715
      #3  0x00005563ba5a8f23 in buf_pool_t::withdraw_blocks (this=this@entry=0x5563bb708440 <buf_pool>) at /usr/include/c++/9/bits/stl_algobase.h:222
      #4  0x00005563bad0512d in buf_pool_t::resize (this=this@entry=0x5563bb708440 <buf_pool>) at /test/preview-10.10-MDEV-16329-online-alter_opt/storage/innobase/include/buf0buf.h:1546
      #5  0x00005563bad0321c in buf_resize_callback () at /test/preview-10.10-MDEV-16329-online-alter_opt/storage/innobase/buf/buf0buf.cc:1972
      #6  0x00005563bad9d019 in tpool::task_group::execute (this=0x5563bc006c20 <single_threaded_group>, t=0x5563bc006b80 <buf_resize_task>) at /test/preview-10.10-MDEV-16329-online-alter_opt/tpool/task_group.cc:55
      #7  0x00005563bad9bda7 in tpool::thread_pool_generic::worker_main (this=0x5563bcb26740, thread_var=0x5563bcb36260) at /test/preview-10.10-MDEV-16329-online-alter_opt/tpool/tpool_generic.cc:588
      #8  0x000014ac55999de4 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
      #9  0x000014ac55ab3609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #10 0x000014ac5569f133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      However, all attempts at reproduction have so far failed. This ticket in the hope that there is sufficient information to find the issue.
      Added all threads bt (gdb_threads.txt) and all threads full bt (gdb_full.txt).
      Also added full original SQL but it is 18k lines (and does not reproduce as mentioned)
      And linking with MDEV-26662 given the stack.

      Attachments

        1. gdb_full.txt
          348 kB
        2. gdb_threads.txt
          250 kB
        3. MDEV-28828.sql
          3.22 MB

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              Roel Roel Van de Paar
              Votes:
              1 Vote for this issue
              Watchers:
              4 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.