Project

General

Profile

Actions

Bug #55318

closed

ceph::mutex debugging is disabled in "make check" builds

Added by Ilya Dryomov about 2 years ago. Updated almost 2 years ago.

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

0%

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

Description

Commit 403f1ec2888a ("cmake: make "WITH_CEPH_DEBUG_MUTEX" depend on CMAKE_BUILD_TYPE") made WITH_CEPH_DEBUG_MUTEX depend on build type being set to Debug, in CMakeLists.txt. However, if CMAKE_BUILD_TYPE isn't specified by the user, we may still set it to Debug later, in src/CMakeLists.txt, and in that case WITH_CEPH_DEBUG_MUTEX doesn't get enabled. The result is that

$ do_cmake.sh -DCMAKE_BUILD_TYPE=Debug ...

debug builds have mutex debugging enabled, while

$ do_cmake.sh ...

builds, which are supposed to be the same, don't. Jenkins builders don't pass -DCMAKE_BUILD_TYPE=Debug so that commit effectively turned off all ceph_mutex_is_locked* asserts in "make check" (which is where they are needed the most).


Related issues 2 (0 open2 closed)

Related to rbd - Bug #55317: [test] add_event_after() expects an externally-provided mutex to be heldResolvedIlya Dryomov

Actions
Copied to devops - Backport #55341: quincy: ceph::mutex debugging is disabled in "make check" buildsResolvedIlya DryomovActions
Actions #1

Updated by Ilya Dryomov about 2 years ago

  • Status changed from In Progress to Fix Under Review
  • Backport set to quincy
  • Pull request ID set to 45898
Actions #2

Updated by Ilya Dryomov about 2 years ago

  • Related to Bug #55317: [test] add_event_after() expects an externally-provided mutex to be held added
Actions #3

Updated by Ilya Dryomov about 2 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #4

Updated by Backport Bot about 2 years ago

  • Copied to Backport #55341: quincy: ceph::mutex debugging is disabled in "make check" builds added
Actions #5

Updated by Ilya Dryomov almost 2 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF