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

Zabbix Segfaults on invalid assert()s

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.0.5rc1, 2.1.0
    • 2.0.3
    • Proxy (P), Server (S)
    • Gentoo with standard ebuild 2.0.3 (contains no patches against the official source).

      The DB-API high-level abstractions for Zabbix and the Zabbix server contain some invalid asserts, which contain code with side-affects and which isn't executed on a -DNDEBUG build (which is the default build argument on Gentoo). This leads to random segfaults due to the use of unitialized values. The attached patch file fixes the corresponding assert()s to have the actual code outside of the assert, and leaves only the test in the assert. I haven't checked whether this is already fixed in 2.0.4, but couldn't find any other mention on the JIRA for these kind of segfaults.

      Incidentally, zabbix_server (at the same version) used to work fine for us, and only after an upgrade of the base system (which meant a restart of the server process) led to the random segfaults occuring.

            Unassigned Unassigned
            modelnine Heiko Wundram
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: