Uploaded image for project: 'MariaDB Connector/ODBC'
  1. MariaDB Connector/ODBC
  2. ODBC-466

SQLCancel is possible to be run on already dropped statement

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.1.21, 3.2.5
    • 3.2.6, 3.1.22
    • General
    • None

    Description

      If Stmt handle use is not properly synchronized by the application(and I actually think that the need of this maybe not obvious), it can happen that until SQLCancel actually starts execution when the main thread not only finished the execution SQLCancel should abourt, but even freed. In this case the lock introduced in ODBC-464 will be not of big help if main thread(dropping the Stmt) takes it first. Cancelling thread will crash already at the attempt to read it.
      The solution would be introducing of the additional global lock and the global list of deleted statement handles. It looks like a bit too complex as for the problem with such a low probability of happening, but unlikely there is simpler one other than to rely on application

      Attachments

        Issue Links

          Activity

            People

              Lawrin Lawrin Novitsky
              Lawrin Lawrin Novitsky
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.