Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
Win64 build with mingw64 4.8.0
Library r118, MariaDB 5.5.33a and Qt4.8.5
Description
Hi,
We have sometimes crash of the library inside call of mysql_stmt_prepare.
The stmt->mysql is NULL and dereferenced.
The last error states a lost connection, which can be normal. The crash happened just after a wake up of a suspended state of the computer.
I have included a screenshot, with the state of all variables when app was crashing, if it can help.
We are using vanilla r118 of the library.
Thanks,
Best Regards,
Eric
Attachments
Issue Links
- relates to
-
CONC-97 Crash by a NULL dereferencing of stmt->mysql in mysql_stmt_reset
-
- Closed
-
Crash happens, if reconnect option is enabled.
static int test_conc83(MYSQL *mysql)
{
MYSQL_STMT *stmt;
int rc;
char *query= "SELECT 1,2,3 FROM DUAL";
stmt= mysql_stmt_init(mysql);
mysql->reconnect= 1;
rc= mysql_kill(mysql, mysql_thread_id(mysql));
rc= mysql_stmt_prepare(stmt, query, strlen(query));
FAIL_IF(!rc, "Error expected");
mysql_stmt_close(stmt);
return OK;
}