Skip to content

quincy: cephfs_mirror: fix crash in update_fs_mirrors()#57452

Merged
vshankar merged 1 commit intoceph:quincyfrom
joscollin:wip-65991-quincy
Jan 2, 2025
Merged

quincy: cephfs_mirror: fix crash in update_fs_mirrors()#57452
vshankar merged 1 commit intoceph:quincyfrom
joscollin:wip-65991-quincy

Conversation

@joscollin
Copy link
Copy Markdown
Member

@joscollin joscollin commented May 13, 2024

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: #57452

…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 quincy milestone May 13, 2024
@joscollin joscollin changed the title quincy: cephfs_mirror: check m_instance_watcher and m_mirror_watcher before using them quincy: cephfs_mirror: fix crash in update_fs_mirrors() May 13, 2024
@joscollin joscollin requested a review from a team June 20, 2024 07:48
@joscollin
Copy link
Copy Markdown
Member Author

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

@github-actions
Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions bot added the stale label Nov 26, 2024
@joscollin joscollin removed the stale label Nov 27, 2024
Copy link
Copy Markdown
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

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

@vshankar vshankar merged commit af654dc into ceph:quincy Jan 2, 2025
@joscollin joscollin deleted the wip-65991-quincy branch January 6, 2025 05:32
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.

3 participants