Skip to content
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 #8288] Crash in DbConnection::ProgramStatusHandler #2550

Closed
icinga-migration opened this issue Jan 26, 2015 · 14 comments
Closed
Labels
area/db-ido Database output bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/8288

Created by merlijntjuh on 2015-01-26 20:51:56 +00:00

Assignee: gbeutner
Status: Resolved (closed on 2015-01-29 12:20:45 +00:00)
Target Version: 2.2.4
Last Update: 2015-01-29 13:20:59 +00:00 (in Redmine)

Icinga Version: r2.2.2-1
Backport?: Already backported

Hi, I'm trying to migrate from Opsview to Icinga2 using the LConf tool to convert from Icinga2 config. This works well, however when I try to start Icinga2 it is segfaulting during the configuration check. It doesn't appear to be something with the configuration itself, as increasing the memory size of the machine causes Icinga2 to segfault at a different config file.

Debug parts:

gdb --args /usr/sbin/icinga2 daemon --validate
gdb run
......
......
information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/lconf/timeperiods/nonworkhours.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/lconf/timeperiods/workhours.conf
information/ConfigItem: Committing config items
[New Thread 0x7ffff0d80700 (LWP 3538)]
[New Thread 0x7ffff0d3f700 (LWP 3539)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff0e84700 (LWP 3534)]
0x00007ffff25d7e5e in icinga::Value::Value(icinga::Value const&) () from /usr/lib/icinga2/libicinga.so

(gdb) bt

#0  0x00007ffff25d7e5e in icinga::Value::Value(icinga::Value const&) () from /usr/lib/icinga2/libicinga.so
#1  0x00007ffff266925a in icinga::IcingaApplication::GetEnableNotifications() const ()

from /usr/lib/icinga2/libicinga.so

#2  0x00007ffff132250a in icinga::DbConnection::ProgramStatusHandler() () from /usr/lib/icinga2/libdb_ido.so
#3  0x00007ffff74d2c6b in boost::signals2::detail::signal1_impl const&, boost::signals2::optional_last_value, int, std::less, boost::function const&)>, boost::function const&)>, boost::signals2::mutex>::operator()(boost::intrusive_ptr const&) ()

from /usr/lib/icinga2/libbase.so

#4  0x00007ffff74cf4d6 in icinga::Timer::Call() () from /usr/lib/icinga2/libbase.so
#5  0x00007ffff74c9a93 in icinga::ThreadPool::WorkerThread::ThreadProc(icinga::ThreadPool::Queue&) ()

from /usr/lib/icinga2/libbase.so

#6  0x00007ffff7bcdce9 in thread_proxy () from /usr/lib/libboost_thread.so.1.46.1
#7  0x00007ffff79abe9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007ffff66432ed in clone () from /lib/x86_64-linux-gnu/libc.so.6
#9  0x0000000000000000 in ?? ()
(gdb) fr 1
#1 0x00007ffff266925a in icinga::IcingaApplication::GetEnableNotifications() const () from /usr/lib/icinga2/libicinga.so

(gdb) p this
No symbol table is loaded. Use the "file" command.

Changesets

2015-01-27 08:53:07 +00:00 by (unknown) e7938c9

Fix crash in DbConnection::ProgramStatusHandler

fixes #8288

2015-01-29 13:20:43 +00:00 by (unknown) a5817dc

Fix crash in DbConnection::ProgramStatusHandler

fixes #8288

2015-02-04 10:23:48 +00:00 by (unknown) 6e5c58a

Fix crash in DbConnection::ProgramStatusHandler

fixes #8288

Relations:

@icinga-migration
Copy link
Author

Updated by merlijntjuh on 2015-01-26 20:51:58 +00:00

  • Copied From set to 8138

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-01-27 08:53:51 +00:00

  • Subject changed from Segfault at 88 ip 00007fc5352c4e5e sp 00007fc53ab608f0 error 4 in libicinga.so[7fc5351a0000+2ae000] to Crash in DbConnection::ProgramStatusHandler
  • Category set to DB IDO
  • Status changed from New to Assigned
  • Assigned to set to gbeutner
  • Target Version set to 2.3.0

@icinga-migration
Copy link
Author

