[MDEV-12246] Double-free crash in libmariadb.so: mysql_options() Created: 2017-03-13 Updated: 2017-09-26 Resolved: 2017-03-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Affects Version/s: | 10.2.4 |
| Fix Version/s: | 10.2.5 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | FLAESCH Sebastien | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | 10.2-ga | ||
| Environment: |
Linux Debian 8.6 / 64bits |
||
| Issue Links: |
|
||||||||
| Description |
|
Fresh compilation with 10.2, using exact same code as 10.1, we get a crash in mysql_options():
|
| Comments |
| Comment by Georg Richter [ 2017-03-20 ] | |||||
|
Fixed in Connector/C branch master: | |||||
| Comment by FLAESCH Sebastien [ 2017-04-24 ] | |||||
|
Just testing 10.2.5.... mysql_options() is no longer crashing, but it looks like it does not load user-defined config for "client" section when doing:
I have a ~/my.cnf file with following content:
But when executing SQL with UTF-8 characters the parser gets confused as if I am using another encoding:
Error:
Same code works fine with Oracle MySQL 5.7. New bug created: | |||||
| Comment by FLAESCH Sebastien [ 2017-09-26 ] | |||||
|
Verified with 10.2.8 |