Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
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
- relates to
-
MDEV-16578 Repeated mysql_library_init()+mysql_library_end() calls freeze running process
- Closed