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 #6111] exception for notification objects without checkable object #1509

Closed
icinga-migration opened this issue May 2, 2014 · 1 comment

Comments

@icinga-migration
Copy link
Member

commented May 2, 2014

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

Created by mfriedrich on 2014-05-02 17:43:38 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2014-05-02 17:44:21 +00:00)
Target Version: 0.0.11
Last Update: 2014-05-02 17:44:21 +00:00 (in Redmine)

Icinga Version: 0.0.10

[2014-05-02 19:39:15 +0200]  information/config: Validating config items (step 1)...
[New Thread 0x7ffff7fbe700 (LWP 15758)]
[New Thread 0x7ffff7f7d700 (LWP 15759)]
[New Thread 0x7ffff7f3c700 (LWP 15760)]
[New Thread 0x7ffff7efb700 (LWP 15761)]
[2014-05-02 19:39:15 +0200]  information/config: Committing config items
[2014-05-02 19:39:15 +0200]  information/config: Triggering OnConfigLoaded signal for config items
icinga2: /usr/include/boost/smart_ptr/shared_ptr.hpp:653: typename boost::detail::sp_member_access::type boost::shared_ptr::operator->() const [with T = icinga::Checkable; typename boost::detail::sp_member_access::type = icinga::Checkable*]: Assertion `px != 0' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffff7fbe700 (LWP 15758)]
0x00007ffff4dc43a9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56  ../nptl/sysdeps/unix/sysv/linux/raise.c: Datei oder Verzeichnis nicht gefunden.
(gdb) bt

#0  0x00007ffff4dc43a9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff4dc74c8 in __GI_abort () at abort.c:89
#2  0x00007ffff4dbd4c6 in __assert_fail_base (fmt=0x7ffff4ef4428 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7ffff27ec984 "px != 0", 

file=file@entry=0x7ffff27ec958 "/usr/include/boost/smart_ptr/shared_ptr.hpp", line=line@entry=653,
function=function@entry=0x7ffff27eca40 <boost::shared_ptricinga::Checkable::operator~~() const::PRETTY_FUNCTION> "typename boost::detail::sp_member_access::type boost::shared_ptr::operator~~>() const [with T = icinga::Checkable; typename boost::detail::sp_member_access::type = icinga::Checkable*]") at assert.c:92

#3  0x00007ffff4dbd572 in __GI___assert_fail (assertion=0x7ffff27ec984 "px != 0", file=0x7ffff27ec958 "/usr/include/boost/smart_ptr/shared_ptr.hpp", line=653, 

function=0x7ffff27eca40 <boost::shared_ptricinga::Checkable::operator~~() const::PRETTY_FUNCTION> "typename boost::detail::sp_member_access::type boost::shared_ptr::operator~~>() const [with T = icinga::Checkable; typename boost::detail::sp_member_access::type = icinga::Checkable*]") at assert.c:101

#4  0x00007ffff26af401 in boost::shared_ptr::operator-> (this=0x7ffff7fbd9d0) at /usr/include/boost/smart_ptr/shared_ptr.hpp:653
#5  0x00007ffff2767e0c in icinga::Notification::OnConfigLoaded (this=0x7fffd8008550) at /home/michi/coding/icinga/icinga2/lib/icinga/notification.cpp:84
#6  0x00007ffff69582fc in boost::_mfi::mf0::call > (this=0x6d6c60, u=...) at /usr/include/boost/bind/mem_fn_template.hpp:40
#7  0x00007ffff6958139 in boost::_mfi::mf0::operator() > (this=0x6d6c60, u=...) at /usr/include/boost/bind/mem_fn_template.hpp:55
#8  0x00007ffff6957a12 in boost::_bi::list1 > >::operator(), boost::_bi::list0> (this=0x6d6c70, f=..., 

a=...) at /usr/include/boost/bind/bind.hpp:253

#9  0x00007ffff6956d4f in boost::_bi::bind_t, boost::_bi::list1 > > >::operator() (this=0x6d6c60)

at /usr/include/boost/bind/bind_template.hpp:20

#10 0x00007ffff6955e61 in boost::detail::function::void_function_obj_invoker0, boost::_bi::list1 > > >, void>::invoke (function_obj_ptr=...) at /usr/include/boost/function/function_template.hpp:153
#11 0x00007ffff6f0878e in boost::function0::operator() (this=0x7fffe8000be0) at /usr/include/boost/function/function_template.hpp:767
#12 0x00007ffff6f309ea in icinga::WorkQueue::WorkerThreadProc (this=0x6d6570) at /home/michi/coding/icinga/icinga2/lib/base/workqueue.cpp:158
#13 0x00007ffff6f34029 in boost::_mfi::mf0::operator() (this=0x72d6b8, p=0x6d6570) at /usr/include/boost/bind/mem_fn_template.hpp:49
#14 0x00007ffff6f34400 in boost::_bi::list1 >::operator(), boost::_bi::list0> (this=0x72d6c8, f=..., a=...)

at /usr/include/boost/bind/bind.hpp:253

#15 0x00007ffff6f343a5 in boost::_bi::bind_t, boost::_bi::list1 > >::operator() (this=0x72d6b8)

at /usr/include/boost/bind/bind_template.hpp:20

#16 0x00007ffff6f3436a in boost::detail::thread_data, boost::_bi::list1 > > >::run (this=0x72d500)

at /usr/include/boost/thread/detail/thread.hpp:117

#17 0x00007ffff79b529a in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#18 0x00007ffff7bc8062 in start_thread (arg=0x7ffff7fbe700) at pthread_create.c:312
#19 0x00007ffff4e74a3d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

(gdb) up

#1  0x00007ffff4dc74c8 in __GI_abort () at abort.c:89

89 abort.c: Datei oder Verzeichnis nicht gefunden.
(gdb)

#2  0x00007ffff4dbd4c6 in __assert_fail_base (fmt=0x7ffff4ef4428 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7ffff27ec984 "px != 0", 

file=file@entry=0x7ffff27ec958 "/usr/include/boost/smart_ptr/shared_ptr.hpp", line=line@entry=653,
function=function@entry=0x7ffff27eca40 <boost::shared_ptricinga::Checkable::operator~~() const::PRETTY_FUNCTION> "typename boost::detail::sp_member_access::type boost::shared_ptr::operator~~>() const [with T = icinga::Checkable; typename boost::detail::sp_member_access::type = icinga::Checkable*]") at assert.c:92
92 assert.c: Datei oder Verzeichnis nicht gefunden.
(gdb)

#3  0x00007ffff4dbd572 in __GI___assert_fail (assertion=0x7ffff27ec984 "px != 0", file=0x7ffff27ec958 "/usr/include/boost/smart_ptr/shared_ptr.hpp", line=653, 

function=0x7ffff27eca40 <boost::shared_ptricinga::Checkable::operator~~() const::PRETTY_FUNCTION> "typename boost::detail::sp_member_access::type boost::shared_ptr::operator~~>() const [with T = icinga::Checkable; typename boost::detail::sp_member_access::type = icinga::Checkable*]") at assert.c:101
101 in assert.c
(gdb)

#4  0x00007ffff26af401 in boost::shared_ptr::operator-> (this=0x7ffff7fbd9d0) at /usr/include/boost/smart_ptr/shared_ptr.hpp:653

653 BOOST_ASSERT( px != 0 );
(gdb)

#5  0x00007ffff2767e0c in icinga::Notification::OnConfigLoaded (this=0x7fffd8008550) at /home/michi/coding/icinga/icinga2/lib/icinga/notification.cpp:84

84 GetCheckable()->AddNotification(GetSelf());
(gdb) l
79 void Notification::OnConfigLoaded(void)
80 {
81 SetTypeFilter(FilterArrayToInt(GetTypes(), ~0));
82 SetStateFilter(FilterArrayToInt(GetStates(), ~0));
83
84 GetCheckable()->AddNotification(GetSelf());
85 }
86
87 void Notification::Start(void)
88 {

Changesets

2014-05-02 17:43:49 +00:00 by (unknown) dbe6a20

Fix exception for Notification objects without checkable object.

Fixes #6111
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented May 2, 2014

Updated by Anonymous on 2014-05-02 17:44:21 +00:00

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

Applied in changeset dbe6a20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.