Automatically calling mongoc_init() and mongoc_cleanup() has been deprecated for a while, but for bc reasons it is still enabled by default.
Unfortunately, this causes lots of issues when the client app does not actually call the functions, such as with SASL cleanup routines.
During configuration, we should make it abundantly clear when sasl and automatic ctor/dtor is enabled, that this will result in issues.
See for examples linked tickets
- is related to
-
CDRIVER-1233 Crash after Kerberos plugin cleanup runs twice
- Closed