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 #10648] lib/base/process.cpp SIGSEGV on Debian squeeze / RHEL 6 #3674

Closed
icinga-migration opened this issue Nov 16, 2015 · 6 comments

Comments

Projects
None yet
1 participant
@icinga-migration
Copy link
Member

commented Nov 16, 2015

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

Created by mfrosch on 2015-11-16 15:01:27 +00:00

Assignee: gbeutner
Status: Resolved (closed on 2015-11-17 21:10:03 +00:00)
Target Version: 2.4.1
Last Update: 2015-11-26 08:52:40 +00:00 (in Redmine)

Icinga Version: 2.4.0
Backport?: Already backported
Include in Changelog: 1

A few seconds after start, the daemon crashes.

icinga2: /usr/include/boost/smart_ptr/intrusive_ptr.hpp:166: T* boost::intrusive_ptr::operator->() const [with T = icinga::Process]: Assertion `px != 0' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffff0431700 (LWP 3615)]
0x00007ffff3e29ed5 in raise () from /lib/libc.so.6
(gdb) 
(gdb) bt

#0  0x00007ffff3e29ed5 in raise () from /lib/libc.so.6
#1  0x00007ffff3e2cce0 in abort () from /lib/libc.so.6
#2  0x00007ffff3e23021 in __assert_fail () from /lib/libc.so.6
#3  0x00007ffff6e94b2b in boost::intrusive_ptr::operator-> (this=0x7fffec125b98) at /usr/include/boost/smart_ptr/intrusive_ptr.hpp:166
#4  0x00007ffff6e5084a in icinga::Process::IOThreadProc (tid=0) at /home/markus/icinga2/lib/base/process.cpp:285
#5  0x00007ffff6f6ea79 in boost::_bi::list1 >::operator() (this=0x7fffec104528, f=@0x7fffec104520, a=...)

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

#6  0x00007ffff6f6dafb in boost::_bi::bind_t > >::operator() (this=0x7fffec104520)

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

#7  0x00007ffff6f68fb0 in boost::detail::thread_data > > >::run (this=0x7fffec1043f0)

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

#8  0x00007ffff7bd5200 in thread_proxy (param=) at libs/thread/src/pthread/thread.cpp:120
#9  0x00007ffff79b48ca in start_thread () from /lib/libpthread.so.0
#10 0x00007ffff3ece0ad in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

(gdb) up

#1  0x00007ffff3e2cce0 in abort () from /lib/libc.so.6

(gdb)

#2  0x00007ffff3e23021 in __assert_fail () from /lib/libc.so.6

(gdb)

#3  0x00007ffff6e94b2b in boost::intrusive_ptr::operator-> (this=0x7fffec125b98) at /usr/include/boost/smart_ptr/intrusive_ptr.hpp:166

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

#4  0x00007ffff6e5084a in icinga::Process::IOThreadProc (tid=0) at /home/markus/icinga2/lib/base/process.cpp:285

285 if (it~~second>m_Timeout != 0) {
(gdb) p it
$1 = {_M_node = 0x7fffec125b70}
(gdb) p *it
[2015-11-16 15:58:44 +0100] information/Application: We jumped forward in time: 16.5847 seconds
[New Thread 0x7ffff7e5e700 (LWP 3626)]
$2 = (class std::pair<int const, boost::intrusive_ptricinga::Process > &) 0x7fffec125b90: {first = 3617, second = {px = 0x0}} (gdb) p $3 = (class std::pair<int const, boost::intrusive_ptr<icinga::Process> > &) 0x7fffec125b90: {first = 3617, second = {px = 0x0}}
(gdb) l
280 if (it == l_Processes[tid].end())
281 continue; /* This should never happen. */
282
283 bool is_timeout = false;
284
285 if (it
second>m_Timeout != 0) {
286 double timeout = it
second>m_Result.ExecutionStart + itsecond~~>m_Timeout;
287
288 if (timeout < now)
289 is_timeout = true;

Changesets

2015-11-17 21:07:40 +00:00 by (unknown) af44119

Fix crash in Process::IOThreadProc when building Icinga 2 with GCC 4.7.2

fixes #10648

2015-11-17 21:08:05 +00:00 by (unknown) b75aa74

Fix crash in Process::IOThreadProc when building Icinga 2 with GCC 4.7.2

fixes #10648

Relations:

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Nov 17, 2015

Updated by gbeutner on 2015-11-17 09:03:58 +00:00

(gdb) bt full

#0  0x00007ffff3ae8ed5 in raise () from /lib/libc.so.6

No symbol table info available.

#1  0x00007ffff3aebce0 in abort () from /lib/libc.so.6

No symbol table info available.

#2  0x00007ffff3ae2021 in __assert_fail () from /lib/libc.so.6

No symbol table info available.

#3  0x00007ffff6ce85d3 in boost::intrusive_ptr::operator-> (this=0x7fffe4010838) at /usr/include/boost/smart_ptr/intrusive_ptr.hpp:166

PRETTY_FUNCTION = "T* boost::intrusive_ptr::operator->() const [with T = icinga::Process]"

#4  0x00007ffff6db5fb8 in icinga::Process::IOThreadProc (tid=0) at /root/icinga2/lib/base/process.cpp:285

it = {first = 20833, second = {px = 0x0}}
it2 = {first = 11, second = 20833}
is_timeout = false
i = 1
lock = {m = 0x7ffff7247f80, is_locked = true}
timeout = 59995.620965957642
rc = 2
pfds = 0x7fffe4018110
count = 3
now = 1447751001.8180699

#5  0x00007ffff6dbd3ff in void boost::_bi::list1 >::operator()(boost::_bi::type, void (*&)(int), boost::_bi::list0&, int) () from /opt/icinga2/lib/icinga2/libbase.so

No symbol table info available.

#6  0x00007ffff6dbd3b1 in boost::_bi::bind_t > >::operator()() () from /opt/icinga2/lib/icinga2/libbase.so

No symbol table info available.

#7  0x00007ffff6dbd370 in boost::detail::thread_data > > >::run() ()

from /opt/icinga2/lib/icinga2/libbase.so
No symbol table info available.

#8  0x00007ffff7bd5200 in thread_proxy () from /usr/lib/libboost_thread.so.1.42.0

No symbol table info available.

#9  0x00007ffff79b48ca in start_thread () from /lib/libpthread.so.0

No symbol table info available.

#10 0x00007ffff3b8d0ad in clone () from /lib/libc.so.6

No symbol table info available.

#11 0x0000000000000000 in ?? ()

No symbol table info available.

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Nov 17, 2015

Updated by gbeutner on 2015-11-17 21:08:28 +00:00

  • Assigned to set to gbeutner
  • Target Version set to 2.4.1
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Nov 17, 2015

Updated by Anonymous on 2015-11-17 21:10:03 +00:00

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

Applied in changeset af44119.

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Nov 17, 2015

Updated by gbeutner on 2015-11-17 21:10:24 +00:00

  • Backport? changed from TBD to Yes
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Nov 25, 2015

Updated by mfriedrich on 2015-11-25 09:23:34 +00:00

  • Duplicated set to 10719
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Nov 26, 2015

Updated by mfriedrich on 2015-11-26 08:52:40 +00:00

  • Subject changed from lib/base/process.cpp SIGSEGV on Debian squeeze to lib/base/process.cpp SIGSEGV on Debian squeeze / RHEL 6

@icinga-migration icinga-migration added this to the 2.4.1 milestone Jan 17, 2017

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