mongoc_log and mongoc_log_set_handler use two different pthread_once_t's to ensure one-time initialization, but they share mutable state. Multiple threads calling a mix of the two functions will race to initialize the global logging mutex, possibly initializing it more than once.
- Assignee:
-
A. Jesse Jiryu Davis
- Reporter:
-
A. Jesse Jiryu Davis
- Votes:
-
0 Vote for this issue
- Watchers:
-
1 Start watching this issue
- Created:
- Updated:
- Resolved: