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

Random crashes (signal 8) when restoring mariadb-server memory state using CRIU (OpenVZ 7)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 10.9.3
    • N/A
    • N/A
    • None
    • Host : OpenVZ 7 (7.0.18)
      Container : Debian 10 (Buster)

    Description

      Good evening!

      Long story short: MariaDB randomly crashes after being restored (using a backup) and having its memory state restored by CRIU.

      Command that triggers the bug: "vzctl resume <ctid>"

      —

      MariaDB 10.9.3 is installed inside an OpenVZ 7 container (Debian 10).

      When resuming/restoring this CT using OpenVZ 7 commands, MariaDB sometimes crashes inside the container (mysqld got signal 8)"

      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=8) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #1  0x00005610ab644a47 in my_write_core (sig=sig@entry=8) at ./mysys/stacktrace.c:424
      #2  0x00005610ab13e5c0 in handle_fatal_signal (sig=8) at ./sql/signal_handler.cc:355
      #3  <signal handler called>
      #4  0x00007f11b97db1e4 in __difftime (time1=1667850110, time0=0) at difftime.c:114
      #5  0x00005610ab4d1ba1 in srv_monitor () at ./storage/innobase/srv/srv0srv.cc:1194
      #6  srv_monitor_task () at ./storage/innobase/srv/srv0srv.cc:1281
      #7  0x00005610ab5d9178 in tpool::thread_pool_generic::timer_generic::run (this=0x5610aea78b20) at ./tpool/tpool_generic.cc:343
      #8  tpool::thread_pool_generic::timer_generic::execute (arg=0x5610aea78b20) at ./tpool/tpool_generic.cc:363
      #9  0x00005610ab5d9e0b in tpool::task::execute (this=0x5610aea78b60) at ./tpool/task.cc:37
      #10 tpool::task::execute (this=0x5610aea78b60) at ./tpool/task.cc:27
      #11 0x00005610ab5d7a0f in tpool::thread_pool_generic::worker_main (this=0x5610ae6e2610, thread_var=0x5610ae6e2cc0) at ./tpool/tpool_generic.cc:580
      #12 0x00007f11b9b26b2f in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
      #13 0x00007f11b9bfbfa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
      #14 0x00007f11b981f06f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95^
      

      Please find attached MariaDB "error log", "gdb log" and "config CT" (contains all commands to reproduce environment).

      If needed, I can also provide CRIU "dump.log", "restore.log" and MariaDB core dump (246 Mo).

      Have a great evening!

      Attachments

        1. config_CT.txt
          2 kB
        2. gbd_log-1.txt
          5 kB
        3. error_log.txt
          7 kB

        Activity

          People

            Unassigned Unassigned
            Trendymail Philippe
            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.