-
Type:
Incident report
-
Resolution: Fixed
-
Priority:
Major
-
Affects Version/s: 2.0.13, 2.2.7, 2.4.2
-
Component/s: Agent (G), Proxy (P), Server (S)
-
Environment:Unix-like systems
src/libs/zbxsys/mutexs.c
The mutex operation (locking, unlocking) functions first check if the mutex is valid with following code:
if (ZBX_MUTEX_NULL == *mutex) return;
But on *nix like systems ZBX_MUTEX_NULL matches ZBX_MUTEX_LOG value (0). So the log mutex is never locked.
We should change ZBX_MUTEX_NULL to (-1) for *nix systems.