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

LP:782433 - free() of memory containing active spinlock

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      xt_heap_release() does not release spinlock hp->h_lock that is initialized in xt_heap_new().

      This makes Windows application verifier unhappy.

      Fix:
      — storage/pbxt/src/heap_xt.cc 2009-11-24 10:55:06 +0000
      +++ storage/pbxt/src/heap_xt.cc 2011-05-13 17:03:23 +0000
      @@ -109,6 +109,7 @@
      if (hp->h_finalize)
      (*hp->h_finalize)(self, hp);
      xt_spinlock_unlock(&hp->h_lock);
      + xt_spinlock_free(NULL, &hp->h_lock);
      xt_free(self, hp);
      return;
      }

      Attachments

        Activity

          People

            wlad Vladislav Vaintroub
            wlad Vladislav Vaintroub
            Votes:
            0 Vote for this issue
            Watchers:
            0 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.