Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-8891

Simple client fail with segmentation fault in mongoclient library

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical - P2
    • Resolution: Fixed
    • 2.2.2, 2.2.3
    • 2.4.6, 2.5.2
    • Internal Client
    • None
    • Linux
    • Fully Compatible
    • ALL

    Description

      Example code below fails with segmentation fault at exit:

      #include <mongo/client/dbclient.h>
       
      using namespace mongo;
       
      int main() {
         std::vector<HostAndPort> hosts;
         hosts.push_back(HostAndPort("localhost"));
       
         DBClientReplicaSet connection("c2", hosts);
         connection.connect();
      }

      Attachments

        Issue Links

          Activity

            People

              tad Tad Marshall
              sievlev Stanislav Ievlev
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: