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 #10235] Deadlock in TlsStream::Close #3446

Closed
icinga-migration opened this issue Sep 29, 2015 · 4 comments
Milestone

Comments

@icinga-migration
Copy link
Member

@icinga-migration icinga-migration commented Sep 29, 2015

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

Created by gbeutner on 2015-09-29 06:10:01 +00:00

Assignee: gbeutner
Status: Resolved (closed on 2015-09-29 08:35:05 +00:00)
Target Version: 2.3.11
Last Update: 2015-10-13 10:30:34 +00:00 (in Redmine)

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

* thread #1: tid = 0x5cc7fe, 0x00007fff8a1a8136 libsystem_kernel.dylib`__psynch_cvwait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fff8a1a8136 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff89e0b560 libsystem_pthread.dylib`_pthread_cond_wait + 693
    frame #2: 0x0000000101536820 libbase.dylib`boost::condition_variable::wait(this=0x0000000101617330, m=0x00007fff5fbfbbd8) + 144 at condition_variable.hpp:73
    frame #3: 0x0000000101534fca libbase.dylib`icinga::SocketEvents::WakeUpThread(wait=true) + 170 at socketevents.cpp:172
    frame #4: 0x0000000101535554 libbase.dylib`icinga::SocketEvents::Unregister(this=0x00000001050822d0) + 196 at socketevents.cpp:229
    frame #5: 0x0000000101586265 libbase.dylib`icinga::TlsStream::Close(this=0x00000001050822d0) + 37 at tlsstream.cpp:317
    frame #6: 0x0000000100caa850 libremote.dylib`icinga::HttpClientConnection::Reconnect(this=0x000000010bc4ed80) + 96 at httpclientconnection.cpp:47
    frame #7: 0x0000000100cab447 libremote.dylib`icinga::HttpClientConnection::NewRequest(this=0x000000010bc4ed80) + 39 at httpclientconnection.cpp:149
    frame #8: 0x0000000100038a53 icinga-studio`icinga::ApiClient::GetObjects(this=0x000000010bc4da20, pluralType=0x00000001050b5318, callback=0x00007fff5fbfc388, names=size=0, attrs=size=1)> const&, std::__1::vector > const&, std::__1::vector > const&) const + 2339 at api.cpp:103
    frame #9: 0x000000010001dfbf icinga-studio`icinga::MainForm::OnTypeSelected(this=0x0000000106009600, event=0x00007fff5fbfc788) + 1343 at mainform.cpp:104
    frame #10: 0x000000010092686e libwx_baseu-3.0.dylib`wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 88
    frame #11: 0x0000000100927a3d libwx_baseu-3.0.dylib`wxEvtHandler::SearchDynamicEventTable(wxEvent&) + 89
    frame #12: 0x000000010092798e libwx_baseu-3.0.dylib`wxEvtHandler::TryHereOnly(wxEvent&) + 40
    frame #13: 0x00000001009278d4 libwx_baseu-3.0.dylib`wxEvtHandler::ProcessEventLocally(wxEvent&) + 40
    frame #14: 0x0000000100927867 libwx_baseu-3.0.dylib`wxEvtHandler::ProcessEvent(wxEvent&) + 179
    frame #15: 0x000000010051a376 libwx_osx_cocoau_core-3.0.dylib`wxScrollHelperEvtHandler::ProcessEvent(wxEvent&) + 34
    frame #16: 0x000000010052cad8 libwx_osx_cocoau_core-3.0.dylib`wxGenericTreeCtrl::DoSelectItem(wxTreeItemId const&, bool, bool) + 748
    frame #17: 0x000000010052912b libwx_osx_cocoau_core-3.0.dylib`wxGenericTreeCtrl::OnChar(wxKeyEvent&) + 2679
    frame #18: 0x000000010092686e libwx_baseu-3.0.dylib`wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 88
    frame #19: 0x000000010092677e libwx_baseu-3.0.dylib`wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 124
    frame #20: 0x00000001009279af libwx_baseu-3.0.dylib`wxEvtHandler::TryHereOnly(wxEvent&) + 73
    frame #21: 0x00000001009278d4 libwx_baseu-3.0.dylib`wxEvtHandler::ProcessEventLocally(wxEvent&) + 40
    frame #22: 0x0000000100927867 libwx_baseu-3.0.dylib`wxEvtHandler::ProcessEvent(wxEvent&) + 179
    frame #23: 0x000000010051a376 libwx_osx_cocoau_core-3.0.dylib`wxScrollHelperEvtHandler::ProcessEvent(wxEvent&) + 34
    frame #24: 0x0000000100927aa9 libwx_baseu-3.0.dylib`wxEvtHandler::SafelyProcessEvent(wxEvent&) + 15
    frame #25: 0x0000000100342dc5 libwx_osx_cocoau_core-3.0.dylib`wxWindow::OSXHandleKeyEvent(wxKeyEvent&) + 267
    frame #26: 0x00000001003e7324 libwx_osx_cocoau_core-3.0.dylib`wxWidgetCocoaImpl::doCommandBySelector(void*, NSView*, void*) + 260
    frame #27: 0x00007fff8d63ce01 AppKit`-[NSTextInputContext(NSInputContext_WithCompletion) doCommandBySelector:completionHandler:] + 118
    frame #28: 0x00007fff8d622c23 AppKit`-[NSKeyBindingManager(NSKeyBindingManager_MultiClients) interpretEventAsCommand:forClient:] + 1899
    frame #29: 0x00007fff8dbe9272 AppKit`__61-[NSTextInputContext _handleEvent:options:completionHandler:]_block_invoke972 + 335
    frame #30: 0x00007fff8d624bff AppKit`-[NSTextInputContext(NSInputContext_WithCompletion) hasMarkedTextWithCompletionHandler:] + 76
    frame #31: 0x00007fff8d63cd03 AppKit`__61-[NSTextInputContext _handleEvent:options:completionHandler:]_block_invoke_3 + 95
    frame #32: 0x00007fff8d635ed8 AppKit`-[NSTextInputContext tryHandleEvent_HasMarkedText_withDispatchCondition:dispatchWork:continuation:] + 101
    frame #33: 0x00007fff8dbe9074 AppKit`__61-[NSTextInputContext _handleEvent:options:completionHandler:]_block_invoke960 + 321
    frame #34: 0x00007fff8c8ffd4f HIToolbox`__TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_5 + 70
    frame #35: 0x00007fff8c8fec45 HIToolbox`___ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec_block_invoke + 108
    frame #36: 0x00007fff8d625606 AppKit`__55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke174 + 2387
    frame #37: 0x00007fff8d624bff AppKit`-[NSTextInputContext(NSInputContext_WithCompletion) hasMarkedTextWithCompletionHandler:] + 76
    frame #38: 0x00007fff8d624ba0 AppKit`__55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke_2 + 95
    frame #39: 0x00007fff8d624b18 AppKit`-[NSTextInputContext tryHandleTSMEvent_HasMarkedText_withDispatchCondition:dispatchWork:continuation:] + 101
    frame #40: 0x00007fff8d6247d5 AppKit`-[NSTextInputContext handleTSMEvent:completionHandler:] + 3122
    frame #41: 0x00007fff8d623b2e AppKit`_NSTSMEventHandler + 324
    frame #42: 0x00007fff8c898b6c HIToolbox`DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1260
    frame #43: 0x00007fff8c897fae HIToolbox`SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 386
    frame #44: 0x00007fff8c897e22 HIToolbox`SendEventToEventTargetWithOptions + 43
    frame #45: 0x00007fff8c8fc26c HIToolbox`SendTSMEvent_WithCompletionHandler + 417
    frame #46: 0x00007fff8c8fc76c HIToolbox`__SendUnicodeTextAEToUnicodeDoc_WithCompletionHandler_block_invoke + 400
    frame #47: 0x00007fff8c8fc5a6 HIToolbox`__SendFilterTextEvent_WithCompletionHandler_block_invoke + 189
    frame #48: 0x00007fff8c8fc2c0 HIToolbox`SendTSMEvent_WithCompletionHandler + 501
    frame #49: 0x00007fff8c8fc08f HIToolbox`SendFilterTextEvent_WithCompletionHandler + 236
    frame #50: 0x00007fff8c8fbd51 HIToolbox`SendUnicodeTextAEToUnicodeDoc_WithCompletionHandler + 295
    frame #51: 0x00007fff8c8fbae9 HIToolbox`__utDeliverTSMEvent_WithCompletionHandler_block_invoke_2 + 296
    frame #52: 0x00007fff8c8fb988 HIToolbox`__utDeliverTSMEvent_WithCompletionHandler_block_invoke + 437
    frame #53: 0x00007fff8c8fb7cd HIToolbox`TSMKeyEvent_WithCompletionHandler + 701
    frame #54: 0x00007fff8c8fb4d0 HIToolbox`__TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_4 + 251
    frame #55: 0x00007fff8c8fb386 HIToolbox`__TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_3 + 330
    frame #56: 0x00007fff8c8fb112 HIToolbox`__TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_2 + 259
    frame #57: 0x00007fff8c8faf25 HIToolbox`__TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke + 251
    frame #58: 0x00007fff8c8df76f HIToolbox`TSMProcessRawKeyEventWithOptionsAndCompletionHandler + 3068
    frame #59: 0x00007fff8dbe8e86 AppKit`__61-[NSTextInputContext _handleEvent:options:completionHandler:]_block_invoke949 + 131
    frame #60: 0x00007fff8d622352 AppKit`-[NSTextInputContext tryTSMProcessRawKeyEvent:dispatchCondition:setupForDispatch:furtherCondition:dispatchWork:continuation:] + 127
    frame #61: 0x00007fff8d622085 AppKit`-[NSTextInputContext _handleEvent:options:completionHandler:] + 1266
    frame #62: 0x00007fff8d621b4e AppKit`-[NSTextInputContext handleEvent:] + 109
    frame #63: 0x00007fff8d621a54 AppKit`-[NSView interpretKeyEvents:] + 207
    frame #64: 0x00000001003ea5a5 libwx_osx_cocoau_core-3.0.dylib`wxWidgetCocoaImpl::DoHandleKeyEvent(NSEvent*) + 509
    frame #65: 0x00000001003e6eac libwx_osx_cocoau_core-3.0.dylib`wxWidgetCocoaImpl::keyEvent(NSEvent*, NSView*, void*) + 190
    frame #66: 0x00007fff8db110fb AppKit`-[NSWindow _reallySendEvent:isDelayedEvent:] + 5452
    frame #67: 0x00007fff8d4a2c86 AppKit`-[NSWindow sendEvent:] + 470
    frame #68: 0x00000001003d65ec libwx_osx_cocoau_core-3.0.dylib`-[wxNSWindow sendEvent:] + 117
    frame #69: 0x00007fff8d49f8b1 AppKit`-[NSApplication sendEvent:] + 4199
    frame #70: 0x0000000100332843 libwx_osx_cocoau_core-3.0.dylib`-[wxNSApplication sendEvent:] + 136
    frame #71: 0x00007fff8d3c8b68 AppKit`-[NSApplication run] + 711
    frame #72: 0x00000001003cd33a libwx_osx_cocoau_core-3.0.dylib`wxGUIEventLoop::OSXDoRun() + 106
    frame #73: 0x00000001008fd059 libwx_baseu-3.0.dylib`wxCFEventLoop::DoRun() + 39
    frame #74: 0x0000000100859b75 libwx_baseu-3.0.dylib`wxEventLoopBase::Run() + 165
    frame #75: 0x000000010082a320 libwx_baseu-3.0.dylib`wxAppConsoleBase::MainLoop() + 102
    frame #76: 0x000000010037599c libwx_osx_cocoau_core-3.0.dylib`wxApp::OnRun() + 26
    frame #77: 0x0000000100890f6f libwx_baseu-3.0.dylib`wxEntry(int&, wchar_t**) + 71
    frame #78: 0x0000000100007c16 icinga-studio`main(argc=1, argv=0x00007fff5fbffa28) + 38 at icinga-studio.cpp:66
    frame #79: 0x00007fff918965c9 libdyld.dylib`start + 1
    frame #80: 0x00007fff918965c9 libdyld.dylib`start + 1
(lldb) 

Changesets

2015-09-29 08:31:16 +00:00 by (unknown) 0e40c3e

Fix deadlock in TlsStream::Close

fixes #10235

2015-09-29 08:59:53 +00:00 by mfriedrich dcf3fdf

Make sure object list is cleared when selecting a type which does not have any objects

refs #10235

2015-10-13 10:23:46 +00:00 by (unknown) ca960a0

Fix deadlock in TlsStream::Close

fixes #10235
@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Sep 29, 2015

Updated by Anonymous on 2015-09-29 08:35:05 +00:00

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

Applied in changeset 0e40c3e.

@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Sep 30, 2015

Updated by mfriedrich on 2015-09-30 16:30:10 +00:00

  • Assigned to set to gbeutner
@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Oct 13, 2015

Updated by gbeutner on 2015-10-13 10:22:50 +00:00

I'm not sure why dcf3fdf references this ticket.

@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Oct 13, 2015

Updated by gbeutner on 2015-10-13 10:30:34 +00:00

  • Target Version changed from 2.4.0 to 2.3.11
  • Backport? changed from TBD to Yes
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.