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

Simple client fail with segmentation fault in mongoclient library

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • 2.4.6, 2.5.2
    • 2.2.2, 2.2.3
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: