Problem with global initialization of gcrypt library in enterprise build

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.4.2
    • Component/s: Security
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      If you remove the MONGO_INITIALIZER block for the copyDB command in s/commands_public.cpp and recompile mongos with the enterprise module linked in, then run mongos, it immediately crashes on startup saying:

      > ./mongos --configdb localhost
      Mon Apr  1 15:05:35.010 warning: running with 1 config server should be done only for testing purposes and is not recommended for production
      Failed global initialization: AlreadyInitialized gcrypt library already initialized
      

      Putting the MONGO_INITIALIZER block back in fixes the problem, as does compiling without the enterprise module.

            Assignee:
            Andy Schwerin
            Reporter:
            Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: