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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • legacy-1.0.1
    • Implementation
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: