Actions
Bug #50931
closedrbd-mirror: segfault on snapshot replayer on shutdown
% Done:
0%
Source:
Tags:
Backport:
octopus,pacific
Regression:
No
Severity:
3 - minor
Reviewed:
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.
Actions