Project

General

Profile

Actions

Bug #50931

closed

rbd-mirror: segfault on snapshot replayer on shutdown

Added by Arthur Outhenin-Chalandre almost 3 years ago. Updated almost 3 years ago.

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

0%

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

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.


Related issues 2 (0 open2 closed)

Copied to rbd - Backport #50941: octopus: rbd-mirror: segfault on snapshot replayer on shutdownResolvedIlya DryomovActions
Copied to rbd - Backport #50942: pacific: rbd-mirror: segfault on snapshot replayer on shutdownResolvedIlya DryomovActions
Actions

Also available in: Atom PDF