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

Segfault with HostnameItem=system.hostname

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 7.0.0alpha1
    • Proxy (P)
    • None
    • Debian 12, using the debian 11 package.

      Hello,

       

      I have installed and configured a Zabbix proxy on debian 12.

      It works fine when I configure hostname manually:

       

          Hostname=zbxproxy1.mydomain.tld
          #HostnameItem=system.hostname

      But crashes with segfault when I ask it to use system hostname:

       

       

          #Hostname=auto
          HostnameItem=system.hostname

       

       

      Last lines of strace are like this:

      getrandom("\x1e", 1, GRND_NONBLOCK)     = 1
      newfstatat(AT_FDCWD, "/etc/gnutls/config", 0x7fff9610c390, 0) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/etc/zabbix/zabbix_proxy.conf", O_RDONLY) = 3
      newfstatat(3, "", {st_mode=S_IFREG|0600, st_size=25952, ...}, AT_EMPTY_PATH) = 0
      read(3, "# This is a configuration file f"..., 4096) = 4096
      read(3, "me from\n#\tthe tnsnames.ora file "..., 4096) = 4096
      read(3, "equired if Java pollers are star"..., 4096) = 4096
      read(3, "\n# UnavailableDelay=60\n\n### Opti"..., 4096) = 4096
      read(3, "g path is absolute (starts with "..., 4096) = 4096
      read(3, "HA256:TLS_AES_128_GCM_SHA256\n#\n#"..., 4096) = 4096
      read(3, " 'Content' and 'UserName'.\n#\tExa"..., 4096) = 1376
      read(3, "", 4096)                       = 0
      close(3)                                = 0
      --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} ---
      +++ killed by SIGSEGV +++
      Segmentation fault

       

      i.e. it crashes right after reading the config file.

       

      Cheers

       

            zabbix.dev Zabbix Development Team
            user185953 user185953
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: