[ZBX-8257] A crash in history syncer possibly due to a log rotate item Created: 2014 May 26  Updated: 2017 May 30  Resolved: 2014 May 26

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

Type: Incident report Priority: Critical
Reporter: Ed Barwani Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: crash
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian GNU/Linux 7 (wheezy)


Attachments: File crash.log     File zabbix_server.objdump.gz    
Issue Links:
Duplicate
duplicates ZBX-8210 Zabbix server crashed on Oracle DB Closed

 Description   

I wanted to monitor some log file and created an item in a template like so:

<item>
<name>LogError</name>
<type>7</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>
logrt["/var/log/app/^info\.log\.?[0-9]{0,3}$", "\[error\]"]
</key>
<delay>30</delay>
<history>90</history>
<trends>365</trends>
<status>1</status>
<value_type>2</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>PCP Node</name>
</application>
</applications>
<valuemap/>
</item>

As soon as I enable this item I get the following in crash in zabbix server.

backtrace snippet:

  3963:20140526:113515.570 === Backtrace: ===
  3963:20140526:113515.571 12: /opt/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000002 sec, syncing history](print_fatal_info+0x9e) [0x45531e]
  3963:20140526:113515.571 11: /opt/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000002 sec, syncing history]() [0x455727]
  3963:20140526:113515.571 10: /lib/x86_64-linux-gnu/libc.so.6(+0x324f0) [0x7f93525e54f0]
  3963:20140526:113515.571 9: /lib/x86_64-linux-gnu/libc.so.6(+0x11d256) [0x7f93526d0256]
  3963:20140526:113515.572 8: /opt/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000002 sec, syncing history](evaluate_function+0x2826) [0x46a096]
  3963:20140526:113515.572 7: /opt/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000002 sec, syncing history]() [0x46ac50]
  3963:20140526:113515.572 6: /opt/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000002 sec, syncing history](evaluate_expressions+0x72b) [0x47220b]
  3963:20140526:113515.572 5: /opt/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000002 sec, syncing history](DCsync_history+0x27df) [0x43fadf]
  3963:20140526:113515.572 4: /opt/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000002 sec, syncing history](main_dbsyncer_loop+0x1fd) [0x417ced]
  3963:20140526:113515.572 3: /opt/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000002 sec, syncing history](MAIN_ZABBIX_ENTRY+0x7e8) [0x417168]
  3963:20140526:113515.572 2: /opt/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000002 sec, syncing history](daemon_start+0x18d) [0x454c3d]
  3963:20140526:113515.572 1: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f93525d1ead]
  3963:20140526:113515.572 0: /opt/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000002 sec, syncing history]() [0x412591]


 Comments   
Comment by Ed Barwani [ 2014 May 26 ]

I don't seem to be able to edit my description to fix the formatting.. oh well.

I suspect this crash is related to ZBX-7836 ZBX-7521 ZBX-7843, they are marked as resolved for 2.2.2 & 2.2.3, however, am still seeing this crash.

Comment by richlv [ 2014 May 26 ]

most likely a duplicate of ZBX-8210 - maybe you can test svn head of the 2.2 branch ?

Comment by Ed Barwani [ 2014 May 26 ]

I have built a new trunk and its running fine so far.

Zabbix server v2.2.4rc1 (revision {ZABBIX_REVISION}) (7 April 2014)

richlv Feel free to close this ticket as a duplicate. If I crash again I will comment here. Thanks!

Comment by Alexander Vladishev [ 2014 May 26 ]

It is a duplicate of ZBX-8210. I close the issue.

Generated at Sun Apr 06 16:54:19 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.