Updated by Anonymous on 2015-01-27 08:54:09 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset e7938c9.

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-01-27 09:13:37 +00:00

Can you please test whether this is fixed in the snapshot packages?

@icinga-migration
Copy link
Author

Updated by merlijntjuh on 2015-01-27 10:32:39 +00:00

information/ConfigCompiler: Compiling config file: /usr/share/icinga2/include/timeperiod.conf
[New Thread 0x7ffff7e54700 (LWP 7843)]
[New Thread 0x7ffff1237700 (LWP 7844)]
[New Thread 0x7ffff11f6700 (LWP 7845)]
[New Thread 0x7ffff11b5700 (LWP 7846)]
[New Thread 0x7ffff1174700 (LWP 7847)]
[New Thread 0x7fffabfff700 (LWP 7848)]
[New Thread 0x7ffff1133700 (LWP 7849)]
[New Thread 0x7ffff10f2700 (LWP 7850)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff11f6700 (LWP 7845)]
0x00007ffff258f20e in icinga::Value::Value(icinga::Value const&) () from /usr/lib/icinga2/libicinga.so

(gdb) bt

#0  0x00007ffff258f20e in icinga::Value::Value(icinga::Value const&) () from /usr/lib/icinga2/libicinga.so
#1  0x00007ffff261cde7 in icinga::IcingaApplication::GetEnableNotifications() const () from /usr/lib/icinga2/libicinga.so
#2  0x00007ffff150b98a in icinga::DbConnection::ProgramStatusHandler() () from /usr/lib/icinga2/libdb_ido.so
#3  0x00007ffff74c733b in boost::signals2::detail::signal1_impl const&, boost::signals2::optional_last_value, int, std::less, boost::function const&)>, boost::function const&)>, boost::signals2::mutex>::operator()(boost::intrusive_ptr const&) () from /usr/lib/icinga2/libbase.so
#4  0x00007ffff74c3bc6 in icinga::Timer::Call() () from /usr/lib/icinga2/libbase.so
#5  0x00007ffff74bb053 in icinga::ThreadPool::WorkerThread::ThreadProc(icinga::ThreadPool::Queue&) ()

from /usr/lib/icinga2/libbase.so

#6  0x00007ffff7bcdce9 in thread_proxy () from /usr/lib/libboost_thread.so.1.46.1
#7  0x00007ffff79abe9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007ffff65e82ed in clone () from /lib/x86_64-linux-gnu/libc.so.6
#9  0x0000000000000000 in ?? ()

(gdb) fr 1

#1  0x00007ffff261cde7 in icinga::IcingaApplication::GetEnableNotifications() const () from /usr/lib/icinga2/libicinga.so

(gdb) p this
No symbol table is loaded. Use the "file" command.

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-01-27 10:34:12 +00:00

What's the exact version number for your latest test?

icinga2 --version

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-01-27 10:34:20 +00:00

  • Status changed from Resolved to Assigned

@icinga-migration
Copy link
Author

Updated by merlijntjuh on 2015-01-27 10:35:40 +00:00

version: v2.2.0-336-g8c4c7f0

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-01-27 12:43:39 +00:00

Alright, thanks. Can you run "yum makecache" and update the packages again? (That's assuming you're using RHEL).

@icinga-migration
Copy link
Author

Updated by merlijntjuh on 2015-01-27 12:49:26 +00:00

There is no update? Using following repo, is that correct?

deb http://packages.icinga.org/ubuntu icinga-precise-snapshots main
deb-src http://packages.icinga.org/ubuntu icinga-precise-snapshots main

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-01-27 14:12:46 +00:00

I've forced a rebuild for the ubuntu-precise packages. Please try again.

@icinga-migration
Copy link
Author

Updated by merlijntjuh on 2015-01-27 16:55:38 +00:00

Looks like it is workign (now I get the config errors, so no segfaults). Thanks

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-01-29 12:20:45 +00:00

  • Status changed from Assigned to Resolved

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-01-29 13:20:59 +00:00

  • Target Version changed from 2.3.0 to 2.2.4
  • Backport? set to Yes

@icinga-migration icinga-migration added bug Something isn't working area/db-ido Database output labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.2.4 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/db-ido Database output bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant