Bug #50931
closedrbd-mirror: segfault on snapshot replayer on shutdown
0%
Description
I had an issue in which the Snapshot Replayer (in `src/tools/rbd_mirror/image_replayer/snapshot/Replayer.cc`) init returned before the call on `register_local_update_watcher` with an error (this other issue will be followed up in another issue on the tracker). There are multiple error case in the init flow but if any error arise in it, the pointer `m_update_watch_ctx` will not be initialized.
At the shutdown phase, the `m_update_watch_ctx` will be freed and this makes the rbd-mirror daemon segfaults as it contains an uninitialized value.
Updated by Arthur Outhenin-Chalandre almost 3 years ago
Here is my PR fixing the issue: https://github.com/ceph/ceph/pull/41480.
Updated by Ilya Dryomov almost 3 years ago
- Status changed from New to Fix Under Review
- Assignee set to Arthur Outhenin-Chalandre
- Pull request ID set to 41480
Updated by Ilya Dryomov almost 3 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Backport Bot almost 3 years ago
- Copied to Backport #50941: octopus: rbd-mirror: segfault on snapshot replayer on shutdown added
Updated by Backport Bot almost 3 years ago
- Copied to Backport #50942: pacific: rbd-mirror: segfault on snapshot replayer on shutdown added
Updated by Loïc Dachary almost 3 years ago
- Status changed from Pending Backport to Resolved
While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".