チーム、
mysqlclient バージョン 16 と Mysql c++ コネクタを使用して、Mysql データベースに接続し、いくつかの DB 操作を実行しようとしています。これらのライブラリに依存する製品のコードは既に作成されています。Mysql サーバー バージョン 5.1.56。いろいろな場面でクラッシュしていることがわかりました。
以下は、いくつかのクラッシュ ダンプです。なぜこれらが起こっているのですか?通常、接続を閉じて接続を作成します。
- 接続を閉じるには、 mSqlCon->close() を使用しています
以下のようなものを使用して接続iamを作成するには:
ドライバー = get_driver_instance(); mSqlCon = driver->connect( connection_properties );
mSqlCon は sql::Connection * 型です。どんな助けでも大歓迎です!!
#0 0x00007f82b4f064ff in ?? () /usr/local/lib64/mysql/libmysqlclient.so.16 から #1 /usr/local/lib64/mysql/libmysqlclient.so.16 からの net_real_write () の 0x00007f82b4f06758 #2 /usr/local/lib64/mysql/libmysqlclient.so.16からのnet_flush()の0x00007f82b4f06c3b #3 /usr/local/lib64/mysql/libmysqlclient.so.16 からの mysql_real_connect () の 0x00007f82b4f03279 #4 sql::mysql::NativeAPI::LibmysqlStaticProxy::real_connect の 0x00007f82b4a630d7 (this=, mysql=0x7f82ac041680, ホスト=0x7f82ac053d80「K」、ユーザー=0x4f、パスワード=0x0、デシベル=0x35a5d367fc14006c、 port=3306, unix_socket=0x7f82ac041680 "\a", client_flag=140199208425088) /export/home2/tmp/cteam/bs/connector-c++-64bit/src/mysql-connector-c++-1.1.1/driver/nativeapi/libmysql_static_proxy.cpp:316 #5 sql::mysql::NativeAPI::MySQL_NativeConnectionWrapper::connect の 0x00007f82b4a649a9 (this=0x7f82ac0d22d0, host=, user=, passwd=, db=, port=, socket_or_pipe=..., client_flag=140199208425088) /build/cteam/bs/linux-x86_64/connector-common-alt-64bit/boost/include/boost-1_39/boost/smart_ptr/shared_ptr.hpp:408 で #6 sql::mysql::MySQL_Connection::init の 0x00007f82b49f8ebe (this=0x7f82ac0d3740, properties=...) /export/home2/tmp/cteam/bs/connector-c++-64bit/src/mysql-connector-c++-1.1.1/driver/mysql_uri.h:51 #7 MySQL_Connection の 0x00007f82b49f57b3 (this=0x7f82ac0d3740、_driver=、_proxy=、properties=...) /export/home2/tmp/cteam/bs/connector-c++-64bit/src/mysql-connector-c++-1.1.1/driver/mysql_connection.cpp:141 #8 0x00007f82b4a062cd in sql::mysql::MySQL_Driver::connect (this=0x7f82ac0466e0, properties=...) /build/cteam/bs/linux-x86_64/connector-common-alt-64bit/boost/include/boost-1_39/boost/smart_ptr/scoped_ptr.hpp:96 で
#0 0x00007fbf785e7745 in free () from /lib64/libc.so.6 #1 __gnu_cxx::new_allocator::deallocate の 0x00007fbf79b49224 (this=, __nstart=0x7fbf740dbc76、__nfinish=0x7fbf740dbc80) を /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/ext/new_allocator に配置します。時間:86 #2 std::_Deque_base >::_M_deallocate_node ( これ=, __nstart=0x7fbf740dbc76, __nfinish=0x7fbf740dbc80) /export/home2/tmp/cteam/bs/connector-c++-64bit/src/mysql-connector-c++-1.1.1/driver/mysql_debug.cpp:401 #3 std::_Deque_base >::_M_destroy_nodes ( これ=, __nstart=0x7fbf740dbc76, __nfinish=0x7fbf740dbc80) /export/home2/tmp/cteam/bs/connector-c++-64bit/src/mysql-connector-c++-1.1.1/driver/mysql_debug.cpp:497 #4 ~_Deque_base の 0x00007fbf79b491d0 (this=0x7fbf74049db00000, __in_chrg=) /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/stl_deque.h:425 で #5 ~MySQL_DebugLogger の 0x00007fbf79b48def (this=0x7fbf740444d0, __in_chrg=) /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/stl_deque.h:703 で #6checked_deleteの0x00007fbf79b4829f(this =) /build/cteam/bs/linux-x86_64/connector-common-alt-64bit/boost/include/boost-1_39/boost/checked_delete.hpp:34 で #7 boost::detail::sp_counted_impl_p::dispose (this=) /build/cteam/bs/linux-x86_64/connector-common-alt-64bit/boost/include/boost-1_39/boost/smart_ptr/detail/sp_counted_impl.hpp:78 で #8 0x00007fbf79b3ae22 in ~MySQL_ConnectionData (this=0x7fbf740d6140, __in_chrg=) /build/cteam/bs/linux-x86_64/connector-common-alt-64bit/boost/include/boost-1_39/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:145 で #9 ~MySQL_Connection (this=0x7fbf740d6140, __in_chrg=) /export/home2/tmp/cteam/bs/connector-c++-64bit/src/mysql-connector-c++-1.1.1/driver/mysql_connection.cpp:162 で