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

REST encryption incremental backup after RENAME TABLE may show 'Ignoring data file' and crash with 'invalid pointer'

    XMLWordPrintable

Details

    Description

      Following test case with RENAME TABLE crashes in ~LatchCounter

      Test:

      if (!$EXAMPLE_KEY_MANAGEMENT_SO)
      {
        --skip needs example_key_management plugin
      }
      call mtr.add_suppression("InnoDB: New log files created");
       
       
      let $basedir=$MYSQLTEST_VARDIR/tmp/backup;
      let $incremental_dir=$MYSQLTEST_VARDIR/tmp/backup_inc1;
       
       
      CREATE TABLE a(i INT) ENGINE INNODB ENCRYPTED=YES;
      CREATE TABLE x(s varchar(32)) ENGINE INNODB ENCRYPTED=YES;
      INSERT INTO a VALUES(1);
      INSERT INTO x VALUES('x');
       
       
      echo # Create full backup , modify table, then create incremental/differential backup;
      --disable_result_log
      exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf  --backup --target-dir=$basedir;
      --enable_result_log
       
      CREATE TABLE b(a int) ENGINE=INNODB;
      INSERT INTO b SELECT * FROM a;
      INSERT INTO a VALUES(2);
      INSERT INTO x VALUES('x');
      CREATE DATABASE test1;
      RENAME TABLE a TO test1.a;
      RENAME TABLE x to a;
      RENAME TABLE b to x;
       
      --disable_result_log
      exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf   --backup --target-dir=$incremental_dir --incremental-basedir=$basedir;
      echo # Prepare full backup, apply incremental one;
      exec $XTRABACKUP --prepare --target-dir=$basedir;
      exec $XTRABACKUP --prepare --target-dir=$basedir --incremental-dir=$incremental_dir;
       
      echo # Restore and check results;
      let $targetdir=$basedir;
      -- source include/restart_and_restore.inc
      --enable_result_log
       
      SELECT * FROM t1;
      DROP TABLE t1;
       
      # Cleanup
      rmdir $basedir;
      rmdir $incremental_dir;
      

      .opt file

      --innodb-tablespaces-encryption
      --plugin-load-add=$DEBUG_KEY_MANAGEMENT_SO
      --loose-debug_key_management_version=2
      

      log:

      bash-4.2$ ./mtr i
      Logging: /home/a/spd/_depot/m-branch/10.2/mysql-test/mysql-test-run.pl  i
      vardir: /home/a/spd/m0-10.2/build/mysql-test/var
      Checking leftover processes...
      Removing old var directory...
      Creating var directory '/home/a/spd/m0-10.2/build/mysql-test/var'...
      Checking supported features...
      MariaDB Version 10.2.8-MariaDB-debug
       - SSL connections supported
       - binaries are debug compiled
      Collecting tests...
      Installing system database...
       
      ==============================================================================
       
      TEST                                      RESULT   TIME (ms) or COMMENT
      --------------------------------------------------------------------------
       
      worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 16000..16019
      call mtr.add_suppression("InnoDB: New log files created");
      CREATE TABLE a(i INT) ENGINE INNODB ENCRYPTED=YES;
      CREATE TABLE x(s varchar(32)) ENGINE INNODB ENCRYPTED=YES;
      INSERT INTO a VALUES(1);
      INSERT INTO x VALUES('x');
      # Create full backup , modify table, then create incremental/differential backup
      CREATE TABLE b(a int) ENGINE=INNODB;
      INSERT INTO b SELECT * FROM a;
      INSERT INTO a VALUES(2);
      INSERT INTO x VALUES('x');
      CREATE DATABASE test1;
      RENAME TABLE a TO test1.a;
      RENAME TABLE x to a;
      RENAME TABLE b to x;
      # Prepare full backup, apply incremental one
      *** Error in `/home/a/spd/m0-10.2/build/extra/mariabackup/mariabackup': munmap_chunk(): invalid pointer: 0x00007fb203553408 ***
      ======= Backtrace: =========
      /lib64/libc.so.6(+0x7ada4)[0x7fb1fcbefda4]
      /home/a/spd/m0-10.2/build/extra/mariabackup/mariabackup(+0xe94c96)[0x7fb1fff17c96]
      /home/a/spd/m0-10.2/build/extra/mariabackup/mariabackup(+0xe9693e)[0x7fb1fff1993e]
      /home/a/spd/m0-10.2/build/extra/mariabackup/mariabackup(+0xe9487d)[0x7fb1fff1787d]
      /home/a/spd/m0-10.2/build/extra/mariabackup/mariabackup(+0xe94b21)[0x7fb1fff17b21]
      /home/a/spd/m0-10.2/build/extra/mariabackup/mariabackup(+0xe84153)[0x7fb1fff07153]
      /home/a/spd/m0-10.2/build/extra/mariabackup/mariabackup(+0x4e6043)[0x7fb1ff569043]
      /home/a/spd/m0-10.2/build/extra/mariabackup/mariabackup(+0x4e7a80)[0x7fb1ff56aa80]
      /home/a/spd/m0-10.2/build/extra/mariabackup/mariabackup(main+0x198)[0x7fb1ff56a2bf]
      /lib64/libc.so.6(__libc_start_main+0xf5)[0x7fb1fcb96b35]
      /home/a/spd/m0-10.2/build/extra/mariabackup/mariabackup(+0x4da039)[0x7fb1ff55d039]
      ======= Memory map: ========
      7fb1b8000000-7fb1b8021000 rw-p 00000000 00:00 0 
      7fb1b8021000-7fb1bc000000 ---p 00000000 00:00 0 
      7fb1c0000000-7fb1c0021000 rw-p 00000000 00:00 0 
      7fb1c0021000-7fb1c4000000 ---p 00000000 00:00 0 
      7fb1c4000000-7fb1c4021000 rw-p 00000000 00:00 0 
      7fb1c4021000-7fb1c8000000 ---p 00000000 00:00 0 
      7fb1c8000000-7fb1c8021000 rw-p 00000000 00:00 0 
      7fb1c8021000-7fb1cc000000 ---p 00000000 00:00 0 
      7fb1cc000000-7fb1cc021000 rw-p 00000000 00:00 0 
      7fb1cc021000-7fb1d0000000 ---p 00000000 00:00 0 
      7fb1d0000000-7fb1d0021000 rw-p 00000000 00:00 0 
      7fb1d0021000-7fb1d4000000 ---p 00000000 00:00 0 
      7fb1d4000000-7fb1d4021000 rw-p 00000000 00:00 0 
      7fb1d4021000-7fb1d8000000 ---p 00000000 00:00 0 
      7fb1d8000000-7fb1d8021000 rw-p 00000000 00:00 0 
      7fb1d8021000-7fb1dc000000 ---p 00000000 00:00 0 
      7fb1dc000000-7fb1dc021000 rw-p 00000000 00:00 0 
      7fb1dc021000-7fb1e0000000 ---p 00000000 00:00 0 
      7fb1e0000000-7fb1e0021000 rw-p 00000000 00:00 0 
      7fb1e0021000-7fb1e4000000 ---p 00000000 00:00 0 
      7fb1e4000000-7fb1e4021000 rw-p 00000000 00:00 0 
      7fb1e4021000-7fb1e8000000 ---p 00000000 00:00 0 
      7fb1eb7ff000-7fb1eb800000 ---p 00000000 00:00 0 
      7fb1eb800000-7fb1ec000000 rw-p 00000000 00:00 0 
      7fb1ec000000-7fb1ec021000 rw-p 00000000 00:00 0 
      7fb1ec021000-7fb1f0000000 ---p 00000000 00:00 0 
      7fb1f0d43000-7fb1f0d44000 ---p 00000000 00:00 0 
      7fb1f0d44000-7fb1f1544000 rw-p 00000000 00:00 0 
      7fb1f1544000-7fb1f1545000 ---p 00000000 00:00 0 
      7fb1f1545000-7fb1f1d45000 rw-p 00000000 00:00 0 
      7fb1f2546000-7fb1f2547000 ---p 00000000 00:00 0 
      7fb1f2547000-7fb1f2d47000 rw-p 00000000 00:00 0 
      7fb1fa245000-7fb1fa246000 r-xp 00000000 08:11 445972                     /home/a/spd/m0-10.2/build/plugin/debug_key_management/debug_key_management.so
      7fb1fa246000-7fb1fa445000 ---p 00001000 08:11 445972                     /home/a/spd/m0-10.2/build/plugin/debug_key_management/debug_key_management.so
      7fb1fa445000-7fb1fa446000 r--p 00000000 08:11 445972                     /home/a/spd/m0-10.2/build/plugin/debug_key_management/debug_key_management.so
      7fb1fa446000-7fb1fa447000 rw-p 00001000 08:11 445972                     /home/a/spd/m0-10.2/build/plugin/debug_key_management/debug_key_management.so
      7fb1fa447000-7fb1fa453000 r-xp 00000000 08:12 1165371                    /usr/lib64/libnss_files-2.17.so
      7fb1fa453000-7fb1fa652000 ---p 0000c000 08:12 1165371                    /usr/lib64/libnss_files-2.17.so
      7fb1fa652000-7fb1fa653000 r--p 0000b000 08:12 1165371                    /usr/lib64/libnss_files-2.17.so
      7fb1fa653000-7fb1fa654000 rw-p 0000c000 08:12 1165371                    /usr/lib64/libnss_files-2.17.so
      7fb1fa654000-7fb1fa65a000 rw-p 00000000 00:00 0 
      7fb1fa65a000-7fb1fa65d000 r-xp 00000000 08:12 1165688                    /usr/lib64/libkeyutils.so.1.5
      7fb1fa65d000-7fb1fa85c000 ---p 00003000 08:12 1165688                    /usr/lib64/libkeyutils.so.1.5
      7fb1fa85c000-7fb1fa85d000 r--p 00002000 08:12 1165688                    /usr/lib64/libkeyutils.so.1.5
      7fb1fa85d000-7fb1fa85e000 rw-p 00003000 08:12 1165688                    /usr/lib64/libkeyutils.so.1.5
      7fb1fa85e000-7fb1fa86b000 r-xp 00000000 08:12 1166547                    /usr/lib64/libkrb5support.so.0.1
      7fb1fa86b000-7fb1faa6b000 ---p 0000d000 08:12 1166547                    /usr/lib64/libkrb5support.so.0.1
      7fb1faa6b000-7fb1faa6c000 r--p 0000d000 08:12 1166547                    /usr/lib64/libkrb5support.so.0.1
      7fb1faa6c000-7fb1faa6d000 rw-p 0000e000 08:12 1166547                    /usr/lib64/libkrb5support.so.0.1
      7fb1faa6d000-7fb1faa84000 r-xp 00000000 08:12 1787198                    /usr/lib64/libelf-0.166.so
      7fb1faa84000-7fb1fac83000 ---p 00017000 08:12 1787198                    /usr/lib64/libelf-0.166.so
      7fb1fac83000-7fb1fac84000 r--p 00016000 08:12 1787198                    /usr/lib64/libelf-0.166.so
      7fb1fac84000-7fb1fac85000 rw-p 00017000 08:12 1787198                    /usr/lib64/libelf-0.166.so
      7fb1fac85000-7fb1face5000 r-xp 00000000 08:12 1165442                    /usr/lib64/libpcre.so.1.2.0
      7fb1face5000-7fb1faee4000 ---p 00060000 08:12 1165442                    /usr/lib64/libpcre.so.1.2.0
      7fb1faee4000-7fb1faee5000 r--p 0005f000 08:12 1165442                    /usr/lib64/libpcre.so.1.2.0
      7fb1faee5000-7fb1faee6000 rw-p 00060000 08:12 1165442                    /usr/lib64/libpcre.so.1.2.0
      7fb1faee6000-7fb1faeea000 r-xp 00000000 08:12 1165678                    /usr/lib64/libattr.so.1.1.0
      7fb1faeea000-7fb1fb0e9000 ---p 00004000 08:12 1165678                    /usr/lib64/libattr.so.1.1.0
      7fb1fb0e9000-7fb1fb0ea000 r--p 00003000 08:12 1165678                    /usr/lib64/libattr.so.1.1.0
      7fb1fb0ea000-7fb1fb0eb000 rw-p 00004000 08:12 1165678                    /usr/lib64/libattr.so.1.1.0
      7fb1fb0eb000-7fb1fb11a000 r-xp 00000000 08:12 1166535                    /usr/lib64/libk5crypto.so.3.1
      7fb1fb11a000-7fb1fb319000 ---p 0002f000 08:12 1166535                    /usr/lib64/libk5crypto.so.3.1
      7fb1fb319000-7fb1fb31b000 r--p 0002e000 08:12 1166535                    /usr/lib64/libk5crypto.so.3.1
      7fb1fb31b000-7fb1fb31c000 rw-p 00030000 08:12 1166535                    /usr/lib64/libk5crypto.so.3.1
      7fb1fb31c000-7fb1fb31d000 rw-p 00000000 00:00 0 
      7fb1fb31d000-7fb1fb320000 r-xp 00000000 08:12 1165469                    /usr/lib64/libcom_err.so.2.1
      7fb1fb320000-7fb1fb51f000 ---p 00003000 08:12 1165469                    /usr/lib64/libcom_err.so.2.1
      7fb1fb51f000-7fb1fb520000 r--p 00002000 08:12 1165469                    /usr/lib64/libcom_err.so.2.1
      7fb1fb520000-7fb1fb521000 rw-p 00003000 08:12 1165469                    /usr/lib64/libcom_err.so.2.1
      7fb1fb521000-7fb1fb5f7000 r-xp 00000000 08:12 1166545                    /usr/lib64/libkrb5.so.3.3
      7fb1fb5f7000-7fb1fb7f7000 ---p 000d6000 08:12 1166545                    /usr/lib64/libkrb5.so.3.3
      7fb1fb7f7000-7fb1fb805000 r--p 000d6000 08:12 1166545                    /usr/lib64/libkrb5.so.3.3
      7fb1fb805000-7fb1fb808000 rw-p 000e4000 08:12 1166545                    /usr/lib64/libkrb5.so.3.3
      7fb1fb808000-7fb1fb853000 r-xp 00000000 08:12 1166531                    /usr/lib64/libgssapi_krb5.so.2.2
      7fb1fb853000-7fb1fba53000 ---p 0004b000 08:12 1166531                    /usr/lib64/libgssapi_krb5.so.2.2
      7fb1fba53000-7fb1fba54000 r--p 0004b000 08:12 1166531                    /usr/lib64/libgssapi_krb5.so.2.2
      7fb1fba54000-7fb1fba56000 rw-p 0004c000 08:12 1166531                    /usr/lib64/libgssapi_krb5.so.2.2
      7fb1fba56000-7fb1fba9b000 r-xp 00000000 08:12 1165723                    /usr/lib64/libdw-0.166.so
      7fb1fba9b000-7fb1fbc9b000 ---p 00045000 08:12 1165723                    /usr/lib64/libdw-0.166.so
      7fb1fbc9b000-7fb1fbc9d000 r--p 00045000 08:12 1165723                    /usr/lib64/libdw-0.166.so
      7fb1fbc9d000-7fb1fbc9e000 rw-p 00047000 08:12 1165723                    /usr/lib64/libdw-0.166.so
      7fb1fbc9e000-7fb1fbcb4000 r-xp 00000000 08:12 1165381                    /usr/lib64/libresolv-2.17.so
      7fb1fbcb4000-7fb1fbeb4000 ---p 00016000 08:12 1165381                    /usr/lib64/libresolv-2.17.so
      7fb1fbeb4000-7fb1fbeb5000 r--p 00016000 08:12 1165381                    /usr/lib64/libresolv-2.17.so
      7fb1fbeb5000-7fb1fbeb6000 rw-p 00017000 08:12 1165381                    /usr/lib64/libresolv-2.17.so
      7fb1fbeb6000-7fb1fbeb8000 rw-p 00000000 00:00 0 
      7fb1fbeb8000-7fb1fbebc000 r-xp 00000000 08:12 1165517                    /usr/lib64/libgpg-error.so.0.10.0
      7fb1fbebc000-7fb1fc0bb000 ---p 00004000 08:12 1165517                    /usr/lib64/libgpg-error.so.0.10.0
      7fb1fc0bb000-7fb1fc0bc000 r--p 00003000 08:12 1165517                    /usr/lib64/libgpg-error.so.0.10.0
      7fb1fc0bc000-7fb1fc0bd000 rw-p 00004000 08:12 1165517                    /usr/lib64/libgpg-error.so.0.10.0
      7fb1fc0bd000-7fb1fc139000 r-xp 00000000 08:12 1165520                    /usr/lib64/libgcrypt.so.11.8.2
      7fb1fc139000-7fb1fc339000 ---p 0007c000 08:12 1165520                    /usr/lib64/libgcrypt.so.11.8.2
      7fb1fc339000-7fb1fc33a000 r--p 0007c000 08:12 1165520                    /usr/lib64/libgcrypt.so.11.8.2
      7fb1fc33a000-7fb1fc33d000 rw-p 0007d000 08:12 1165520                    /usr/lib64/libgcrypt.so.11.8.2
      7fb1fc33d000-7fb1fc33e000 rw-p 00000000 00:00 0 
      7fb1fc33e000-7fb1fc362000 r-xp 00000000 08:12 1787186                    /usr/lib64/libselinux.so.1
      7fb1fc362000-7fb1fc561000 ---p 00024000 08:12 1787186                    /usr/lib64/libselinux.so.1
      7fb1fc561000-7fb1fc562000 r--p 00023000 08:12 1787186                    /usr/lib64/libselinux.so.1
      7fb1fc562000-7fb1fc563000 rw-p 00024000 08:12 1787186                    /usr/lib64/libselinux.so.1
      7fb1fc563000-7fb1fc565000 rw-p 00000000 00:00 0 
      7fb1fc565000-7fb1fc56c000 r-xp 00000000 08:12 1165383                    /usr/lib64/librt-2.17.so
      7fb1fc56c000-7fb1fc76b000 ---p 00007000 08:12 1165383                    /usr/lib64/librt-2.17.so
      7fb1fc76b000-7fb1fc76c000 r--p 00006000 08:12 1165383                    /usr/lib64/librt-2.17.so
      7fb1fc76c000-7fb1fc76d000 rw-p 00007000 08:12 1165383                    /usr/lib64/librt-2.17.so
      7fb1fc76d000-7fb1fc771000 r-xp 00000000 08:12 1165680                    /usr/lib64/libcap.so.2.22
      7fb1fc771000-7fb1fc970000 ---p 00004000 08:12 1165680                    /usr/lib64/libcap.so.2.22
      7fb1fc970000-7fb1fc971000 r--p 00003000 08:12 1165680                    /usr/lib64/libcap.so.2.22
      7fb1fc971000-7fb1fc972000 rw-p 00004000 08:12 1165680                    /usr/lib64/libcap.so.2.22
      7fb1fc972000-7fb1fc974000 r-xp 00000000 08:12 1165326                    /usr/lib64/libfreebl3.so
      7fb1fc974000-7fb1fcb73000 ---p 00002000 08:12 1165326                    /usr/lib64/libfreebl3.so
      7fb1fcb73000-7fb1fcb74000 r--p 00001000 08:12 1165326                    /usr/lib64/libfreebl3.so
      7fb1fcb74000-7fb1fcb75000 rw-p 00002000 08:12 1165326                    /usr/lib64/libfreebl3.so
      7fb1fcb75000-7fb1fcd2c000 r-xp 00000000 08:12 1165353                    /usr/lib64/libc-2.17.so
      7fb1fcd2c000-7fb1fcf2b000 ---p 001b7000 08:12 1165353                    /usr/lib64/libc-2.17.so
      7fb1fcf2b000-7fb1fcf2f000 r--p 001b6000 08:12 1165353                    /usr/lib64/libc-2.17.so
      7fb1fcf2f000-7fb1fcf31000 rw-p 001ba000 08:12 1165353                    /usr/lib64/libc-2.17.so
      7fb1fcf31000-7fb1fcf36000 rw-p 00000000 00:00 0 
      7fb1fcf36000-7fb1fcf4b000 r-xp 00000000 08:12 1787171                    /usr/lib64/libgcc_s-4.8.5-20150702.so.1
      7fb1fcf4b000-7fb1fd14a000 ---p 00015000 08:12 1787171                    /usr/lib64/libgcc_s-4.8.5-20150702.so.1
      7fb1fd14a000-7fb1fd14b000 r--p 00014000 08:12 1787171                    /usr/lib64/libgcc_s-4.8.5-20150702.so.1
      7fb1fd14b000-7fb1fd14c000 rw-p 00015000 08:12 1787171                    /usr/lib64/libgcc_s-4.8.5-20150702.so.1
      7fb1fd14c000-7fb1fd24c000 r-xp 00000000 08:12 1165361                    /usr/lib64/libm-2.17.so
      7fb1fd24c000-7fb1fd44c000 ---p 00100000 08:12 1165361                    /usr/lib64/libm-2.17.so
      7fb1fd44c000-7fb1fd44d000 r--p 00100000 08:12 1165361                    /usr/lib64/libm-2.17.so
      7fb1fd44d000-7fb1fd44e000 rw-p 00101000 08:12 1165361                    /usr/lib64/libm-2.17.so
      7fb1fd44e000-7fb1fd537000 r-xp 00000000 08:12 1165396                    /usr/lib64/libstdc++.so.6.0.19
      7fb1fd537000-7fb1fd737000 ---p 000e9000 08:12 1165396                    /usr/lib64/libstdc++.so.6.0.19
      7fb1fd737000-7fb1fd740000 r--p 000e9000 08:12 1165396                    /usr/lib64/libstdc++.so.6.0.19
      7fb1fd740000-7fb1fd742000 rw-p 000f2000 08:12 1165396                    /usr/lib64/libstdc++.so.6.0.19
      7fb1fd742000-7fb1fd757000 rw-p 00000000 00:00 0 
      7fb1fd757000-7fb1fd759000 r-xp 00000000 08:12 1165359                    /usr/lib64/libdl-2.17.so
      7fb1fd759000-7fb1fd959000 ---p 00002000 08:12 1165359                    /usr/lib64/libdl-2.17.so
      7fb1fd959000-7fb1fd95a000 r--p 00002000 08:12 1165359                    /usr/lib64/libdl-2.17.so
      7fb1fd95a000-7fb1fd95b000 rw-p 00003000 08:12 1165359                    /usr/lib64/libdl-2.17.so
      7fb1fd95b000-7fb1fdb1b000 r-xp 00000000 08:12 1166552                    /usr/lib64/libcrypto.so.1.0.1e
      7fb1fdb1b000-7fb1fdd1b000 ---p 001c0000 08:12 1166552                    /usr/lib64/libcrypto.so.1.0.1e
      7fb1fdd1b000-7fb1fdd35000 r--p 001c0000 08:12 1166552                    /usr/lib64/libcrypto.so.1.0.1e
      7fb1fdd35000-7fb1fdd41000 rw-p 001da000 08:12 1166552                    /usr/lib64/libcrypto.so.1.0.1e
      7fb1fdd41000-7fb1fdd45000 rw-p 00000000 00:00 0 
      7fb1fdd45000-7fb1fdda9000 r-xp 00000000 08:12 1166554                    /usr/lib64/libssl.so.1.0.1e
      7fb1fdda9000-7fb1fdfa8000 ---p 00064000 08:12 1166554                    /usr/lib64/libssl.so.1.0.1e
      7fb1fdfa8000-7fb1fdfac000 r--p 00063000 08:12 1166554                    /usr/lib64/libssl.so.1.0.1e
      7fb1fdfac000-7fb1fdfb3000 rw-p 00067000 08:12 1166554                    /usr/lib64/libssl.so.1.0.1e
      7fb1fdfb3000-7fb1fdfbb000 r-xp 00000000 08:12 1165357                    /usr/lib64/libcrypt-2.17.so
      7fb1fdfbb000-7fb1fe1ba000 ---p 00008000 08:12 1165357                    /usr/lib64/libcrypt-2.17.so
      7fb1fe1ba000-7fb1fe1bb000 r--p 00007000 08:12 1165357                    /usr/lib64/libcrypt-2.17.so
      7fb1fe1bb000-7fb1fe1bc000 rw-p 00008000 08:12 1165357                    /usr/lib64/libcrypt-2.17.so
      7fb1fe1bc000-7fb1fe1ea000 rw-p 00000000 00:00 0 
      7fb1fe1ea000-7fb1fe1ff000 r-xp 00000000 08:12 1165454                    /usr/lib64/libz.so.1.2.7
      7fb1fe1ff000-7fb1fe3fe000 ---p 00015000 08:12 1165454                    /usr/lib64/libz.so.1.2.7
      7fb1fe3fe000-7fb1fe3ff000 r--p 00014000 08:12 1165454                    /usr/lib64/libz.so.1.2.7
      7fb1fe3ff000-7fb1fe400000 rw-p 00015000 08:12 1165454                    /usr/lib64/libz.so.1.2.7
      7fb1fe400000-7fb1fe40a000 r-xp 00000000 08:12 1165823                    /usr/lib64/libnuma.so.1
      7fb1fe40a000-7fb1fe60a000 ---p 0000a000 08:12 1165823                    /usr/lib64/libnuma.so.1
      7fb1fe60a000-7fb1fe60b000 r--p 0000a000 08:12 1165823                    /usr/lib64/libnuma.so.1
      7fb1fe60b000-7fb1fe60c000 rw-p 0000b000 08:12 1165823                    /usr/lib64/libnuma.so.1
      7fb1fe60c000-7fb1fe60d000 r-xp 00000000 08:12 1165900                    /usr/lib64/libaio.so.1.0.1
      7fb1fe60d000-7fb1fe80c000 ---p 00001000 08:12 1165900                    /usr/lib64/libaio.so.1.0.1
      7fb1fe80c000-7fb1fe80d000 r--p 00000000 08:12 1165900                    /usr/lib64/libaio.so.1.0.1
      7fb1fe80d000-7fb1fe80e000 rw-p 00001000 08:12 1165900                    /usr/lib64/libaio.so.1.0.1
      7fb1fe80e000-7fb1fe81d000 r-xp 00000000 08:12 1165489                    /usr/lib64/libbz2.so.1.0.6
      7fb1fe81d000-7fb1fea1c000 ---p 0000f000 08:12 1165489                    /usr/lib64/libbz2.so.1.0.6
      7fb1fea1c000-7fb1fea1d000 r--p 0000e000 08:12 1165489                    /usr/lib64/libbz2.so.1.0.6
      7fb1fea1d000-7fb1fea1e000 rw-p 0000f000 08:12 1165489                    /usr/lib64/libbz2.so.1.0.6
      7fb1fea1e000-7fb1fea43000 r-xp 00000000 08:12 1165439                    /usr/lib64/liblzma.so.5.2.2
      7fb1fea43000-7fb1fec42000 ---p 00025000 08:12 1165439                    /usr/lib64/liblzma.so.5.2.2
      7fb1fec42000-7fb1fec43000 r--p 00024000 08:12 1165439                    /usr/lib64/liblzma.so.5.2.2
      7fb1fec43000-7fb1fec44000 rw-p 00025000 08:12 1165439                    /usr/lib64/liblzma.so.5.2.2
      7fb1fec44000-7fb1fec5b000 r-xp 00000000 08:12 1165379                    /usr/lib64/libpthread-2.17.so
      7fb1fec5b000-7fb1fee5a000 ---p 00017000 08:12 1165379                    /usr/lib64/libpthread-2.17.so
      7fb1fee5a000-7fb1fee5b000 r--p 00016000 08:12 1165379                    /usr/lib64/libpthread-2.17.so
      7fb1fee5b000-7fb1fee5c000 rw-p 00017000 08:12 1165379                    /usr/lib64/libpthread-2.17.so
      7fb1fee5c000-7fb1fee60000 rw-p 00000000 00:00 0 
      7fb1fee60000-7fb1fee80000 r-xp 00000000 08:12 1165346                    /usr/lib64/ld-2.17.so
      7fb1ff01d000-7fb1ff02c000 rw-p 00000000 00:00 0 
      7fb1ff02c000-7fb1ff052000 r-xp 00000000 08:12 1166894                    /usr/lib64/libsystemd.so.0.6.0
      7fb1ff052000-7fb1ff053000 r--p 00025000 08:12 1166894                    /usr/lib64/libsystemd.so.0.6.0
      7fb1ff053000-7fb1ff054000 rw-p 00026000 08:12 1166894                    /usr/lib64/libsystemd.so.0.6.0
      7fb1ff054000-7fb1ff057000 rw-p 00000000 00:00 0 
      7fb1ff07e000-7fb1ff080000 rw-p 00000000 00:00 0 
      7fb1ff080000-7fb1ff081000 r--p 00020000 08:12 1165346                    /usr/lib64/ld-2.17.so
      7fb1ff081000-7fb1ff082000 rw-p 00021000 08:12 1165346                    /usr/lib64/ld-2.17.so
      7fb1ff082000-7fb1ff083000 rw-p 00000000 00:00 0 
      7fb1ff083000-7fb20072e000 r-xp 00000000 08:11 446320                     /home/a/spd/m0-10.2/build/extra/mariabackup/mariabackup
      7fb20092e000-7fb200a10000 r--p 016ab000 08:11 446320                     /home/a/spd/m0-10.2/build/extra/mariabackup/mariabackup
      7fb200a10000-7fb200c12000 rw-p 0178d000 08:11 446320                     /home/a/spd/m0-10.2/build/extra/mariabackup/mariabackup
      7fb200c12000-7fb2014a9000 rw-p 00000000 00:00 0 
      7fb202532000-7fb2035da000 rw-p 00000000 00:00 0                          [heap]
      7ffeab073000-7ffeab096000 rw-p 00000000 00:00 0                          [stack]
      7ffeab1cc000-7ffeab1ce000 r-xp 00000000 00:00 0                          [vdso]
      ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
      mariabackup.i                            [ fail ]
              Test ended at 2017-07-13 17:50:16
       
      CURRENT_TEST: mariabackup.i
      sh: line 1: 30789 Aborted                 (core dumped) /home/a/spd/m0-10.2/build/extra/mariabackup/mariabackup --prepare --target-dir=/home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup --incremental-dir=/home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup_inc1 2>&1
      mysqltest: At line 36: exec of '/home/a/spd/m0-10.2/build/extra/mariabackup/mariabackup --prepare --target-dir=/home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup --incremental-dir=/home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup_inc1 2>&1' failed, error: 34304, status: 134, errno: 11
      Output from before failure:
      /home/a/spd/m0-10.2/build/extra/mariabackup/mariabackup based on MariaDB server 10.2.8-MariaDB Linux (x86_64) 
      incremental backup from 1633912 is enabled.
      xtrabackup: cd to /home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup/
      Loading encryption plugin
               Encryption plugin parameter :  '--debug_key_management_version=2'
               Encryption plugin parameter :  '--prepare'
               Encryption plugin parameter :  '--target-dir=/home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup'
               Encryption plugin parameter :  '--incremental-dir=/home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup_inc1'
      xtrabackup: This target seems to be already prepared.
      xtrabackup: using the following InnoDB configuration for recovery:
      xtrabackup:   innodb_data_home_dir = .
      xtrabackup:   innodb_data_file_path = ibdata1:12M:autoextend
      xtrabackup:   innodb_log_group_home_dir = /home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup_inc1/
      xtrabackup: Generating a list of tablespaces
      xtrabackup: page size for /home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup_inc1//ibdata1.delta is 16384 bytes
      Applying /home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup_inc1//ibdata1.delta to ./ibdata1...
      xtrabackup: page size for /home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup_inc1//test/a.ibd.delta is 16384 bytes
      xtrabackup: Renaming test/a to test/xtrabackup_tmp_#4.ibd
      xtrabackup: Renaming test/x to test/a
      Applying /home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup_inc1//test/a.ibd.delta to ./test/a.ibd...
      xtrabackup: page size for /home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup_inc1//test/x.ibd.delta is 16384 bytes
      Applying /home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup_inc1//test/x.ibd.delta to ./test/x.ibd...
      xtrabackup: page size for /home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup_inc1//test1/a.ibd.delta is 16384 bytes
      xtrabackup: Renaming test/xtrabackup_tmp_#4 to test1/a
      Applying /home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup_inc1//test1/a.ibd.delta to ./test1/a.ibd...
      xtrabackup: page size for /home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup_inc1//mysql/innodb_table_stats.ibd.delta is 16384 bytes
      Applying /home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup_inc1//mysql/innodb_table_stats.ibd.delta to ./mysql/innodb_table_stats.ibd...
      xtrabackup: page size for /home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup_inc1//mysql/innodb_index_stats.ibd.delta is 16384 bytes
      Applying /home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup_inc1//mysql/innodb_index_stats.ibd.delta to ./mysql/innodb_index_stats.ibd...
      xtrabackup: using the following InnoDB configuration for recovery:
      xtrabackup:   innodb_data_home_dir = .
      xtrabackup:   innodb_data_file_path = ibdata1:12M:autoextend
      xtrabackup:   innodb_log_group_home_dir = /home/a/spd/m0-10.2/build/mysql-test/var/tmp/backup_inc1/
      xtrabackup: Starting InnoDB instance for recovery.
      xtrabackup: Using 104857600 bytes for buffer pool (set by --use-memory parameter)
      2017-07-13 17:50:14 140402464254144 [Note] InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!!
      2017-07-13 17:50:14 140402464254144 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
      2017-07-13 17:50:14 140402464254144 [Note] InnoDB: Uses event mutexes
      2017-07-13 17:50:14 140402464254144 [Note] InnoDB: Compressed tables use zlib 1.2.7
      2017-07-13 17:50:14 140402464254144 [Note] InnoDB: Number of pools: 1
      2017-07-13 17:50:14 140402464254144 [Note] InnoDB: Using SSE2 crc32 instructions
      2017-07-13 17:50:14 140402464254144 [Note] InnoDB: Initializing buffer pool, total size = 100M, instances = 1, chunk size = 100M
      2017-07-13 17:50:14 140402464254144 [Note] InnoDB: Completed initialization of buffer pool
      2017-07-13 17:50:14 140402111788800 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
      2017-07-13 17:50:14 140402464254144 [Note] InnoDB: Highest supported file format is Barracuda.
      2017-07-13 17:50:14 140402464254144 [Note] InnoDB: Starting crash recovery from checkpoint LSN=1640473
      2017-07-13 17:50:14 140402464254144 [Note] InnoDB: Ignoring data file './test/a.ibd' with space ID 5, since the redo log references ./test/a.ibd with space ID 4.
      2017-07-13 17:50:14 140402464254144 [Note] InnoDB: Ignoring data file './test/x.ibd' with space ID 6, since the redo log references ./test/x.ibd with space ID 5.
      2017-07-13 17:50:14 140402464254144 [Note] InnoDB: Starting final batch to recover 13 pages from redo log.
      170713 17:50:15 [ERROR] mysqld got signal 6 ;
      This could be because you hit a bug. It is also possible that this binary
      or one of the libraries it was linked against is corrupt, improperly built,
      or misconfigured. This error can also be caused by malfunctioning hardware.
       
      To report this bug, see https://mariadb.com/kb/en/reporting-bugs
       
      We will try our best to scrape up some info that will hopefully help
      diagnose the problem, but since we have already crashed, 
      something is definitely wrong and this may fail.
       
      Server version: 10.2.8-MariaDB-debug
      key_buffer_size=0
      read_buffer_size=131072
      max_used_connections=0
      max_threads=1
      thread_count=0
      It is possible that mysqld could use up to 
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 5468 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x0
      Attempting backtrace. You can use the following information to find out
      where mysqld died. If you see no messages after this, something went
      terribly wrong...
      stack_bottom = 0x0 thread_stack 0x49000
      /home/a/spd/m0-10.2/build/extra/mariabackup/mariabackup(my_print_stacktrace+0x38)[0x7fb200044159]
      /home/a/spd/m0-10.2/build/extra/mariabackup/mariabackup(handle_fatal_signal+0x39e)[0x7fb1ff976011]
      /lib64/libpthread.so.0(+0xf370)[0x7fb1fec53370]
      /lib64/libc.so.6(gsignal+0x37)[0x7fb1fcbaa1d7]
      /lib64/libc.so.6(abort+0x148)[0x7fb1fcbab8c8]
      /lib64/libc.so.6(+0x74f07)[0x7fb1fcbe9f07]
      /lib64/libc.so.6(+0x7ada4)[0x7fb1fcbefda4]
      /home/a/spd/m0-10.2/build/extra/mariabackup/mariabackup(+0xe94c96)[0x7fb1fff17c96]
      mysys/stacktrace.c:267(my_print_stacktrace)[0x7fb1fff1993e]
      include/sync0types.h:592(LatchCounter::~LatchCounter())[0x7fb1fff1787d]
      sync/sync0debug.cc:1826(sync_check_close())[0x7fb1fff17b21]
      srv/srv0start.cc:2939(innodb_shutdown())[0x7fb1fff07153]
      mariabackup/xtrabackup.cc:5217(xtrabackup_prepare_func(char**))[0x7fb1ff569043]
      mariabackup/xtrabackup.cc:5819(main_low(char**))[0x7fb1ff56aa80]
      mariabackup/xtrabackup.cc:5616(main)[0x7fb1ff56a2bf]
      /lib64/libc.so.6(__libc_start_main+0xf5)[0x7fb1fcb96b35]
      /home/a/spd/m0-10.2/build/extra/mariabackup/mariabackup(+0x4da039)[0x7fb1ff55d039]
      The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
      information that should help you find out what is causing the crash.
       
       - saving '/home/a/spd/m0-10.2/build/mysql-test/var/log/mariabackup.i/' to '/home/a/spd/m0-10.2/build/mysql-test/var/log/mariabackup.i/'
      --------------------------------------------------------------------------
      The servers were restarted 0 times
      Spent 0.000 of 22 seconds executing testcases
       
      Failure: Failed 1/1 tests, 0.00% were successful.
       
      Failing test(s): mariabackup.i
       
      The log files in var/log may give you some hint of what went wrong.
       
      If you want to report this error, please read first the documentation
      at http://dev.mysql.com/doc/mysql/en/mysql-test-suite.html
       
      mysql-test-run: *** ERROR: there were failing test cases
      

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              anikitin Andrii Nikitin (Inactive)
              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.