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

An improper locking bug due to unreleased lock in the ds_archive.cc

Details

    Description

      The lock archive_ctxt->mutex is not released correctly when archive_ctxt->dest_file == NULL in the function archive_open?

      https://github.com/MariaDB/server/blob/76f4a78ba2639b5abd01a88b24a3c509c11530ce/extra/mariabackup/ds_archive.cc#L168-L175

      Also mentioned in MDEV-26556.

      Attachments

        Activity

          Ok, that code is not compiled.

          wlad Vladislav Vaintroub added a comment - Ok, that code is not compiled.
          Ryan Ryan added a comment -

          @wlad Should be a real bug? Once it is included and compiled in MariaDB.

          Ryan Ryan added a comment - @wlad Should be a real bug? Once it is included and compiled in MariaDB.
          wlad Vladislav Vaintroub added a comment - - edited

          it is not compiled. Otherwise, you would point me to the place where ds_archive.cc is compiled, as it would be part of either ADD_LIBRARY or ADD_EXECUTABLE in CMakeLists.txt . it is not there, it is not compiled.
          If it was compiled , ds_archive.cc would be somewhere in here https://github.com/MariaDB/server/blob/10.6/extra/mariabackup/CMakeLists.txt#L62

          but it is not compiled. So I removed it entirely

          wlad Vladislav Vaintroub added a comment - - edited it is not compiled. Otherwise, you would point me to the place where ds_archive.cc is compiled, as it would be part of either ADD_LIBRARY or ADD_EXECUTABLE in CMakeLists.txt . it is not there, it is not compiled. If it was compiled , ds_archive.cc would be somewhere in here https://github.com/MariaDB/server/blob/10.6/extra/mariabackup/CMakeLists.txt#L62 but it is not compiled. So I removed it entirely
          Ryan Ryan added a comment -

          OK, thanks

          Ryan Ryan added a comment - OK, thanks

          People

            wlad Vladislav Vaintroub
            Ryan Ryan
            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.