Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-336

Repeated mysql_library_init()+mysql_library_end() calls do not work

    XMLWordPrintable

Details

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

    Description

      When trying to call repeated mysql_library_init() and mysql_library_end() it fails on different error.

      With MariaDB Connector/C 2.3.2 I can call

      mysql_library_init(-1, NULL, NULL);
      mysql_library_end();
      

      above code only 1024 times. At 1025 step it fails with error:

      Can't initialize threads: error 95
      

      With client from MariaDB 10.3.6 above code can be called only one time. After second time it fails with error:

      Plugin pvio_socket could not be loaded: not initialized
      

      With client from MariaDB 10.1.26 everything is working fine and 10000 iteration passed without problem.

      This problem was found while developing Perl DBI driver DBD::MariaDB:
      http://github.com/gooddata/DBD-MariaDB

      In attachment is a simple application to testing mysql_library_init() and mysql_library_end() calls. Compile it with gcc test-init.c -o test-init `mysql_config --cflags --libs`

      Attachments

        Issue Links

          Activity

            People

              georg Georg Richter
              pali Pali
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.