[CONC-14] Crash in my_malloc during prepared statement Created: 2013-03-01 Updated: 2013-04-25 Resolved: 2013-03-21 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | John Schember | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Kubuntu 12.10 x64 |
||
| Description |
|
I am getting a crash when trying to use prepared statements. I'm connecting to MySQL 5.5 via sockets. I'm using version 1.0.0 of the C library. The application does not crash when using the MySQL 5.1 or 5.5 client libraries. Back trace:
When trying to build the client with debug symbols I'm running into another issue:
Here is my build line:
Since the debug build is failing when trying to compile my_stmt.c I think these two issues are related. |
| Comments |
| Comment by Piotr Wilkosz [ 2013-03-05 ] |
|
seems to be a typo in my_stmt.c: libmysql/my_stmt.c:640: my_free((gptr)start, MYF(ALLOW_ZERO_PTR)); should be: libmysql/my_stmt.c:640: my_free((gptr)start, MYF(MY_ALLOW_ZERO_PTR)); to use MY_ALLOW_ZERO_PTR constant from include/my_sys.h |
| Comment by Georg Richter [ 2013-03-17 ] |
|
Could you please test it against latest version from Launchpad repository lp:mariadb-native-client. Likely this was already fixed with rev. 37 commit. |
| Comment by John Schember [ 2013-03-19 ] |
|
I cannot reproduce the issue using the latest revision from Lauchpad. |
| Comment by Georg Richter [ 2013-03-21 ] |
|
Fixed with rev. 37 |