Simple client fail with segmentation fault in mongoclient library

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: 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
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      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 Marshall
            Reporter:
            Stanislav Ievlev
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: