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

should not pass recv_writer_thread_handle to CloseHandle()

    XMLWordPrintable

Details

    Description

      Calling CloseHandle on an invalid handle. See here:

      UNIV_INTERN os_thread_t recv_writer_thread_handle = 0;

      recv_init_crash_recovery() does:

      recv_writer_thread_handle = os_thread_create(recv_writer_thread, 0, 0);

      recv_recovery_from_checkpoint_finish() does:

      if (recv_writer_thread_handle)

      { CloseHandle(recv_writer_thread_handle); }

      However, os_thread_create() is not returning the HANDLE object from CreateThread, it is returning the lpThreadId!!!

      Attachments

        Activity

          People

            jplindst Jan Lindström (Inactive)
            sbester1 sbester1
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.