-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.4.0
-
Component/s: None
-
None
mongoc uses nondeterministic constructors and destructors to automatically init and cleanup mongoc.
This is contrast to our documented requirement of needing explicit mongoc_init () and mongoc_cleanup ().
It is also compiler specific, along with being platforms specific.
It also creates absurd situations when the memory allocator is overloaded.
A flag was added for this, which defaults to false – but we have no way of configuring this behavior to turn it off, other then explicit via cflags.
We should add --enable-automatic-globals=[default yes]. Or maybe even default to false since this has been undocumented behavior all along?
- is depended on by
-
PHPC-657 Support MONGOC_NO_AUTOMATIC GLOBALS configure flag
- Closed
- is related to
-
CDRIVER-592 Deprecate mongoc_init_ctor/dtor
- Closed
-
CDRIVER-1233 Crash after Kerberos plugin cleanup runs twice
- Closed
-
PHPC-632 FPM segfaults during shutdown
- Closed
- related to
-
CDRIVER-1165 _mongoc_init_dtor() should restore its memory vtable before cleanup
- Closed