[ZBX-15180] Segfault on zabbix proxy Created: 2018 Nov 18  Updated: 2018 Nov 18  Resolved: 2018 Nov 18

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P)
Affects Version/s: 4.0.1
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Philipp Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 16.04


Issue Links:
Duplicate
duplicates ZBX-15171 Zabbix Server Crash Closed

 Description   

Since upgrading to proxy version 4.x I get a segfault after a short period of time since the process was started. This happened after every service start for now.

 

Way to reproduce here: Start Service, wait a few moment, service will crash

 

What i have tried so far:

  • Purge package zabbix-proxy-mysql and reinstall from package manager
  • Drop mysql database and create a new
  • Use a unmodified configuration file (except DB configuration part)
// code placeholder
  2887:20181118:203308.513 zbx_odbc_connect() connected to MySQL(5.7.17-log) using libmyodbc5w.so(05.03.0007)
  2887:20181118:203308.513 End of zbx_odbc_connect()
  2887:20181118:203308.513 In zbx_odbc_select() query:'SELECT distinct current_version as Version FROM xxxxx.xxxxxxxxx where bundle = 'xxxxx' and version_alias like 'release%''
  2887:20181118:203308.525 selected all 1 columns
  2887:20181118:203308.525 End of zbx_odbc_select()
  2887:20181118:203308.525 In zbx_odbc_query_result_to_lld_json()
  2887:20181118:203308.525 column #1 name:'Version'
  2887:20181118:203308.525 In zbx_odbc_fetch()
  2887:20181118:203308.525 column #1 value:'0.183.1'
  2887:20181118:203308.525 End of zbx_odbc_fetch()
  2887:20181118:203308.525 In zbx_odbc_fetch()
  2887:20181118:203308.525 column #1 value:'0.150.9-BETA'
  2887:20181118:203308.525 End of zbx_odbc_fetch()
  2887:20181118:203308.525 In zbx_odbc_fetch()
  2887:20181118:203308.525 column #1 value:'0.150.5-BETA'
  2887:20181118:203308.525 End of zbx_odbc_fetch()
  2887:20181118:203308.525 In zbx_odbc_fetch()
  2887:20181118:203308.525 column #1 value:'0.131-ALPHA'
  2887:20181118:203308.525 End of zbx_odbc_fetch()
  2887:20181118:203308.525 In zbx_odbc_fetch()
  2887:20181118:203308.525 column #1 value:'0.150.7-BETA'
  2887:20181118:203308.525 End of zbx_odbc_fetch()
  2887:20181118:203308.525 In zbx_odbc_fetch()
  2887:20181118:203308.525 column #1 value:'0.178'
  2887:20181118:203308.525 End of zbx_odbc_fetch()
  2887:20181118:203308.525 In zbx_odbc_fetch()
  2887:20181118:203308.525 column #1 value:'(null)'
  2887:20181118:203308.525 End of zbx_odbc_fetch()
  2887:20181118:203308.525 Got signal [signal:11(SIGSEGV),reason:1,refaddr:(nil)]. Crashing ...
  2887:20181118:203308.525 ====== Fatal information: ======
  2887:20181118:203308.525 Program counter: 0x7f5f6ddce746
  2887:20181118:203308.525 === Registers: ===
  2887:20181118:203308.525 r8      =                0 =                    0 =                    0
  2887:20181118:203308.526 r9      =                1 =                    1 =                    1
  2887:20181118:203308.526 r10     =                8 =                    8 =                    8
  2887:20181118:203308.526 r11     =     7f5f6ded9150 =      140047842906448 =      140047842906448
  2887:20181118:203308.526 r12     =                2 =                    2 =                    2
  2887:20181118:203308.526 r13     =     5598f7c93dd9 =       94115480550873 =       94115480550873
  2887:20181118:203308.526 r14     =                0 =                    0 =                    0
  2887:20181118:203308.526 r15     =                0 =                    0 =                    0
  2887:20181118:203308.526 rdi     =                0 =                    0 =                    0
  2887:20181118:203308.526 rsi     =              266 =                  614 =                  614
  2887:20181118:203308.526 rbp     =                0 =                    0 =                    0
  2887:20181118:203308.526 rbx     =                2 =                    2 =                    2
  2887:20181118:203308.526 rdx     =                0 =                    0 =                    0
  2887:20181118:203308.526 rax     =                0 =                    0 =                    0
  2887:20181118:203308.526 rcx     =                0 =                    0 =                    0
  2887:20181118:203308.526 rsp     =     7fff53cce468 =      140734599324776 =      140734599324776
  2887:20181118:203308.526 rip     =     7f5f6ddce746 =      140047841814342 =      140047841814342
  2887:20181118:203308.526 efl     =            10293 =                66195 =                66195
  2887:20181118:203308.526 csgsfs  =               33 =                   51 =                   51
  2887:20181118:203308.526 err     =                4 =                    4 =                    4
  2887:20181118:203308.526 trapno  =                e =                   14 =                   14
  2887:20181118:203308.526 oldmask =                0 =                    0 =                    0
  2887:20181118:203308.526 cr2     =                0 =                    0 =                    0
  2887:20181118:203308.526 === Backtrace: ===
  2887:20181118:203308.526 17: /usr/sbin/zabbix_proxy: poller #2 [got 71 values in 7.664852 sec, getting values](zbx_backtrace+0x44) [0x5598f7c0248d]
  2887:20181118:203308.526 16: /usr/sbin/zabbix_proxy: poller #2 [got 71 values in 7.664852 sec, getting values](zbx_log_fatal_info+0x153) [0x5598f7c02738]
  2887:20181118:203308.526 15: /usr/sbin/zabbix_proxy: poller #2 [got 71 values in 7.664852 sec, getting values](+0xe1a86) [0x5598f7c02a86]
  2887:20181118:203308.526 14: /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7f5f70ed8390]
  2887:20181118:203308.526 13: /lib/x86_64-linux-gnu/libc.so.6(strlen+0x26) [0x7f5f6ddce746]
  2887:20181118:203308.526 12: /lib/x86_64-linux-gnu/libc.so.6(__strdup+0xe) [0x7f5f6ddce47e]
  2887:20181118:203308.526 11: /usr/sbin/zabbix_proxy: poller #2 [got 71 values in 7.664852 sec, getting values](zbx_strdup2+0x4f) [0x5598f7c08d20]
  2887:20181118:203308.526 10: /usr/sbin/zabbix_proxy: poller #2 [got 71 values in 7.664852 sec, getting values](zbx_odbc_query_result_to_lld_json+0x3e1) [0x5598f7b8a39f]
  2887:20181118:203308.526 9: /usr/sbin/zabbix_proxy: poller #2 [got 71 values in 7.664852 sec, getting values](get_value_db+0x28e) [0x5598f7b78ce1]
  2887:20181118:203308.526 8: /usr/sbin/zabbix_proxy: poller #2 [got 71 values in 7.664852 sec, getting values](+0x4728b) [0x5598f7b6828b]
  2887:20181118:203308.526 7: /usr/sbin/zabbix_proxy: poller #2 [got 71 values in 7.664852 sec, getting values](+0x497d5) [0x5598f7b6a7d5]
  2887:20181118:203308.526 6: /usr/sbin/zabbix_proxy: poller #2 [got 71 values in 7.664852 sec, getting values](poller_thread+0x1a1) [0x5598f7b6b9fc]
  2887:20181118:203308.526 5: /usr/sbin/zabbix_proxy: poller #2 [got 71 values in 7.664852 sec, getting values](zbx_thread_start+0x32) [0x5598f7c065a7]
  2887:20181118:203308.526 4: /usr/sbin/zabbix_proxy: poller #2 [got 71 values in 7.664852 sec, getting values](MAIN_ZABBIX_ENTRY+0x8e3) [0x5598f7b56e46]
  2887:20181118:203308.526 3: /usr/sbin/zabbix_proxy: poller #2 [got 71 values in 7.664852 sec, getting values](daemon_start+0x315) [0x5598f7c01c1c]
  2887:20181118:203308.526 2: /usr/sbin/zabbix_proxy: poller #2 [got 71 values in 7.664852 sec, getting values](main+0x300) [0x5598f7b5654d]
  2887:20181118:203308.526 1: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f5f6dd63830]
  2887:20181118:203308.526 0: /usr/sbin/zabbix_proxy: poller #2 [got 71 values in 7.664852 sec, getting values](_start+0x29) [0x5598f7b55549]


 Comments   
Comment by Vladislavs Sokurenko [ 2018 Nov 18 ]

Thank you for your report, closing as a duplicate of ZBX-15171

Generated at Fri Apr 26 06:43:05 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.