Project

General

Profile

Actions

Bug #15412

closed

msg/simple: deadlock in delayed delivery

Added by Sage Weil about 8 years ago. Updated over 4 years ago.

Status:
Won't Fix
Priority:
High
Assignee:
-
Category:
SimpleMessenger
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f9dc807f50f in Wait (mutex=..., this=0x7f9dd2bc7e18) at ./common/Cond.h:56
#2  Pipe::DelayedDelivery::stop_fast_dispatching (this=0x7f9dd2bc7d40) at msg/simple/Pipe.cc:249
#3  0x00007f9dc808064c in Pipe::stop_and_wait (this=this@entry=0x7f9dd37a0000) at msg/simple/Pipe.cc:1484
#4  0x00007f9dc808e578 in Pipe::accept (this=this@entry=0x7f9dd3dfc000) at msg/simple/Pipe.cc:688
#5  0x00007f9dc8091ddf in Pipe::reader (this=0x7f9dd3dfc000) at msg/simple/Pipe.cc:1499
#6  0x00007f9dc809988d in Pipe::Reader::entry (this=<optimized out>) at msg/simple/Pipe.h:52
#7  0x00007f9dc6260182 in start_thread (arg=0x7f9da0555700) at pthread_create.c:312
#8  0x00007f9dc438e47d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

 waiting for fast dispatch to finish...
 holds pipe_lock
 holds delay_lock

Thread 62 (Thread 0x7f9d9ef4d700 (LWP 29271)):
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007f9dc6262657 in _L_lock_909 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f9dc6262480 in __GI___pthread_mutex_lock (mutex=0x7f9dd37a1180) at ../nptl/pthread_mutex_lock.c:79
#3  0x00007f9dc7f4d7f8 in Mutex::Lock (this=this@entry=0x7f9dd37a1170, no_lockdep=no_lockdep@entry=false) at common/Mutex.cc:110
#4  0x00007f9dc7f73ea6 in Locker (m=..., this=<synthetic pointer>) at ./common/Mutex.h:115
#5  is_connected (this=0x7f9dd37a0000) at msg/simple/Pipe.h:143
#6  SimpleMessenger::is_connected (this=<optimized out>, con=<optimized out>) at msg/simple/SimpleMessenger.cc:282
#7  0x00007f9dc791f236 in OSD::op_is_discardable (op=op@entry=0x7f9dd5180c00) at osd/OSD.cc:8568
#8  0x00007f9dc7952aba in OSD::handle_op (this=this@entry=0x7f9dd2860000, op=..., osdmap=...) at osd/OSD.cc:8418
#9  0x00007f9dc7953cde in OSD::dispatch_op_fast (this=this@entry=0x7f9dd2860000, op=..., osdmap=...) at osd/OSD.cc:6113
#10 0x00007f9dc7953fd8 in OSD::dispatch_session_waiting (this=this@entry=0x7f9dd2860000, session=session@entry=0x7f9dd37e8000, osdmap=...) at osd/OSD.cc:5751
#11 0x00007f9dc7954324 in OSD::ms_fast_dispatch (this=0x7f9dd2860000, m=<optimized out>) at osd/OSD.cc:5861
#12 0x00007f9dc8056d86 in ms_fast_dispatch (m=0x7f9dd5180c00, this=0x7f9dd26c2000) at ./msg/Messenger.h:555
#13 DispatchQueue::fast_dispatch (this=0x7f9dd26c21d0, m=m@entry=0x7f9dd5180c00) at msg/simple/DispatchQueue.cc:71
#14 0x00007f9dc8087d22 in Pipe::DelayedDelivery::entry (this=0x7f9dd2bc7d40) at msg/simple/Pipe.cc:226
#15 0x00007f9dc6260182 in start_thread (arg=0x7f9d9ef4d700) at pthread_create.c:312
#16 0x00007f9dc438e47d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

  waiting on pipe_lock
  holding session_dispatch_lock

/a/sage-2016-04-06_19:36:52-rados-wip-sage-testing-distro-basic-smithi/112908

Actions

Also available in: Atom PDF