[ZBX-7790] zabbix_server_m[13777]: segfault at 18 ip 00007fe6639a8fe0 sp 00007fffbb66e498 error 4 in libpthread-2.18 - crash in "main" process Created: 2014 Feb 12 Updated: 2017 May 30 Resolved: 2015 Jun 11 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 2.0.10 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Major |
Reporter: | Christian Servin | Assignee: | Unassigned |
Resolution: | Won't fix | Votes: | 12 |
Labels: | crash, segfault | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Linux fedora-virtualdomain 3.12.9-301.fc20.x86_64 #1 SMP Wed Jan 29 15:56:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux |
Attachments: | ccpp-2014-02-10-18_52_03-10724.7z ccpp-2014-02-10-18_52_03-10724.tar.bz2 config.7z config.tar.bz2 zabbix_server.log.7z zabbix_server.log.bz2 | ||||||||||||||||
Issue Links: |
|
Description |
[root@fedora-virtualdomain zabbix-server]# systemctl start zabbix-server [root@fedora-virtualdomain zabbix-server]# journalctl -xn 30 |
Comments |
Comment by Christian Servin [ 2014 Feb 12 ] |
systemd kills the server after the SIGSEGV. zabbix-server.log doesnt show the problem. When I make zabbixsvr user logeable then login with it: bash-4.2$ zabbix_server_mysql bash-4.2$ ps -aux | grep zabbix The servers stays running and 'working' |
Comment by richlv [ 2014 Feb 12 ] |
recompressed logfile with bz2 (and it's smaller as well...) |
Comment by richlv [ 2014 Feb 12 ] |
possibly useful contents from the logfile : 13223:20140211:155619.238 Starting Zabbix Server. Zabbix 2.0.10 (revision 40809). 13223:20140211:155619.434 End of DCsync_configuration() 13223:20140211:155619.435 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reason:0]. Exiting ... 13223:20140211:155621.445 Zabbix Server stopped. Zabbix 2.0.10 (revision 40809). 13223:20140211:155621.445 Got signal [signal:11(SIGSEGV),reason:1,refaddr:0x18]. Crashing ... 13223:20140211:155621.446 ====== Fatal information: ====== 13223:20140211:155621.446 Program counter: 0x7fcb34902fe0 13223:20140211:155621.446 === Registers: === 13223:20140211:155621.446 r8 = 0 = 0 = 0 13223:20140211:155621.446 r9 = 7fcb34ed1ea8 = 140510743043752 = 140510743043752 13223:20140211:155621.446 r10 = 7fffdcaa0350 = 140736895517520 = 140736895517520 13223:20140211:155621.446 r11 = 7fcb34c18640 = 140510740186688 = 140510740186688 13223:20140211:155621.446 r12 = 7fcb30fe4bc0 = 140510677060544 = 140510677060544 13223:20140211:155621.446 r13 = 20 = 32 = 32 13223:20140211:155621.446 r14 = 1 = 1 = 1 13223:20140211:155621.446 r15 = 7fffdcaa05b0 = 140736895518128 = 140736895518128 13223:20140211:155621.446 rdi = 8 = 8 = 8 13223:20140211:155621.446 rsi = 1 = 1 = 1 13223:20140211:155621.446 rbp = 7fffdcaa07f0 = 140736895518704 = 140736895518704 13223:20140211:155621.446 rbx = 7fcb376c39a0 = 140510784928160 = 140510784928160 13223:20140211:155621.446 rdx = 1 = 1 = 1 13223:20140211:155621.446 rax = 7fcb34902fe0 = 140510736953312 = 140510736953312 13223:20140211:155621.447 rcx = 0 = 0 = 0 13223:20140211:155621.447 rsp = 7fffdcaa0588 = 140736895518088 = 140736895518088 13223:20140211:155621.447 rip = 7fcb34902fe0 = 140510736953312 = 140510736953312 13223:20140211:155621.447 efl = 10202 = 66050 = 66050 13223:20140211:155621.447 csgsfs = 33 = 51 = 51 13223:20140211:155621.447 err = 4 = 4 = 4 13223:20140211:155621.447 trapno = e = 14 = 14 13223:20140211:155621.447 oldmask = 14000 = 81920 = 81920 13223:20140211:155621.447 cr2 = 18 = 24 = 24 13223:20140211:155621.447 === Backtrace: === 13223:20140211:155621.449 15: /usr/sbin/zabbix_server_mysql(print_fatal_info+0x287) [0x44fec7] 13223:20140211:155621.449 14: /usr/sbin/zabbix_server_mysql() [0x44ef26] 13223:20140211:155621.449 13: /lib64/libc.so.6(+0x35cb0) [0x7fcb34b4bcb0] 13223:20140211:155621.449 12: /lib64/libpthread.so.0(pthread_mutex_lock+0) [0x7fcb34902fe0] 13223:20140211:155621.449 11: /lib64/libtspi.so.1(host_table_final+0x14) [0x7fcb30d9abc4] 13223:20140211:155621.449 10: /lib64/ld-linux-x86-64.so.2(+0xf8ea) [0x7fcb374d68ea] 13223:20140211:155621.449 9: /lib64/libc.so.6(+0x394c9) [0x7fcb34b4f4c9] 13223:20140211:155621.449 8: /lib64/libc.so.6(+0x39515) [0x7fcb34b4f515] 13223:20140211:155621.449 7: /usr/sbin/zabbix_server_mysql(zbx_on_exit+0x15f) [0x41470f] 13223:20140211:155621.449 6: /lib64/libc.so.6(+0x35cb0) [0x7fcb34b4bcb0] 13223:20140211:155621.449 5: /lib64/libc.so.6(socket+0x7) [0x7fcb34c0bf67] 13223:20140211:155621.449 4: /usr/sbin/zabbix_server_mysql(zbx_tcp_listen+0x196) [0x45e0d6] 13223:20140211:155621.449 3: /usr/sbin/zabbix_server_mysql(MAIN_ZABBIX_ENTRY+0x2b3) [0x4149d3] 13223:20140211:155621.449 2: /usr/sbin/zabbix_server_mysql(daemon_start+0x23d) [0x44f48d] 13223:20140211:155621.449 1: /lib64/libc.so.6(__libc_start_main+0xf5) [0x7fcb34b37d65] 13223:20140211:155621.449 0: /usr/sbin/zabbix_server_mysql() [0x41066d] |
Comment by emoziko [ 2014 Feb 12 ] |
I have exactly same issue. |
Comment by richlv [ 2014 Feb 12 ] |
those who see this, how did you install zabbix ? |
Comment by emoziko [ 2014 Feb 12 ] |
I installed it with yum. But after failure, i removed zabbix and compiled it from sources. Results are same.. |
Comment by richlv [ 2014 Feb 12 ] |
which package repository did you use ? |
Comment by emoziko [ 2014 Feb 12 ] |
For RPMs i used Fedora default repos, just typed yum install zabbix zabbix-server etc. In compiled version, i started it with command: /usr/local/sbin/zabbix_server -c /usr/local/etc/zabbix_server.conf |
Comment by Christian Servin [ 2014 Feb 12 ] |
The way I installed it was very similar to this: but i did not configured any special repositories it did not worked out of the box, I made the following changes mkdir /var/run/zabbix-server usermod -a -G zabbix zabbix chown zabbixsvr:zabbix /var/run/zabbix-server had troubles with SELinux setsebool httpd_can_network_connect on and another to the database connection... until audit.log was not showing trouble attaching my configuration files |
Comment by Christian Servin [ 2014 Feb 12 ] |
About the repositories im using basic fedora 20 [root@fedora-virtualdomain cservin]# yum repolist [root@fedora-virtualdomain cservin]# yum info zabbix-server |
Comment by richlv [ 2014 Feb 12 ] |
btw, if possible, use xz/bzip2/gzip to compress the files (preferably, in that order ) |
Comment by Christian Servin [ 2014 Feb 13 ] |
It's all about flavor |
Comment by Pavel [ 2014 Feb 16 ] |
I have the same issue after update to Fedora 20. (gdb) run Program received signal SIGSEGV, Segmentation fault. |
Comment by Pavel [ 2014 Feb 16 ] |
Bugreport in Fedora bugtracker: https://bugzilla.redhat.com/show_bug.cgi?id=1064300 |
Comment by Volker Fröhlich [ 2014 Feb 25 ] |
https://bugzilla.redhat.com/show_bug.cgi?id=1064300#c18 It seems to be an incompatibility with gnutls 3.1.20. It's not a silent ABI break though, as rebuilding doesn't help. |
Comment by richlv [ 2014 Feb 27 ] |
also see https://bugzilla.redhat.com/show_bug.cgi?id=1063089#c12 |
Comment by Greg Cockburn [ 2015 Mar 16 ] |
Hi, this is affecting me also. I have tried the packages from EPEL and packages from repo.zabbix.com. Trousers is up to date (as per one of the bugzilla links). This host is brand new, fully patched Oracle Linux 7 host, and I am trying to install/run Zabbix 2.2. Is there any further movement on this bug? Can I provide anything further than what has already been provided? Thanks |
Comment by Christian Servin [ 2015 Mar 20 ] |
uninstall gnutls or downgrade, its legacy any ways, you will live without it. |
Comment by Greg Cockburn [ 2015 Mar 23 ] |
There are too many dependencies. Patching trousers seems to be the key. |
Comment by Jasper [ 2015 Apr 03 ] |
After updating CentOS 7 to the second release 1503 we have the same issue: Apr 03 13:47:12 zabbix.tgho.nl systemd[1]: Starting Zabbix Server... |
Comment by Anton Samets [ 2015 Apr 04 ] |
The same is here: upgraded to Centos 7.1. Fix: downgrade package gnutls from 3.3.8-12.el7 to 3.1.18-10.el7_0. |
Comment by Denis Pavlov [ 2015 Apr 09 ] |
Hi, same problem, CentOS Linux release 7.1.1503 (Core). cat /var/log/messages | grep zabbix: |
Comment by chris heming [ 2015 Apr 12 ] |
RHEL 7. Same as everyone else. anton.samets's fix worked for me: |
Comment by Volker Fröhlich [ 2015 Apr 14 ] |
As far as I can tell, it seems like there was a silent ABI breakage in gnutls, that is causing zabbix_server to crash through iksemel. gnutls had 3 breakages between 3.1.18 and 3.3.8: http://upstream.rosalinux.ru/versions/gnutls.html I would therefore think that a rebuild of iksemel should be enough. Please try these packages together with the latest version of gnutls supplied by EL: http://koji.fedoraproject.org/koji/taskinfo?taskID=9472122 |
Comment by Tomas Brandysky [ 2015 Apr 14 ] |
Hello, I have the very same problem on CentOS Linux release 7.1.1503 (Core) [root@server]# zabbix_server Also tried to compile zabbix-server from SRPM but it didn't help I don't think it was caused by gnutls package as this package wasn't updated since I've installed the server. |
Comment by Julien Savard [ 2015 Apr 14 ] |
Same problem here with RHEL 7.1 and Zabbix 2.4... [root@SomeServer ~]# cat /var/log/zabbix/zabbix_server.log According to some people it is related to the upgrade of gnutls from 3.1.8 to 3.3.8-12 ... |
Comment by Grzegorz Grabowski [ 2015 Apr 19 ] |
The same as others.
gnutls.x86_64 0:3.3.8-12.el7 - was removed I additionally tested it on a fresh Centos 7 + zabbix 2.4 (worked well) and after "yum update" zabbix_server crushed. Best |
Comment by Volker Fröhlich [ 2015 Apr 19 ] |
I investigated the issue quite a bit lately and it is definitely and only connected to the use of iksemel. If you build without-jabber, everything is fine. That also explains why the MySQL proxy has no issues, as it has no business with alerting. What is still a mystery to me, is, why the PostgreSQL server does fine. Also, rebuilding iksemel and even rebuilding Zabbix on top of that shows no effect whatsoever. It must be some really weird conflict with iksemel, gnutls and MySQL. |
Comment by Steve Huston [ 2015 Apr 22 ] |
Confirming here; had tested a zabbix install on RHEL6, and was just updating my setup to 7 (not deployed yet) and found this exact issue. With zabbix-server-2.4.4-1.el7.x86_64, gnutls-3.3.8-12.el7.x86_64 and trousers-0.3.11.2-3.el7.x86_64 (which in the linked |
Comment by Volker Fröhlich [ 2015 Apr 23 ] |
Latest insights:
|
Comment by Volker Fröhlich [ 2015 Apr 23 ] |
Comment by Volker Fröhlich [ 2015 Jun 09 ] |
This issue should be gone in any supported version of Fedora. I am not sure whether the corrected EPEL 7 package of trousers is available to users yet, but anyway, there is nothing Zabbix SIA can do any further about this issue. I would thus suggest to close this issue. |
Comment by richlv [ 2015 Jun 11 ] |
as per the previous comment, closing |