Project

General

Profile

Bug #16955

circular lock in Messenger/MessengerTest.SimpleTest/1

Added by Kefu Chai over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
msgr
Target version:
-
Start date:
08/08/2016
Due date:
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

2016-08-08 18:59:26.771624 7f9a65d5fd80 -1  ceph_test_msgr SetUp start set up simple
2016-08-08 18:59:26.771819 7f9a65d5fd80 -1  ceph_test_msgr ms_handle_fast_connect0xabf71a0
2016-08-08 18:59:26.771829 7f9a65d5fd80 -1  ceph_test_msgr ms_handle_fast_connect con: 0xabf71a0 count: 0
2016-08-08 18:59:26.772100 7f9a65d56700 -1  ceph_test_msgr ms_handle_fast_connect0xabf71a0
2016-08-08 18:59:26.772211 7f9a65d56700 -1  ceph_test_msgr ms_handle_fast_connect0xac8d220
2016-08-08 18:59:26.772251 7f9a65d56700 -1  ceph_test_msgr ms_handle_fast_connect con: 0xac8d220 count: 0
2016-08-08 18:59:26.772328 7f9a5c6a2700 -1  ceph_test_msgr ms_fast_dispatch conn: 0x7f9a1c001c50 session 0x7f9a20001e70 count: 1
2016-08-08 18:59:26.772337 7f9a5c6a2700  0
------------------------------------
existing dependency SimpleMessenger::Pipe::pipe_lock (18) -> FakeDispatcher::lock (17) at:
 ceph version Development (no_version)
 1: (Mutex::_will_lock()+0x3b) [0xf74d31]
 2: (Mutex::Lock(bool)+0x50) [0xf74aac]
 3: (Mutex::Locker::Locker(Mutex&)+0x2f) [0xf1035d]
 4: (FakeDispatcher::ms_handle_fast_accept(Connection*)+0x39) [0xf146e9]
 5: (Messenger::ms_deliver_handle_fast_accept(Connection*)+0x83) [0x1320f1b]
 6: (Pipe::accept()+0x4f6a) [0x130c8a0]
 7: (Pipe::reader()+0x62) [0x1316f2c]
 8: (Pipe::Reader::entry()+0x1c) [0x1320f9a]
 9: (Thread::entry_wrapper()+0xc1) [0x11770af]
 10: (Thread::_entry_func(void*)+0x18) [0x1176fe4]
 11: (()+0x7464) [0x7f1c7a9fe464]
 12: (clone()+0x6d) [0x7f1c7713b30d]

new dependency FakeDispatcher::lock (17) -> SimpleMessenger::Pipe::pipe_lock (18) creates a cycle at
 ceph version Development (no_version)
 1: (Mutex::_will_lock()+0x3b) [0xf74d31]
 2: (Mutex::Lock(bool)+0x50) [0xf74aac]
 3: (SimpleMessenger::submit_message(Message*, PipeConnection*, entity_addr_t const&, int, bool)+0x454) [0x10652a4]
 4: (SimpleMessenger::_send_message(Message*, Connection*)+0x2c9) [0x1062c33]
 5: (SimpleMessenger::send_message(Message*, Connection*)+0x2b) [0x1326b8d]
 6: (PipeConnection::send_message(Message*)+0x5d) [0x1326983]
 7: (FakeDispatcher::reply_message(Message*)+0x56) [0xf154ee]
 8: (FakeDispatcher::ms_fast_dispatch(Message*)+0x35a) [0xf1532e]
 9: (Messenger::ms_fast_dispatch(Message*)+0xd1) [0x12f4171]
 10: (DispatchQueue::fast_dispatch(Message*)+0x3e) [0x12f237e]
 11: (Pipe::reader()+0x1e15) [0x1318cdf]
 12: (Pipe::Reader::entry()+0x1c) [0x1320f9a]
 13: (Thread::entry_wrapper()+0xc1) [0x11770af]
 14: (Thread::_entry_func(void*)+0x18) [0x1176fe4]
 15: (()+0x7464) [0x7f1c7a9fe464]
 16: (clone()+0x6d) [0x7f1c7713b30d]

2016-08-08 18:59:26.779902 7f9a5c6a2700  0 btw, i am holding these locks:
2016-08-08 18:59:26.779903 7f9a5c6a2700  0   FakeDispatcher::lock (17)
2016-08-08 18:59:26.779904 7f9a5c6a2700  0   FakeDispatcher::Session::lock (19)
2016-08-08 18:59:26.779905 7f9a5c6a2700  0


Related issues

Duplicated by Ceph - Bug #16932: ceph_test_msgr hang Duplicate 08/04/2016

History

#1 Updated by Kefu Chai over 2 years ago

  • Description updated (diff)

#2 Updated by Kefu Chai over 2 years ago

  • Related to Bug #16932: ceph_test_msgr hang added

#3 Updated by Kefu Chai over 2 years ago

  • Category set to msgr
  • Status changed from New to Need Review
  • Assignee set to Kefu Chai
  • Source changed from other to Development

#4 Updated by Kefu Chai over 2 years ago

  • Status changed from Need Review to Resolved

#5 Updated by Kefu Chai over 2 years ago

  • Related to deleted (Bug #16932: ceph_test_msgr hang)

#6 Updated by Kefu Chai over 2 years ago

  • Duplicated by Bug #16932: ceph_test_msgr hang added

Also available in: Atom PDF