https://tracker.ceph.com/
https://tracker.ceph.com/favicon.ico
2018-05-04T11:49:43Z
Ceph
rbd - Bug #24008: [rbd-mirror] potential races during PoolReplayer shut-down
https://tracker.ceph.com/issues/24008?journal_id=112618
2018-05-04T11:49:43Z
Jason Dillaman
dillaman@redhat.com
<ul></ul><p>... also affects InstanceWatcher shut down:</p>
<pre>
#0 0x00007f5486266269 in raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/pt-raise.c:35
#1 0x0000559debee8abe in reraise_fatal (signum=6) at /build/ceph-13.0.2-2060-gde9606d/src/global/signal_handler.cc:74
#2 handle_fatal_signal (signum=6) at /build/ceph-13.0.2-2060-gde9606d/src/global/signal_handler.cc:138
#3 <signal handler called>
#4 0x00007f5485ab4428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#5 0x00007f5485ab602a in __GI_abort () at abort.c:89
#6 0x00007f5486756250 in ceph::__ceph_assert_fail (assertion=<optimized out>, file=<optimized out>, line=<optimized out>, func=<optimized out>) at /build/ceph-13.0.2-2060-gde9606d/src/common/assert.cc:66
#7 0x00007f54867562c7 in ceph::__ceph_assert_fail (ctx=...) at /build/ceph-13.0.2-2060-gde9606d/src/common/assert.cc:71
#8 0x0000559debc30fe5 in rbd::mirror::InstanceWatcher<librbd::ImageCtx>::~InstanceWatcher (this=0x559ded30dff0, __in_chrg=<optimized out>)
at /build/ceph-13.0.2-2060-gde9606d/src/tools/rbd_mirror/InstanceWatcher.cc:337
#9 0x0000559debc31009 in rbd::mirror::InstanceWatcher<librbd::ImageCtx>::~InstanceWatcher (this=0x559ded30dff0, __in_chrg=<optimized out>)
at /build/ceph-13.0.2-2060-gde9606d/src/tools/rbd_mirror/InstanceWatcher.cc:340
#10 0x0000559debbf8132 in std::default_delete<rbd::mirror::InstanceWatcher<librbd::ImageCtx> >::operator() (this=<optimized out>, __ptr=<optimized out>) at /usr/include/c++/7/bits/unique_ptr.h:78
#11 std::unique_ptr<rbd::mirror::InstanceWatcher<librbd::ImageCtx>, std::default_delete<rbd::mirror::InstanceWatcher<librbd::ImageCtx> > >::reset (__p=<optimized out>, this=0x559ded0f2998)
at /usr/include/c++/7/bits/unique_ptr.h:376
#12 rbd::mirror::PoolReplayer<librbd::ImageCtx>::shut_down (this=0x559ded0f2740) at /build/ceph-13.0.2-2060-gde9606d/src/tools/rbd_mirror/PoolReplayer.cc:384
#13 0x0000559debbff065 in rbd::mirror::PoolReplayer<librbd::ImageCtx>::~PoolReplayer (this=0x559ded0f2740, __in_chrg=<optimized out>) at /build/ceph-13.0.2-2060-gde9606d/src/tools/rbd_mirror/PoolReplayer.cc:250
#14 0x0000559debbf324d in std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> >::operator() (this=<optimized out>, __ptr=0x559ded0f2740) at /usr/include/c++/7/bits/unique_ptr.h:78
#15 std::unique_ptr<rbd::mirror::PoolReplayer<librbd::ImageCtx>, std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> > >::~unique_ptr (this=0x559ded30eb28, __in_chrg=<optimized out>)
at /usr/include/c++/7/bits/unique_ptr.h:268
#16 std::pair<std::pair<long, rbd::mirror::peer_t> const, std::unique_ptr<rbd::mirror::PoolReplayer<librbd::ImageCtx>, std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> > > >::~pair (
this=0x559ded30eac0, __in_chrg=<optimized out>) at /usr/include/c++/7/bits/stl_pair.h:198
#17 __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<std::pair<long, rbd::mirror::peer_t> const, std::unique_ptr<rbd::mirror::PoolReplayer<librbd::ImageCtx>, std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> > > > > >::destroy<std::pair<std::pair<long, rbd::mirror::peer_t> const, std::unique_ptr<rbd::mirror::PoolReplayer<librbd::ImageCtx>, std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> > > > > (this=<optimized out>, __p=<optimized out>) at /usr/include/c++/7/ext/new_allocator.h:140
#18 std::allocator_traits<std::allocator<std::_Rb_tree_node<std::pair<std::pair<long, rbd::mirror::peer_t> const, std::unique_ptr<rbd::mirror::PoolReplayer<librbd::ImageCtx>, std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> > > > > > >::destroy<std::pair<std::pair<long, rbd::mirror::peer_t> const, std::unique_ptr<rbd::mirror::PoolReplayer<librbd::ImageCtx>, std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> > > > > (__a=..., __p=<optimized out>) at /usr/include/c++/7/bits/alloc_traits.h:487
#19 std::_Rb_tree<std::pair<long, rbd::mirror::peer_t>, std::pair<std::pair<long, rbd::mirror::peer_t> const, std::unique_ptr<rbd::mirror::PoolReplayer<librbd::ImageCtx>, std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> > > >, std::_Select1st<std::pair<std::pair<long, rbd::mirror::peer_t> const, std::unique_ptr<rbd::mirror::PoolReplayer<librbd::ImageCtx>, std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> > > > >, std::less<std::pair<long, rbd::mirror::peer_t> >, std::allocator<std::pair<std::pair<long, rbd::mirror::peer_t> const, std::unique_ptr<rbd::mirror::PoolReplayer<librbd::ImageCtx>, std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> > > > > >::_M_destroy_node (this=0x559ded044898, __p=0x559ded30eaa0) at /usr/include/c++/7/bits/stl_tree.h:650
#20 std::_Rb_tree<std::pair<long, rbd::mirror::peer_t>, std::pair<std::pair<long, rbd::mirror::peer_t> const, std::unique_ptr<rbd::mirror::PoolReplayer<librbd::ImageCtx>, std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> > > >, std::_Select1st<std::pair<std::pair<long, rbd::mirror::peer_t> const, std::unique_ptr<rbd::mirror::PoolReplayer<librbd::ImageCtx>, std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> > > > >, std::less<std::pair<long, rbd::mirror::peer_t> >, std::allocator<std::pair<std::pair<long, rbd::mirror::peer_t> const, std::unique_ptr<rbd::mirror::PoolReplayer<librbd::ImageCtx>, std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> > > > > >::_M_drop_node (this=0x559ded044898, __p=0x559ded30eaa0) at /usr/include/c++/7/bits/stl_tree.h:658
#21 std::_Rb_tree<std::pair<long, rbd::mirror::peer_t>, std::pair<std::pair<long, rbd::mirror::peer_t> const, std::unique_ptr<rbd::mirror::PoolReplayer<librbd::ImageCtx>, std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> > > >, std::_Select1st<std::pair<std::pair<long, rbd::mirror::peer_t> const, std::unique_ptr<rbd::mirror::PoolReplayer<librbd::ImageCtx>, std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> > > > >, std::less<std::pair<long, rbd::mirror::peer_t> >, std::allocator<std::pair<std::pair<long, rbd::mirror::peer_t> const, std::unique_ptr<rbd::mirror::PoolReplayer<librbd::ImageCtx>, std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> > > > > >::_M_erase (this=this@entry=0x559ded044898, __x=0x559ded30eaa0) at /usr/include/c++/7/bits/stl_tree.h:1858
#22 0x0000559debbf1530 in std::_Rb_tree<std::pair<long, rbd::mirror::peer_t>, std::pair<std::pair<long, rbd::mirror::peer_t> const, std::unique_ptr<rbd::mirror::PoolReplayer<librbd::ImageCtx>, std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> > > >, std::_Select1st<std::pair<std::pair<long, rbd::mirror::peer_t> const, std::unique_ptr<rbd::mirror::PoolReplayer<librbd::ImageCtx>, std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> > > > >, std::less<std::pair<long, rbd::mirror::peer_t> >, std::allocator<std::pair<std::pair<long, rbd::mirror::peer_t> const, std::unique_ptr<rbd::mirror::PoolReplayer<librbd::ImageCtx>, std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> > > > > >::~_Rb_tree (this=0x559ded044898, __in_chrg=<optimized out>) at /usr/include/c++/7/bits/stl_tree.h:949
#23 std::map<std::pair<long, rbd::mirror::peer_t>, std::unique_ptr<rbd::mirror::PoolReplayer<librbd::ImageCtx>, std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> > >, std::less<std::pair<long, rbd::mirror::peer_t> >, std::allocator<std::pair<std::pair<long, rbd::mirror::peer_t> const, std::unique_ptr<rbd::mirror::PoolReplayer<librbd::ImageCtx>, std::default_delete<rbd::mirror::PoolReplayer<librbd::ImageCtx> > > > > >::~map (this=0x559ded044898, __in_chrg=<optimized out>) at /usr/include/c++/7/bits/stl_map.h:294
#24 rbd::mirror::Mirror::~Mirror (this=0x559ded0447a0, __in_chrg=<optimized out>) at /build/ceph-13.0.2-2060-gde9606d/src/tools/rbd_mirror/Mirror.cc:213
#25 0x0000559debbe0770 in main (argc=<optimized out>, argv=<optimized out>) at /build/ceph-13.0.2-2060-gde9606d/src/tools/rbd_mirror/main.cc:82
</pre>
rbd - Bug #24008: [rbd-mirror] potential races during PoolReplayer shut-down
https://tracker.ceph.com/issues/24008?journal_id=112619
2018-05-04T11:50:06Z
Jason Dillaman
dillaman@redhat.com
<ul><li><strong>Subject</strong> changed from <i>[rbd-mirror] potential race between shut-down and image sync request</i> to <i>[rbd-mirror] potential races during PoolReplayer shut-down</i></li></ul>
rbd - Bug #24008: [rbd-mirror] potential races during PoolReplayer shut-down
https://tracker.ceph.com/issues/24008?journal_id=112620
2018-05-04T11:51:08Z
Jason Dillaman
dillaman@redhat.com
<ul><li><strong>Backport</strong> set to <i>luminous</i></li></ul>
rbd - Bug #24008: [rbd-mirror] potential races during PoolReplayer shut-down
https://tracker.ceph.com/issues/24008?journal_id=112632
2018-05-04T13:49:58Z
Jason Dillaman
dillaman@redhat.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Fix Under Review</i></li></ul><p><strong>PR</strong>: <a class="external" href="https://github.com/ceph/ceph/pull/21817">https://github.com/ceph/ceph/pull/21817</a></p>
rbd - Bug #24008: [rbd-mirror] potential races during PoolReplayer shut-down
https://tracker.ceph.com/issues/24008?journal_id=112978
2018-05-10T11:46:52Z
Jason Dillaman
dillaman@redhat.com
<ul><li><strong>Status</strong> changed from <i>Fix Under Review</i> to <i>Pending Backport</i></li></ul>
rbd - Bug #24008: [rbd-mirror] potential races during PoolReplayer shut-down
https://tracker.ceph.com/issues/24008?journal_id=113000
2018-05-10T16:29:25Z
Nathan Cutler
ncutler@suse.cz
<ul><li><strong>Copied to</strong> <i><a class="issue tracker-9 status-3 priority-4 priority-default closed" href="/issues/24086">Backport #24086</a>: luminous: [rbd-mirror] potential races during PoolReplayer shut-down</i> added</li></ul>
rbd - Bug #24008: [rbd-mirror] potential races during PoolReplayer shut-down
https://tracker.ceph.com/issues/24008?journal_id=114931
2018-06-11T14:17:14Z
Jason Dillaman
dillaman@redhat.com
<ul><li><strong>Status</strong> changed from <i>Pending Backport</i> to <i>Resolved</i></li></ul>