-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: legacy-1.0.1
-
Component/s: Implementation
-
None
Simplest possible code:
#include "mongo/client/dbclient.h" // for the driver
int main()
{ mongo::client::initialize(); return 0; }compilled with:
g++ mongo_crash.cc -std=c++11 -pthread -lmongoclient -lboost_thread-mt -lboost_system -lboost_regex -o mongo_crash
causes segfault in mongo::client::initialize(). gdb says its somewhere in the ~Options(), but I don't understand what's going on. Without -std=c++11 everything works.
The driver sources have been cloned out and built few days ago.