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

Simple client fail with segmentation fault in mongoclient library

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 2.2.2, 2.2.3
    • Fix Version/s: 2.4.6, 2.5.2
    • Component/s: Internal Client
    • Labels:
      None
    • Environment:
      Linux
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      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

              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: