Uploaded image for project: 'Percona XtraBackup'
  1. Percona XtraBackup
  2. PXB-1683

Xbcrypt displays assertion failure and generates core if the required parameters are missing

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 8.0-2-alpha2
    • Fix Version/s: 2.4.13, 8.0.4
    • Component/s: None
    • Labels:
      None
    • Environment:

      CentOS7.5

      Description

      Run xbcrypt with only input and output file parameters:

      ./xbcrypt -i /home/mchawla/db_temp/xtrabackup_checkpoints -o xtrabackup_checkpoints.xbcrypt 
      Assertion "encrypt_iv_len > 0" failed at /home/mchawla/PXB-8.0/storage/innobase/xtrabackup/src/xbcrypt_common.cc:136
      Aborted (core dumped)
      

      Run xbcrypt with encrypt algorithm missing:

      ./xbcrypt -i /home/mchawla/db_temp/xtrabackup_checkpoints -o xtrabackup_checkpoints.xbcrypt -k mHU3Zs5sRcSB7zB/JP1BInPP5lgShKly
      Assertion "encrypt_iv_len > 0" failed at /home/mchawla/PXB-8.0/storage/innobase/xtrabackup/src/xbcrypt_common.cc:136
      Aborted (core dumped)
      

      The xbcrypt binary should display an error message if any required parameter is missing or incorrect. It should not display an assertion failure and generate core for the user.

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                sergei.glushchenko Sergei Glushchenko (Inactive)
                Reporter:
                manish.chawla Manish Chawla
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours, 4 minutes
                  4h 4m