[CONC-64] double free or corruption in unpack_fields Created: 2013-12-27 Updated: 2014-12-19 Resolved: 2014-12-19 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 2.0.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Patrick Schlangen | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
openSUSE 11.1 x86_64, connecting to mysqld Ver 5.0.67 for suse-linux-gnu on x86_64 (SUSE MySQL RPM) |
||
| Attachments: |
|
| Description |
|
After executing a certain query, libmariadb crashes with a double free or corruption error detected by glibc.
Backtrace:
Tested with r 107. Issue seems to occur when connecting to certain MySQL versions or configurations only. I assume that more information is required to investigate this issue, but don't know which. Please let me know if further information is required. |
| Comments |
| Comment by Patrick Schlangen [ 2013-12-27 ] |
|
Just out of curiosity, I've changed the 8192 bytes buffer length in libmariadb.c (lines 614 and 1182) to 8192*2 bytes. This fixes the issue for me. |
| Comment by Georg Richter [ 2014-01-03 ] |
|
Hi Patrick, thank you for your bug report. Some more information would be helpful: Could you please build a debug version (-DCMAKE_BUILD_TYPE=Debug) and produce a debug log (export MYSQL_DEBUG=d:t:O,/path_to/debug.log) and attach the log file to this report? Thanks! |
| Comment by Patrick Schlangen [ 2014-01-06 ] |
|
Hi Georg, thanks for your reply. I've attached the log. Best Regards Patrick |
| Comment by Brad House (Inactive) [ 2014-04-30 ] |
|
Actually, I think I saw this crash too which led me to investigate further with valgrind, can you try the patch I created in |
| Comment by Georg Richter [ 2014-12-19 ] |
|
This bug was fixed in rev. 141 (see |