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

LP:782269 - xt_xn_init_db() locks are initialized twice, leaking resources

    XMLWordPrintable

Details

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

    Description

      The loop below is run twice in xt_xn_init_db() . It initialized the same pthread_cond structures each time. It leaks events on Windows (since each pthread_cond contains 3 events that would be created with CreateEvent)

      Moreover, it creates problems (i.e debug exceptions) when mysqld is run under application verifier.

      Problematic code :

      for (u_int i=0; i<XT_XN_NO_OF_SEGMENTS; i++)

      { seg = &db->db_xn_idx[i]; XT_XACT_INIT_LOCK(self, &seg->xs_tab_lock); ... }

      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.