Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-9002

Zabbix does not lock log file during logging

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.13, 2.2.7, 2.4.2
    • Fix Version/s: 2.5.0
    • Component/s: Agent (G), Proxy (P), Server (S)
    • Labels:
    • Environment:
      Unix-like systems

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                wiper Andris Zeila
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: