New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dev.icinga.com #10700] Crash in ExternalCommandListener #3697
Comments
Updated by mfriedrich on 2015-11-23 08:38:03 +00:00
Please install gdb and generate a backtrace. |
Updated by kitharo on 2015-11-23 14:34:20 +00:00 GDB was already installed. It's starting normally.
How can I do a GDB correctly? |
Updated by mfriedrich on 2015-11-23 14:37:35 +00:00 gdb --args /usr/lib64/icinga2/sbin/icinga2 ... fixed the doc bug in #10710 |
Updated by kitharo on 2015-11-25 06:33:29 +00:00 If I run:
I get:
There is indeed not such directory. |
Updated by mfriedrich on 2015-11-25 07:52:11 +00:00 Then please adopt the path where your icinga2 binary is, depending on your distribution.
should provide you with details. In 2.4 the binary was moved to the lib directory, /usr/sbin/icinga2 is just a shell wrapper which cannot be invoked with gdb. |
Updated by kitharo on 2015-11-25 10:19:06 +00:00
I tried /usr/lib/icinga2/icinga2 but it said "not in executable format: File format not recognized". I'm using Ubuntu 15.04. |
Updated by mfriedrich on 2015-11-25 14:12:57 +00:00 Then use your preferred method of finding a file on Ubuntu. I'd guess it is somewhere in the multi arch lib directory. |
Updated by gbeutner on 2015-11-26 07:14:03 +00:00 FYI, it's /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2 on 64-bit systems. |
Updated by kitharo on 2015-11-26 12:06:10 +00:00 Thanks for the hinds! What I did on command line:
I noticed after 2. that gdb said: [LWP 8188 exited] What I'm doing wrong? |
Updated by gbeutner on 2015-12-07 07:23:09 +00:00 You're missing the 'daemon' argument for icinga2. For example:
|
Updated by kitharo on 2015-12-07 13:40:33 +00:00 Thanks, it's running and I'm waiting for the crash. I will post the output. |
Updated by kitharo on 2015-12-07 14:05:15 +00:00 First try (crashed after ~15min):
(gdb) bt
at ../sysdeps/unix/sysv/linux/raise.c:55
at /build/icinga2-F1OJeq/icinga2-2.4.1/lib/base/application.cpp:774
from /usr/lib/x86_64-linux-gnu/libstdc**.so.6
from /usr/lib/x86_64-linux-gnu/libstdc**.so.6
pvtinfo=pvtinfo@entry=0x7ffff7518520 <typeinfo for boost::exception_detail::clone_implicinga::socket_error>,
at /usr/include/boost/throw_exception.hpp:70
current_function=current_function@entry=0x7ffff72c2a20 <icinga::Socket::Read(void*, unsigned long)::PRETTY_FUNCTION> "size_t icinga::Socket::Read(void*, size_t)", second one (crash after ~1min):
(gdb) bt
at ../sysdeps/unix/sysv/linux/raise.c:55
at /build/icinga2-F1OJeq/icinga2-2.4.1/lib/base/application.cpp:774
from /usr/lib/x86_64-linux-gnu/libstdc**.so.6
from /usr/lib/x86_64-linux-gnu/libstdc**.so.6
pvtinfo=pvtinfo@entry=0x7ffff7518520 <typeinfo for boost::exception_detail::clone_implicinga::socket_error>,
at /usr/include/boost/throw_exception.hpp:70
current_function=current_function@entry=0x7ffff72c2a20 <icinga::Socket::Read(void*, unsigned long)::PRETTY_FUNCTION> "size_t icinga::Socket::Read(void*, size_t)",
buffer=buffer@entry=0x7fffdbac7e80, count=count@entry=8192)
this=, commandPath=...)
from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.55.0
at pthread_create.c:333
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 |
Updated by mfriedrich on 2015-12-07 14:18:53 +00:00
|
Updated by chrisportman on 2015-12-08 22:17:45 +00:00 Hi all, I'm also having what looks like the same issue. I use the external commands file for passive results... Here are some details: ## Version
# GBB Crash error:
) at /usr/include/boost153/boost/throw_exception.hpp:84
) at ../base/socket.cpp:314
) at ../compat/externalcommandlistener.cpp:113
|
Updated by mfriedrich on 2015-12-15 09:41:48 +00:00
|
Updated by mfriedrich on 2015-12-15 09:42:12 +00:00
|
Updated by mfriedrich on 2015-12-15 09:42:30 +00:00
|
Updated by mfriedrich on 2015-12-15 09:43:24 +00:00
|
Updated by mfriedrich on 2015-12-16 18:07:28 +00:00
Notes:
|
Updated by Tux12Fun on 2016-01-14 13:54:16 +00:00 Hi, I've also seen something similar today (Core Version: r2.4.1-1 from icinga repo for ubuntu).
I've collected the following files:
If you like to get the files to analyze them, send me a message. I'can upload the files to my public SFTP Server (Size 22MB). I don't like to post the crashdump here because of sensitive |
Updated by mfriedrich on 2016-01-20 15:40:43 +00:00
Can you please re-test this with the current snapshot packages? (commit 4ce43b8) |
Updated by kitharo on 2016-01-22 07:53:22 +00:00 Could you please write a short instruction to install a snapshot? |
Updated by mfriedrich on 2016-01-22 14:49:41 +00:00 Change the repository from release to snapshot and update/reinstall the packages. Though I'd highly recommend you to use a test vm which does not harm your production environment. |
Updated by kitharo on 2016-01-25 06:51:57 +00:00 Seems to be running. I got no crash over the weekend. |
Updated by mfriedrich on 2016-01-25 08:58:18 +00:00
Ok, thanks for the fast feedback :) Kind regards, |
Updated by kitharo on 2016-01-25 09:59:28 +00:00 Is there a schedule for the public release? |
Updated by mfriedrich on 2016-01-25 10:25:37 +00:00 Hi there, we are currently investigating on important fixes (check the roadmap for 2.4.2 and 2.5.0) in the next 2 weeks. Once these are completed we are planning to have a new release in February. Kind regards, |
Updated by gbeutner on 2016-02-23 09:58:19 +00:00
|
This issue has been migrated from Redmine: https://dev.icinga.com/issues/10700
Created by kitharo on 2015-11-23 06:37:08 +00:00
Assignee: mfriedrich
Status: Resolved (closed on 2016-01-25 08:58:18 +00:00)
Target Version: 2.4.2
Last Update: 2016-02-23 09:58:19 +00:00 (in Redmine)
Icinga2 always crashing after update to r2.4.0-1. The crashlog always say:
So I installed GDB, restarted and it crashed again with the same message. I lunched GDB and it worked.
I'm using ubuntu x64 (15.04) with icingaweb2 (latest release).
Sometime it always crash every 15 minutes and sometimes it crashing after 2h.
Changesets
2016-01-20 15:38:31 +00:00 by mfriedrich 4ce43b8
2016-02-23 08:23:39 +00:00 by mfriedrich 0516cb5
Relations:
The text was updated successfully, but these errors were encountered: