Skip to content

reef: cephfs_mirror: fix crash in update_fs_mirrors()#57451

Merged
lxbsz merged 1 commit intoceph:reeffrom
joscollin:wip-65990-reef
Jul 4, 2024
Merged

reef: cephfs_mirror: fix crash in update_fs_mirrors()#57451
lxbsz merged 1 commit intoceph:reeffrom
joscollin:wip-65990-reef

Conversation

@joscollin
Copy link
Member

Fixes the crash:

std::scoped_lock<std::mutex>::scoped_lock (__m=..., this=<optimized out>, this=<optimized out>, __m=...) at /usr/include/c++/11/mutex:655
cephfs::mirror::MirrorWatcher::is_failed (this=0x0) at /usr/src/debug/ceph-19.0.0-1578.g3d482f42.el9.x86_64/src/tools/cephfs_mirror/MirrorWatcher.h:56
cephfs::mirror::FSMirror::is_failed (this=0x557478284340) at /usr/src/debug/ceph-19.0.0-1578.g3d482f42.el9.x86_64/src/tools/cephfs_mirror/FSMirror.h:52
cephfs::mirror::Mirror::update_fs_mirrors (this=0x5574773c3e60) at /usr/src/debug/ceph-19.0.0-1578.g3d482f42.el9.x86_64/src/tools/cephfs_mirror/Mirror.cc:515

Fixes: https://tracker.ceph.com/issues/64751
(cherry picked from commit 5b8b9c2)

…sing them

Fixes the crash:
```
std::scoped_lock<std::mutex>::scoped_lock (__m=..., this=<optimized out>, this=<optimized out>, __m=...) at /usr/include/c++/11/mutex:655
cephfs::mirror::MirrorWatcher::is_failed (this=0x0) at /usr/src/debug/ceph-19.0.0-1578.g3d482f42.el9.x86_64/src/tools/cephfs_mirror/MirrorWatcher.h:56
cephfs::mirror::FSMirror::is_failed (this=0x557478284340) at /usr/src/debug/ceph-19.0.0-1578.g3d482f42.el9.x86_64/src/tools/cephfs_mirror/FSMirror.h:52
cephfs::mirror::Mirror::update_fs_mirrors (this=0x5574773c3e60) at /usr/src/debug/ceph-19.0.0-1578.g3d482f42.el9.x86_64/src/tools/cephfs_mirror/Mirror.cc:515

```

Fixes: https://tracker.ceph.com/issues/64751
Signed-off-by: Jos Collin <jcollin@redhat.com>
(cherry picked from commit 5b8b9c2)
@github-actions github-actions bot added the cephfs Ceph File System label May 13, 2024
@github-actions github-actions bot added this to the reef milestone May 13, 2024
@joscollin joscollin changed the title reef: cephfs_mirror: check m_instance_watcher and m_mirror_watcher before using them reef: cephfs_mirror: fix crash in update_fs_mirrors() May 13, 2024
@joscollin joscollin added the wip-jcollin-testing-reef1 Assigned for review label Jun 25, 2024
@joscollin
Copy link
Member Author

This PR is under test in https://tracker.ceph.com/issues/66685.

Copy link
Member

@lxbsz lxbsz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The qa test failures are not related, please see https://tracker.ceph.com/issues/66685#note-3.

@lxbsz lxbsz merged commit 1fdc054 into ceph:reef Jul 4, 2024
@joscollin joscollin deleted the wip-65990-reef branch July 4, 2024 03:50
@joscollin joscollin removed the wip-jcollin-testing-reef1 Assigned for review label Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix cephfs Ceph File System

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants