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

zbx_regexp():Conditional jump or move depends on uninitialised value(s)

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 2.0.12
    • Server (S)
    • CentOS release 6.6 (Final)

      This problem can cause a server stop or SQL like:

      13360:20150607:043101.170 Got signal [signal:15(SIGTERM),sender_pid:9909,sender_uid:500, reason:0]. Exiting ...
      13352:20150607:043101.170 Got signal [signal:15(SIGTERM),sender_pid:9909,sender_uid:500, reason:0]. Exiting ...
      13286:20150607:043101.170 Got signal [signal:15(SIGTERM),sender_pid:9909,sender_uid:500, reason:0]. Exiting ...
      13304:20150607:043101.170 Got signal [signal:15(SIGTERM),sender_pid:9909,sender_uid:500, reason:0]. Exiting ...
      13301:20150607:043101.173 Got signal [signal:15(SIGTERM),sender_pid:9909,sender_uid:500, reason:0]. Exiting ...
      13313:20150607:043101.181 Got signal [signal:15(SIGTERM),sender_pid:9909,sender_uid:500, reason:0]. Exiting ...
      13320:20150607:043101.182 Got signal [signal:15(SIGTERM),sender_pid:9909,sender_uid:500, reason:0]. Exiting ...
      9909:20150607:043103.189 In DBconnect() flag:1
      9909:20150607:043103.210 [Z3001] connection to database 'zbx_2012' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
      9909:20150607:043103.210 Cannot connect to the database. Exiting...
      

      Valgrind output:

      ==00:05:16:32.610 9574== Conditional jump or move depends on uninitialised value(s)
      ==00:05:16:32.640 9574== at 0x32CDABA4F8: re_compile_fastmap_iter (in /lib64/libc-2.12.so)
      ==00:05:16:32.641 9574== by 0x32CDABAC43: re_compile_fastmap (in /lib64/libc-2.12.so)
      ==00:05:16:32.641 9574== by 0x32CDACD391: regcomp (in /lib64/libc-2.12.so)
      ==00:05:16:32.641 9574== by 0x454FE2: zbx_regexp (regexp.c:50)
      ==00:05:16:32.641 9574== by 0x455199: regexp_match_ex (regexp.c:217)
      ==00:05:16:32.641 9574== by 0x4808F1: lld_check_record (lld.c:39)
      ==00:05:16:32.641 9574== by 0x4808F1: lld_rows_get (lld.c:119)
      ==00:05:16:32.641 9574== by 0x4808F1: lld_process_discovery_rule (lld.c:233)
      ==00:05:16:32.641 9574== by 0x41CDE2: get_values (poller.c:736)
      ==00:05:16:32.641 9574== by 0x41DFDC: main_poller_loop (poller.c:803)
      ==00:05:16:32.641 9574== by 0x415168: MAIN_ZABBIX_ENTRY (server.c:1774)
      ==00:05:16:32.641 9574== by 0x44E57D: daemon_start (daemon.c:286)
      ==00:05:16:32.641 9574== by 0x32CDA1ED5C: (below main) (in /lib64/libc-2.12.so)
      ==00:05:16:32.641 9574==
      ==00:05:16:32.642 9574== Conditional jump or move depends on uninitialised value(s)
      ==00:05:16:32.642 9574== at 0x32CDABA4F8: re_compile_fastmap_iter (in /lib64/libc-2.12.so)
      ==00:05:16:32.642 9574== by 0x32CDABAC5B: re_compile_fastmap (in /lib64/libc-2.12.so)
      ==00:05:16:32.642 9574== by 0x32CDACD391: regcomp (in /lib64/libc-2.12.so)
      ==00:05:16:32.642 9574== by 0x454FE2: zbx_regexp (regexp.c:50)
      ==00:05:16:32.642 9574== by 0x455199: regexp_match_ex (regexp.c:217)
      ==00:05:16:32.642 9574== by 0x4808F1: lld_check_record (lld.c:39)
      ==00:05:16:32.642 9574== by 0x4808F1: lld_rows_get (lld.c:119)
      ==00:05:16:32.642 9574== by 0x4808F1: lld_process_discovery_rule (lld.c:233)
      ==00:05:16:32.642 9574== by 0x41CDE2: get_values (poller.c:736)
      ==00:05:16:32.642 9574== by 0x41DFDC: main_poller_loop (poller.c:803)
      ==00:05:16:32.642 9574== by 0x415168: MAIN_ZABBIX_ENTRY (server.c:1774)
      ==00:05:16:32.642 9574== by 0x44E57D: daemon_start (daemon.c:286)
      ==00:05:16:32.642 9574== by 0x32CDA1ED5C: (below main) (in /lib64/libc-2.12.so)
      ==00:05:16:32.642 9574==
      

        1. checks_agent.c
          5 kB
        2. log.c
          13 kB
        3. server.c
          54 kB

            Unassigned Unassigned
            maiduy Mai Ngoc Duy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: