Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Windows, Visual Studio 10

    Description

      When multiple MySQL objects are created in the same thread, and mysql_thread_end is called when destroying each object, it crashes.

      This does not happen with the MySQL client library.

      Have attached sample code.

      Attachments

        Activity

          wlad Vladislav Vaintroub added a comment - - edited

          Just a remark - it is not the correct way to use mysq_thread_end(). It should not be called once per "object" (whatever it is), but once per OS thread, if you do not plan to to make mysql calls anymore in this thread.

          wlad Vladislav Vaintroub added a comment - - edited Just a remark - it is not the correct way to use mysq_thread_end(). It should not be called once per "object" (whatever it is), but once per OS thread, if you do not plan to to make mysql calls anymore in this thread.

          Yes we are aware of that. However in MySQL, this case does not cause a crash, but in MariaDB it does.

          janani_87 Janani SriGuha added a comment - Yes we are aware of that. However in MySQL, this case does not cause a crash, but in MariaDB it does.

          That it does not crash in MySQL just means you're lucky. This does not mean that one can rely on undocumented behavior in APIs

          wlad Vladislav Vaintroub added a comment - That it does not crash in MySQL just means you're lucky. This does not mean that one can rely on undocumented behavior in APIs

          True
          though the MySQL API has a check which prevents the crash.

          janani_87 Janani SriGuha added a comment - True though the MySQL API has a check which prevents the crash.

          Just found out this (crashing) happens only in a Windows environment. It works fine in linux.

          janani_87 Janani SriGuha added a comment - Just found out this (crashing) happens only in a Windows environment. It works fine in linux.
          georg Georg Richter added a comment -

          Fixed in rev. 67

          georg Georg Richter added a comment - Fixed in rev. 67

          People

            georg Georg Richter
            janani_87 Janani SriGuha
            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.