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

Invalid read of size 8 when PostgreSQL database is stopped

    XMLWordPrintable

Details

    • Problem report
    • Status: Closed
    • Trivial
    • Resolution: Duplicate
    • 3.0.14rc2, 3.2.11rc1, 3.4.5rc1, 4.0.0alpha1
    • None
    • None
    • None
    • Team A
    • 0.5

    Description

      "Invalid read of size 8"

      pg_result is passed to PQresultStatus() even if NULL

      if (NULL == result->pg_result)
      		zbx_db_errlog(ERR_Z3005, 0, "result is NULL", sql);
      
      	if (PGRES_TUPLES_OK != PQresultStatus(result->pg_result))
      
      ==26088== Invalid read of size 8
      ==26088==    at 0x62B0C3: zbx_db_vselect (db.c:1809)
      ==26088==    by 0x5CB24B: __zbx_DBselect (db.c:361)
      ==26088==    by 0x462E6D: process_httptests (httptest.c:1216)
      ==26088==    by 0x4625A9: httppoller_thread (httppoller.c:127)
      ==26088==    by 0x5597DC: zbx_thread_start (threads.c:128)
      ==26088==    by 0x4321F3: MAIN_ZABBIX_ENTRY (server.c:1093)
      ==26088==    by 0x52E896: daemon_start (daemon.c:392)
      ==26088==    by 0x41D532: main (server.c:834)
      ==26088==  Address 0xdd2cde0 is 0 bytes inside a block of size 32 free'd
      ==26088==    at 0x4C30D18: free (vg_replace_malloc.c:530)
      ==26088==    by 0x62B0A9: zbx_db_vselect (db.c:1808)
      ==26088==    by 0x5CB24B: __zbx_DBselect (db.c:361)
      ==26088==    by 0x462E6D: process_httptests (httptest.c:1216)
      ==26088==    by 0x4625A9: httppoller_thread (httppoller.c:127)
      ==26088==    by 0x5597DC: zbx_thread_start (threads.c:128)
      ==26088==    by 0x4321F3: MAIN_ZABBIX_ENTRY (server.c:1093)
      ==26088==    by 0x52E896: daemon_start (daemon.c:392)
      ==26088==    by 0x41D532: main (server.c:834)
      ==26088==  Block was alloc'd at
      ==26088==    at 0x4C2FB6B: malloc (vg_replace_malloc.c:299)
      ==26088==    by 0x562A8F: zbx_malloc2 (misc.c:491)
      ==26088==    by 0x62AF7E: zbx_db_vselect (db.c:1791)
      ==26088==    by 0x5CB24B: __zbx_DBselect (db.c:361)
      ==26088==    by 0x462E6D: process_httptests (httptest.c:1216)
      ==26088==    by 0x4625A9: httppoller_thread (httppoller.c:127)
      ==26088==    by 0x5597DC: zbx_thread_start (threads.c:128)
      ==26088==    by 0x4321F3: MAIN_ZABBIX_ENTRY (server.c:1093)
      ==26088==    by 0x52E896: daemon_start (daemon.c:392)
      ==26088==    by 0x41D532: main (server.c:834)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            vso Vladislavs Sokurenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: