[SERVER-9167] Problem with global initialization of gcrypt library in enterprise build Created: 28/Mar/13  Updated: 10/Dec/14  Resolved: 30/Apr/13

Status: Closed
Project: Core Server
Component/s: Security
Affects Version/s: 2.4.2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-9086 Enterprise libgcrypt initializer miss... Closed
Operating System: ALL
Participants:

 Description   

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.



 Comments   
Comment by Andy Schwerin [ 30/Apr/13 ]

Obviated by SERVER-8813

Comment by Spencer Brody (Inactive) [ 01/Apr/13 ]

I don't think SERVER-9086 is the same. That's supposedly already been fixed in master, but I still see this issue in master.

Generated at Thu Feb 08 03:19:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.