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

LP:782431 - active locks in released memory

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Found during MariaDB tests with application verifier:

      xt_ind_exit() frees memory block pointed to by ind_cac_globals.cg_blocks, but does not free page locks in it, that are initialized using XT_IPAGE_INIT_LOCK(self, &block->cb_lock) in xt_ind_init().

      This makes application verifier unhappy on 64 bit Windows.

      XTIndBlockPtr block = ind_cac_globals.cg_blocks;
      for (u_int i=0; i<ind_cac_globals.cg_block_count; i++)

      { XT_IPAGE_FREE_LOCK(self, &block->cb_lock); block++; }

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            wlad Vladislav Vaintroub added a comment -

            Re: active locks in released memory
            the code at the end of bug report is meant to be the fix for it

            Show
            wlad Vladislav Vaintroub added a comment - Re: active locks in released memory the code at the end of bug report is meant to be the fix for it
            Hide
            wlad Vladislav Vaintroub added a comment -

            Re: active locks in released memory
            Fixed in MariaDB 5.2.7

            Show
            wlad Vladislav Vaintroub added a comment - Re: active locks in released memory Fixed in MariaDB 5.2.7
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 782431

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 782431

              People

              • Assignee:
                wlad Vladislav Vaintroub
                Reporter:
                wlad Vladislav Vaintroub
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: