Project

General

Profile

Actions

Bug #56480

closed

std::shared_mutex deadlocks on Windows

Added by Lucian Petrut almost 2 years 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


Files

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

Related issues 2 (0 open2 closed)

Copied to Ceph - Backport #57053: pacific: std::shared_mutex deadlocks on WindowsResolvedLucian PetrutActions
Copied to Ceph - Backport #57054: quincy: std::shared_mutex deadlocks on WindowsResolvedLucian PetrutActions
Actions

Also available in: Atom PDF