[CONC-336] Repeated mysql_library_init()+mysql_library_end() calls do not work Created: 2018-05-29 Updated: 2018-06-25 Resolved: 2018-06-05 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 3.0.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Pali | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| 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
above code only 1024 times. At 1025 step it fails with error:
With client from MariaDB 10.3.6 above code can be called only one time. After second time it fails with error:
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: 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` |
| Comments |
| Comment by Pali [ 2018-06-04 ] | ||||||||||||||||||
|
And when above test-init.c is linked with `mysql_config --cflags --libmysqld-libs` then second run cause deadlock in inline_mysql_cond_destroy. Same reproducer, but third different error.
This is from MariaDB version 10.1.26, which is available in current Debian stable. So it is not only problem of Connector/C, but also of MariaDB server itself. | ||||||||||||||||||
| Comment by Pali [ 2018-06-05 ] | ||||||||||||||||||
|
Now bug is marked closed. Does it mean that both Connector/C and also libmysqld are fixed? As in "Fix Version/s" field is only 3.0.5 version. What is state with 2.3 series? | ||||||||||||||||||
| Comment by Georg Richter [ 2018-06-05 ] | ||||||||||||||||||
|
Hi Pali, we will not fix it in C/C 2.3 series. |