8.0.11 JDBC api crash VS2017
I have built openssl 1.0.2o, mySQL 8.0.11, and mySQL connector C++ 8.0.11 from source with the following configuration:
-Static library
-Static runtime
-x64
-VS2017
Created a simple application and linked it with
libeay32.lib;mysqlclient.lib;mysqlcppconn8-static-mt.lib;mysqlcppconn-static-mt.lib;ssleay32.lib
#define STATIC_CONCPP
#define CONCPP_BUILD_STATIC
#define CPPCONN_PUBLIC_FUNC
#include <driver.h>
int main()
{
sql::Driver *mDriver;
mDriver = get_driver_instance();
return 0;
}
The application crashes when it unloads:
file: client_plugin.cc function: mysql_client_plugin_deinit
plugin_list[2] read access violation.
Truth be told, this file that throws the exception is in the mySQL solution, not the connector, but as my project that uses mysqlclient.lib works fine (granted I don't use the mysql_client_plugin family of calls), I decided to post in this thread.
Feels like the MSVC++ runtime destroys plugin_list before it destroys NativeDriverWrapper.
...or... i may missed something in building.
Subject
Views
Written By
Posted
8.0.11 JDBC api crash VS2017
1387
July 25, 2018 07:24AM
646
July 30, 2018 05:51AM
567
August 02, 2018 09:23AM
645
August 07, 2018 03:54AM
718
August 10, 2018 02:07AM
554
August 13, 2018 07:09AM
488
August 16, 2018 07:32AM
550
August 16, 2018 04:34PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.