Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-558

'legacy' crashes on mongo::client::initialize() when using g++ and -std=c++11

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: legacy-1.0.1
    • Component/s: Implementation
    • Labels:
      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.

            Assignee:
            adam.midvidy Adam Midvidy
            Reporter:
            bzaborow Bartosz Zaborowski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: