Project

General

Profile

Bug #56480

std::shared_mutex deadlocks on Windows

Added by Lucian Petrut over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
common
Target version:
% Done:

100%

Source:
Tags:
Backport:
quincy pacific
Regression:
No
Severity:
3 - minor
Reviewed:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The winpthreads shared mutex implementation causes deadlocks on Windows [1][2]. Specifically, async RBD IO calls are hanging. This also prevents the images from being unmounted.

One possible workaround would be to use boost::shared_mutex with MinGW builds.

[1] https://github.com/cloudbase/wnbd/issues/63#issuecomment-1161547102
[2] https://github.com/msys2/MINGW-packages/issues/3319
Trace: https://pastebin.com/raw/i3jpTyS3

i3jpTyS3 (92.4 KB) Ilya Dryomov, 07/14/2022 07:01 PM


Related issues

Copied to Ceph - Backport #57053: pacific: std::shared_mutex deadlocks on Windows Resolved
Copied to Ceph - Backport #57054: quincy: std::shared_mutex deadlocks on Windows Resolved

History

#1 Updated by Ilya Dryomov over 1 year ago

  • Subject changed from shared mutex deadlocks on Windows to std::shared_mutex deadlocks on Windows
  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 46989

#2 Updated by Ilya Dryomov over 1 year ago

Adding gdb stack trace dump as an attachment in case pastebin expires.

#3 Updated by Lucian Petrut over 1 year ago

  • Status changed from Fix Under Review to Pending Backport

#4 Updated by Lucian Petrut over 1 year ago

  • Copied to Backport #57053: pacific: std::shared_mutex deadlocks on Windows added

#5 Updated by Backport Bot over 1 year ago

  • Copied to Backport #57054: quincy: std::shared_mutex deadlocks on Windows added

#6 Updated by Backport Bot over 1 year ago

  • Tags set to backport_processed

#7 Updated by Konstantin Shalygin over 1 year ago

  • Status changed from Pending Backport to Resolved
  • % Done changed from 90 to 100
  • Tags deleted (backport_processed)

Also available in: Atom PDF