Details
-
Bug
-
Resolution: Done
-
Critical - P2
-
None
-
legacy-1.0.0
Description
Object mongo::client::intiailze() cannot initial mongo-client call to server when use legacy driver. After use gtest run mongo_connector binary file show as below.
(gdb) bt
#0 0x00007ffff7ffe2c8 in ?? ()
#1 0x0000000000412843 in std::_Function_base::~_Function_base() () at /usr/include/c++/4.8/functional:2030
#2 0x0000000000412f40 in std::function<std::auto_ptr<mongo::logger::Appender<mongo::logger::MessageEventEphemeral> > ()>::~function() () at /usr/include/c++/4.8/functional:2170
#3 0x0000000000412f5e in mongo::client::Options::~Options() () at /home/chatsiri/sda1/workspacecpp/mongo-cxx-driver/build/include/mongo/client/options.h:32
#4 0x00000000004132fb in connector::mongo_connector<scan_threat::InfectedFileInfo>::mongo_connector() () at mongo_connector.cpp:33
Legacy source is version:
commit 624146feb3bb74fe139b167af02d666e83f24e7d
Date: Sun Mar 15 18:04:25 2015 +0800
Command compiles legacy branch of C++ driver:
scons --sharedclient --extrapath=/home/chatsiri/sda1/workspacecpp/boost_1_57_0 --cpppath=/home/chatsiri/sda1/workspacecpp/boost_1_57_0 --libpath=/home/chatsiri/sda1/workspacecpp/boost_1_57_0/stage/lib --cxx=/usr/bin/g++-4.8 --cc=/usr/bin/gcc-4.8 --dbg=on --prefix=/home/chatsiri/sda1/workspacecpp/mongo-cxx-driver/build install
An example source code before was compiled to binary file.
class mongo_conector{
public:
mongo_conector()
...
};