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

Simple client fail with segmentation fault in mongoclient library

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 2.4.6, 2.5.2
    • Affects Version/s: 2.2.2, 2.2.3
    • Component/s: Internal Client
    • None
    • Environment:
      Linux
    • Fully Compatible
    • ALL

      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();
      }
      

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

              Created:
              Updated:
              Resolved: