Ad Widget

Collapse

Zabbix proxy crashing after start on armv7l (QNAP ts-128)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sanderd80
    Junior Member
    • Mar 2019
    • 5

    #1

    Zabbix proxy crashing after start on armv7l (QNAP ts-128)

    Hi,

    After some hassle I managed to compile zabbix_proxy 4.0 on my QNAP TS-128 (armv7l) using entware. Just after starting the proxy makes connection to the server, gets it's configuration data and then crashes. Attached the zabbix_proxy.log. Anyone any ideas on why this is happening?

    Thanks,

    Sander
    Attached Files
  • vso
    Zabbix developer
    • Aug 2016
    • 190

    #2
    Please increase log level and attach log again, it looks like poller is crashing, but it would be nice to know what it was doing.

    Comment

    • sanderd80
      Junior Member
      • Mar 2019
      • 5

      #3
      thanks for the response, please find the level 5 logs attached
      Attached Files

      Comment

      • vso
        Zabbix developer
        • Aug 2016
        • 190

        #4
        It is crashing when getting snmp values:
        Code:
         21161:20190317:175037.574 zbx_snmp_get_values() snmp_synch_response() status:0 s_snmp_errno:0 errstat:0 mapping_num:1
         21161:20190317:175037.574 Got signal [signal:11(SIGSEGV),reason:1,refaddr:0xf]. Crashing ...
        I can only suggest adding additional debug information as a patch to investigate issue further, which version of net-SNMP is used ?

        Comment

        • sanderd80
          Junior Member
          • Mar 2019
          • 5

          #5
          Just to confirm, I compiled the zabbix_proxy without net-snmp and it works.

          I do have to admin that I had to "steal" a version of net-snmp-config (as this is not provided/available with the Entware packages) from another (arm) system, looking at the configure script I see that the following cflags are returned. Maybe this has something to do with it?
          Code:
          [/share/homes/admin/zabbix-4.0.5] # net-snmp-config --cflags
          -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/opt/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -I. -I/opt/include
          reducing this to the minimal gives the same crash and same crash message:
          Code:
          [/opt/zabbix/var/log] # net-snmp-config --cflags
          -I/opt/include -I. -I/opt/include
          [/opt/zabbix/var/log] #
          The version of net-snmp used is:
          Code:
          [/share/homes/admin/zabbix-4.0.5] # opkg list-installed | grep snmp
          libnetsnmp - 5.8-1
          snmp-mibs - 5.8-1
          [/share/homes/admin/zabbix-4.0.5] #
          If you want me to compile with an additional patch for debugging, please let me know

          Thanks!
          Last edited by sanderd80; 18-03-2019, 21:49. Reason: new info

          Comment

          Working...