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 #8462] deadlock in client connection #2631

Closed
icinga-migration opened this issue Feb 17, 2015 · 2 comments
Closed

[dev.icinga.com #8462] deadlock in client connection #2631

icinga-migration opened this issue Feb 17, 2015 · 2 comments
Labels
area/distributed Distributed monitoring (master, satellites, clients) bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

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

Created by tobiasvdk on 2015-02-17 13:24:34 +00:00

Assignee: gbeutner
Status: Resolved (closed on 2015-02-17 13:35:03 +00:00)
Target Version: 2.3.0
Last Update: 2015-02-17 13:35:36 +00:00 (in Redmine)

Icinga Version: r2.2.0-486-g31786fd
Backport?: No
Include in Changelog: 0

As requested via irc:

Thread 6 (Thread 0x7f60c409b700 (LWP 4594)):

#0  0x00007f60c95367fc in __lll_lock_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f60c95324b9 in _L_lock_909 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f60c95322e0 in pthread_mutex_lock () from /lib/x86_64-linux-gnu/libpthread.so.0
#3  0x00007f60c9ee7528 in pthread_mutex_lock (m=0x7f60a2afb1f8) at ./boost/thread/pthread/mutex.hpp:61
#4  boost::mutex::lock (this=0x7f60a2afb1f8) at ./boost/thread/pthread/mutex.hpp:113
#5  0x00007f60c9ee762c in boost::unique_lock::lock (this=0x7f60c409ab80) at ./boost/thread/lock_types.hpp:346
#6  0x00007f60c925f8df in unique_lock (m_=..., this=0x7f60c409ab80) at /usr/include/boost/thread/lock_types.hpp:124
#7  icinga::WorkQueue::Join (this=this@entry=0x7f60a2afb1e8, stop=stop@entry=true) at /build/icinga2-DOhZ5c/icinga2-2.3.0-0pb5+feature/lib/base/workqueue.cpp:95
#8  0x00007f60c925f9a3 in icinga::WorkQueue::~WorkQueue (this=0x7f60a2afb1e8, __in_chrg=) at /build/icinga2-DOhZ5c/icinga2-2.3.0-0pb5+feature/lib/base/workqueue.cpp:47
#9  0x00007f60c8829121 in ~ApiClient (this=, __in_chrg=) at /build/icinga2-DOhZ5c/icinga2-2.3.0-0pb5+feature/lib/remote/apiclient.hpp:45
#10 icinga::ApiClient::~ApiClient (this=0x7f60a2afb180, __in_chrg=) at /build/icinga2-DOhZ5c/icinga2-2.3.0-0pb5+feature/lib/remote/apiclient.hpp:45
#11 0x00007f60c88299e1 in ~list2 (this=0x7f6074000c10, __in_chrg=) at /usr/include/boost/bind/bind.hpp:275
#12 ~bind_t (this=0x7f6074000c00, __in_chrg=) at /usr/include/boost/bind/bind.hpp:864
#13 manager (op=, out_buffer=..., in_buffer=...) at /usr/include/boost/function/function_base.hpp:389
#14 manager (op=, out_buffer=..., in_buffer=...) at /usr/include/boost/function/function_base.hpp:412
#15 boost::detail::function::functor_manager const&>, boost::_bi::list2 >, boost::_bi::value > > > >::manage (in_buffer=..., out_buffer=..., op=) at /usr/include/boost/function/function_base.hpp:440
#16 0x00007f60c91d0a8a in clear (this=, functor=...) at /usr/include/boost/function/function_template.hpp:504
#17 boost::function0::clear (this=0x7f60a2afb1f8) at /usr/include/boost/function/function_template.hpp:877
#18 0x00007f60c926016d in ~function0 (this=0x7f60c409ad00, __in_chrg=) at /usr/include/boost/function/function_template.hpp:759
#19 ~function (this=0x7f60c409ad00, __in_chrg=) at /usr/include/boost/function/function_template.hpp:1048
#20 icinga::WorkQueue::WorkerThreadProc (this=0x7f60a2afb1e8) at /build/icinga2-DOhZ5c/icinga2-2.3.0-0pb5+feature/lib/base/workqueue.cpp:229
#21 0x00007f60c9ee2aea in boost::(anonymous namespace)::thread_proxy (param=) at libs/thread/src/pthread/thread.cpp:164
#22 0x00007f60c95300a4 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#23 0x00007f60c6c81ccd in clone () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) thread find 4594 Thread 7 has target id 'Thread 0x7f60c409b700 (LWP 4594)' (gdb) thr 7 [Switching to thread 7 (Thread 0x7f60c409b700 (LWP 4594))]
#0  0x00007f60c95367fc in __lll_lock_wait () from /lib/x86_64-linux-gnu/libpthread.so.0

(gdb) fr 3

#3  0x00007f60c9ee7528 in pthread_mutex_lock (m=0x7f60a2afb1f8) at ./boost/thread/pthread/mutex.hpp:61

61 ./boost/thread/pthread/mutex.hpp: No such file or directory.
(gdb) p *m
$1 = <locked by #4594>

Changesets

2015-02-17 13:31:10 +00:00 by (unknown) d5c33d8

Fix a deadlock in ApiClient::~ApiClient

fixes #8462
@icinga-migration
Copy link
Author

Updated by Anonymous on 2015-02-17 13:35:03 +00:00

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

Applied in changeset d5c33d8.

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-02-17 13:35:31 +00:00

  • Target Version set to 2.3.0
  • Backport? changed from TBD to No
  • Include in Changelog changed from 1 to 0

@icinga-migration icinga-migration added bug Something isn't working area/distributed Distributed monitoring (master, satellites, clients) labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.3.0 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/distributed Distributed monitoring (master, satellites, clients) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant