[ZBX-16088] FreeBSD 12 crash Zabbix 4.2.1 Created: 2019 May 07  Updated: 2019 Jun 21  Resolved: 2019 Jun 21

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 4.2.1
Fix Version/s: None

Type: Problem report Priority: Major
Reporter: lexanic Assignee: Edgar Akhmetshin
Resolution: Cannot Reproduce Votes: 0
Labels: crash
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

FreeBSD 12.0-RELEASE-p3 GENERIC  amd64 (VM on Xenserver)
Zabbix 4.2.1 (revision 92832)


Issue Links:
Duplicate
duplicates ZBX-15603 Zabbix server crashes in FreeBSD 12.0 Closed

 Description   
13573:20190507:135116.075 Got signal [signal:11(SIGSEGV),reason:2,refaddr:0x801d8a510]. Crashing ...
 13573:20190507:135116.075 ====== Fatal information: ======
 13573:20190507:135116.075 program counter not available for this architecture
 13573:20190507:135116.075 === Registers: ===
 13573:20190507:135116.075 register dump not available for this architecture
 13573:20190507:135116.075 === Backtrace: ===
 13573:20190507:135116.076 3: 0x44e94b <zbx_backtrace+0x4b> at /usr/local/sbin/zabbix_server
 13573:20190507:135116.076 2: 0x44eae3 <zbx_log_fatal_info+0x93> at /usr/local/sbin/zabbix_server
 13573:20190507:135116.076 1: 0x44ef2b <zbx_set_common_signal_handlers+0x32b> at /usr/local/sbin/zabbix_server
 13573:20190507:135116.076 0: 0x800e9d4c4 <_pthread_sigmask+0x544> at /lib/libthr.so.3
 13573:20190507:135116.076 === Memory map: ===
 13573:20190507:135116.076 memory map not available for this platform
 13573:20190507:135116.076 ================================
 13556:20190507:135116.079 One child process died (PID:13573,exitcode/signal:1). Exiting ...
 13583:20190507:135116.104 cannot read alert manager service request


 Comments   
Comment by Edgar Akhmetshin [ 2019 May 07 ]

Hello Lexanic,

Thank you for reporting the issue. I found a similar case registered under ZBX-15603. The issue itself is not related to the Zabbix official sources. You need to build from the officially provided sources, not from freebsd ports collection. Unfortunately, at the moment we do not support and do not supply the port system for this distribution.

Regards,
Edgar

Comment by lexanic [ 2019 May 07 ]

Здравствуйте

Какая нужна информация?

Comment by lexanic [ 2019 May 07 ]

error after install from source

