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

Releasing an not-acquired lock in the create_worker_threads

    XMLWordPrintable

    Details

      Description

      There is unlocking of a resource that is not locked, CWE-832, in the method create_worker_threads. That is, when "compress: pthread_create() failed", lock thd->ctrl_mutex is released. Yet, when coming to err branch, the lock is erroneously released again.

      Location: https://github.com/MariaDB/server/blob/10.9/extra/mariabackup/ds_compress.cc#L364-L391

      Thank you for your checking.

        Attachments

          Activity

            People

            Assignee:
            marko Marko Mäkelä
            Reporter:
            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.