;((

 

 

24755:20190507:151216.490 program counter not available for this architecture
24755:20190507:151216.490 === Registers: ===
24755:20190507:151216.490 register dump not available for this architecture
24755:20190507:151216.490 === Backtrace: ===
24755:20190507:151216.493 3: 0x456750 <zbx_backtrace+0x40> at /usr/local/sbin/zabbix_server
24755:20190507:151216.493 2: 0x4568c8 <zbx_log_fatal_info+0x88> at /usr/local/sbin/zabbix_server
24755:20190507:151216.493 1: 0x456ccb <fatal_signal_handler+0x1b> at /usr/local/sbin/zabbix_server
24755:20190507:151216.494 0: 0x8005664c4 <_pthread_sigmask+0x544> at /lib/libthr.so.3
24755:20190507:151216.494 === Memory map: ===
24755:20190507:151216.494 memory map not available for this platform
24755:20190507:151216.494 ================================
24737:20190507:151216.495 One child process died (PID:24755,exitcode/signal:1). Exiting ...

Comment by Edgar Akhmetshin [ 2019 May 07 ]

Hello,

Please, show configure options and output log with make.conf.

Regards,
Edgar

Comment by lexanic [ 2019 May 07 ]

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Zabbix configure 4.2.1, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure --enable-server --with-mysql --with-net-snmp --with-libcurl --with-libxml2

    1. --------- ##
    2. Platform. ##
    3. --------- ##

hostname = mailbk.adamant-stroy.ru
uname -m = amd64
uname -r = 12.0-RELEASE-p3
uname -s = FreeBSD
uname -v = FreeBSD 12.0-RELEASE-p3 GENERIC

/usr/bin/uname -p = amd64
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /root/bin

    1. ----------- ##
    2. Core tests. ##
    3. ----------- ##

configure:2743: checking for a BSD-compatible install
configure:2811: result: /usr/bin/install -c
configure:2822: checking whether build environment is sane
configure:2877: result: yes
configure:3028: checking for a thread-safe mkdir -p
configure:3067: result: ./install-sh -c -d
configure:3074: checking for gawk
configure:3104: result: no
configure:3074: checking for mawk
configure:3104: result: no
configure:3074: checking for nawk
configure:3090: found /usr/bin/nawk
configure:3101: result: nawk
configure:3112: checking whether make sets $(MAKE)
configure:3134: result: yes
configure:3163: checking whether make supports nested variables
configure:3180: result: yes
configure:3307: Configuring Zabbix 4.2.1

Comment by Edgar Akhmetshin [ 2019 May 07 ]

Hello,

Sorry, but i cannot reproduce:

root@freebsd:~/zabbix-4.2.1 # uname -a
FreeBSD freebsd 12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC  amd64
tar xvjpf zabbix-4.2.1.tar.gz
cd zabbix-4.2.1
pkg install mysql57-server libxml2 curl net-snmp pcre
./configure --enable-server --with-mysql --with-net-snmp --with-libcurl --with-libxml2
Configuration:

  Detected OS:           freebsd12.0
  Install path:          /usr/local
  Compilation arch:      freebsd

  Compiler:              cc
  Compiler flags:        -I/usr/local/include -g -O2 -I/usr/local/include

  Library-specific flags:
    database:               -I/usr/local/include/mysql    
    libXML2:               -I/usr/local/include/libxml2 -I/usr/include
    Net-SNMP:               -I/usr/local/include -I/include -I/usr/local/include -I/usr/local/lib/perl5/5.28/mach/CORE -I/usr/include -I. -I/usr/local/include
    libevent:              -I/usr/local/include

  Enable server:         yes
  Server details:
    With database:         MySQL
    WEB Monitoring:        cURL
      SSL certificates:      /usr/local/share/zabbix/ssl/certs
      SSL keys:              /usr/local/share/zabbix/ssl/keys
    Native Jabber:         no
    SNMP:                  yes
    IPMI:                  no
    SSH:                   no
    TLS:                   no
    ODBC:                  no
    Linker flags:             -L/usr/local/lib/mysql      -L/usr/local/lib -L/usr/lib -L/usr/lib   -L/usr/local/lib     -L/usr/local/lib    -L/usr/local/lib -rdynamic  -L/usr/local/lib 
    Libraries:               -lmysqlclient  -lz -lm -lrt -lexecinfo -lssl -lcrypto     -lxml2    -lnetsnmp   -lz -lpthread -levent    -lcurl -lkvm -lm -lexecinfo -ldevstat   -lpcre 
    Configuration file:    /usr/local/etc/zabbix_server.conf
    External scripts:      /usr/local/share/zabbix/externalscripts
    Alert scripts:         /usr/local/share/zabbix/alertscripts
    Modules:               /usr/local/lib/modules

  Enable proxy:          no

  Enable agent:          no

  Enable Java gateway:   no

  LDAP support:          no
  IPv6 support:          no

***********************************************************
*            Now run 'make install'                       *
*                                                         *
*            Thank you for using Zabbix!                  *
*              <http://www.zabbix.com>                    *
***********************************************************

No startup errors or crashing:

 17348:20190507:181523.205 Starting Zabbix Server. Zabbix 4.2.1 (revision 92832).
 17348:20190507:181523.205 ****** Enabled features ******
 17348:20190507:181523.205 SNMP monitoring:           YES
 17348:20190507:181523.205 IPMI monitoring:            NO
 17348:20190507:181523.205 Web monitoring:            YES
 17348:20190507:181523.205 VMware monitoring:         YES
 17348:20190507:181523.205 SMTP authentication:       YES
 17348:20190507:181523.205 Jabber notifications:       NO
 17348:20190507:181523.205 Ez Texting notifications:  YES
 17348:20190507:181523.205 ODBC:                       NO
 17348:20190507:181523.205 SSH2 support:               NO
 17348:20190507:181523.205 IPv6 support:               NO
 17348:20190507:181523.205 TLS support:                NO
 17348:20190507:181523.205 ******************************
 17348:20190507:181523.205 using configuration file: /usr/local/etc/zabbix_server.conf

Could you describe all the steps required to reproduce the crash?

Regards,
Edgar

Comment by lexanic [ 2019 May 07 ]

if Active checks enable when crash, if Active checks desable - work

Comment by lexanic [ 2019 May 07 ]

if Active checks enable when crash, if Active checks desable - work if zabbix 4.0.7

Comment by Edgar Akhmetshin [ 2019 May 07 ]

Show the settings of the active item that causes the crash, including the version of the agent.

Regards,
Edgar

Comment by lexanic [ 2019 May 07 ]

Crash zabbix 4.0.7 when agent start and when agent don’t start ;(( I am thinking

Comment by Edgar Akhmetshin [ 2019 May 27 ]

Hello lexanic,

Please, set DebugLevel=1 in the configuration file, start Server process and raise debug level for the Zabbix trapper processes:

# run 4 times
zabbix_server  -R log_level_increase="trapper"

Also collect and attach to the issue strace log:

ps auxw | grep "trapper" | awk '{print " -p " $2}'|xargs strace -s 256 -T -tt -f -o /tmp/ZBX-16088.strace.out

Regards,
Edgar

Generated at Wed Apr 24 02:57:10 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.