Project

General

Profile

Actions

Bug #76071

closed
MH SK

rgw/cloud-restore: SIGSEGV in RGWIndexCompletionManager::create_completion from RestoreWorker

Bug #76071: rgw/cloud-restore: SIGSEGV in RGWIndexCompletionManager::create_completion from RestoreWorker

Added by Matthew Heler 8 months ago. Updated 29 days ago.

Status:
Backporting
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
restore
Fixed In:
v21.0.0-1039-g322c29ee5a
Released In:
v21.2.0~608
Upkeep Timestamp:
2026-11-04T01:11:24+00:00

Description

radosgw appears to segfauls at shutdown while a cloud-tier restore is in flight

2026-04-08T13:07:07.063+0000 7fe0311906c0 -1 ** Caught signal (Segmentation fault) *
in thread 7fe0311906c0 thread_name:rgw_restore

ceph version 20.2.0-647323 (281ea3522bbf8efa0d7664e2a54705a2eead6594) tentacle (stable - None)
1: /lib/x86_64-linux-gnu/libc.so.6(+0x45330) [0x7fe45a399330]
2: (RGWIndexCompletionManager::create_completion(rgw_obj const&, RGWModifyOp, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, rgw_bucket_entry_ver&, rgw_obj_index_key const&, rgw_bucket_dir_entry_meta&, std::__cxx11::list<rgw_obj_index_key, std::allocator<rgw_obj_index_key> >, bool, unsigned short, rgw_zone_set, complete_op_data**)+0x303) [0x5557d57bd043]
3: (RGWRados::cls_obj_complete_op(RGWRados::BucketShard&, rgw_obj const&, RGWModifyOp, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, long, unsigned long, rgw_bucket_dir_entry&, RGWObjCategory, std::__cxx11::list<rgw_obj_index_key, std::allocator<rgw_obj_index_key> >, unsigned short, rgw_zone_set, bool)+0x832) [0x5557d5809672]
4: (RGWRados::Bucket::UpdateIndex::complete(DoutPrefixProvider const*, long, unsigned long, unsigned long, unsigned long, std::chrono::time_point<ceph::real_clock, std::chrono::duration<unsigned long, std::ratio<1l, 1000000000l> > > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ACLOwner const&, RGWObjCategory, std::__cxx11::list<rgw_obj_index_key, std::allocator<rgw_obj_index_key> >, optional_yield, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, bool, bool)+0x240) [0x5557d57e23b0]
5: (RGWRados::Object::Write::_do_write_meta(unsigned long, unsigned long, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, ceph::buffer::v15_2_0::list, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ceph::buffer::v15_2_0::list> > >&, bool, void*, req_context const&, opentelemetry::v1::trace::SpanContext&, bool)+0xf2d) [0x5557d57d1b1d]
6: (RGWRados::Object::Write::write_meta(unsigned long, unsigned long, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, ceph::buffer::v15_2_0::list, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ceph::buffer::v15_2_0::list> > >&, req_context const&, opentelemetry::v1::trace::SpanContext&, bool)+0x43a) [0x5557d57d2a8a]
7: (rgw::putobj::AtomicObjectProcessor::complete(unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::chrono::time_point<ceph::real_clock, std::chrono::duration<unsigned long, std::ratio<1l, 1000000000l> > >, std::chrono::time_point<ceph::real_clock, std::chrono::duration<unsigned long, std::ratio<1l, 1000000000l> > >, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, ceph::buffer::v15_2_0::list, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ceph::buffer::v15_2_0::list> > >&, std::optional<rgw::cksum::Cksum> const&, std::chrono::time_point<ceph::real_clock, std::chrono::duration<unsigned long, std::ratio<1l, 1000000000l> > >, char const, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const*, rgw_zone_set*, bool*, req_context const&, unsigned int)+0x397) [0x5557d57b2c17]
8: (RGWRados::restore_obj_from_cloud(RGWLCCloudTierCtx&, RGWObjectCtx&, RGWBucketInfo&, rgw_obj const&, RGWObjTier&, std::optional<unsigned long>, bool&, DoutPrefixProvider const*, optional_yield)+0x20fa) [0x5557d57f216a]
9: (rgw::sal::RadosObject::restore_obj_from_cloud(rgw::sal::Bucket*, rgw::sal::PlacementTier*, ceph::common::CephContext*, std::optional<unsigned long>, bool&, DoutPrefixProvider const*, optional_yield)+0x9e8) [0x5557d585cc08]
10: (rgw::restore::Restore::process_restore_entry(rgw::restore::RestoreEntry&, optional_yield)+0x1323) [0x5557d5a708e3]
11: (rgw::restore::Restore::process(int, int, optional_yield)+0x664) [0x5557d5a72cc4]
12: (rgw::restore::Restore::process(rgw::restore::Restore::RestoreWorker*, optional_yield)+0xa3) [0x5557d5a73923]
13: (rgw::restore::Restore::RestoreWorker::entry()+0x1e8) [0x5557d5a73b68]
14: /lib/x86_64-linux-gnu/libc.so.6(+0x9caa4) [0x7fe45a3f0aa4]
15: /lib/x86_64-linux-gnu/libc.so.6(+0x129c6c) [0x7fe45a47dc6c]
NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.

Related issues 2 (1 open — 1 closed)

Related to rgw - Bug #74067: lifecycle: RGWLC processing crashes on null RGWIndexCompletionManagerBackportingCasey Bodley

Actions
Copied to rgw - Backport #76356: tentacle: rgw/cloud-restore: SIGSEGV in RGWIndexCompletionManager::create_completion from RestoreWorkerFix Under ReviewSoumya Koduri

Actions

CB Updated by Casey Bodley 8 months ago Actions #3

  • Related to Bug #74067: lifecycle: RGWLC processing crashes on null RGWIndexCompletionManager added

MH Updated by Matthew Heler 8 months ago Actions #4

  • Affected Versions v20.2.1 added

MH Updated by Matthew Heler 8 months ago Actions #5

Casey Bodley wrote in #note-2:

Vidushi Mishra wrote in #note-1:

similar to downstream bz https://bugzilla.redhat.com/show_bug.cgi?id=2417952

thanks @Vidushi Mishra, i see that bz was resolved by https://github.com/ceph/ceph/pull/66487 for https://tracker.ceph.com/issues/74067. it looks like that same fix should have resolved this crash with restore on shutdown

@Matthew Heler can you confirm whether your branch under test contains https://github.com/ceph/ceph/commit/06188d0b2057e3242e2f69824bf52f23ccf868fa?

I do not have this fix, the backport PR for it is in https://github.com/ceph/ceph/pull/66520 which is not yet merged or made it into a tentacle release.

Earlier this morning I was speaking with Soumya about this, and she was going to propose a PR based on https://github.com/soumyakoduri/ceph/commit/cf99589b9dda3230e367cc112c415680b1f8a38b

However if that PR fixes that issue then we may be good here.

SK Updated by Soumya Koduri 8 months ago Actions #6

Thanks Casey and Vidushi! yes, https://github.com/ceph/ceph/pull/66520 did fix this particular crash. However restore worker also depends on object expirer process (to add the temporary restored entries to its hints' list). With some debug code, I could reproduce below crash on the latest main similar to the one reported -

 ceph version 21.0.0-213-g92778bc689b (92778bc689bff98ba97f3328058d50fa8f70b8de) umbrella (dev - Debug)
 1: /home/skoduri/Documents/IBM/lancedb/lancedb-code/ceph/build/bin/radosgw(+0xc0c245) [0x557e856a9245]
 2: /lib64/libc.so.6(+0x19c30) [0x7f524c539c30]
 3: (RGWObjExpStore::objexp_hint_add(DoutPrefixProvider const*, std::chrono::time_point<ceph::real_clock, std::chrono::duration<unsigned long, std::ratio<1l, 1000000000l> > > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, rgw_obj_index_key const&)+0x1b1) [0x557e8547b057]
 4: (RGWRados::Object::Write::_do_write_meta(unsigned long, unsigned long, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, ceph::buffer::v15_2_0::list, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ceph::buffer::v15_2_0::list> > >&, bool, void*, req_context const&, opentelemetry::v1::trace::SpanContext&, bool)+0x16d1) [0x557e84f6e97d]
 5: (RGWRados::Object::Write::write_meta(unsigned long, unsigned long, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, ceph::buffer::v15_2_0::list, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ceph::buffer::v15_2_0::list> > >&, req_context const&, opentelemetry::v1::trace::SpanContext&, bool)+0x12f) [0x557e84f6f06f]
 6: (rgw::putobj::AtomicObjectProcessor::complete(unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::chrono::time_point<ceph::real_clock, std::chrono::duration<unsigned long, std::ratio<1l, 1000000000l> > >*, std::chrono::time_point<ceph::real_clock, std::chrono::duration<unsigned long, std::ratio<1l, 1000000000l> > >, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, ceph::buffer::v15_2_0::list, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ceph::buffer::v15_2_0::list> > >&, std::optional<rgw::cksum::Cksum> const&, std::chrono::time_point<ceph::real_clock, std::chrono::duration<unsigned long, std::ratio<1l, 1000000000l> > >, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const*, rgw_zone_set*, bool*, req_context const&, unsigned int)+0x242) [0x557e854867c6]
 7: (RGWRados::restore_obj_from_cloud(RGWLCCloudTierCtx&, RGWObjectCtx&, RGWBucketInfo&, rgw_obj const&, RGWObjTier&, std::optional<unsigned long>, bool&, unsigned long&, DoutPrefixProvider const*, optional_yield)+0x1fa2) [0x557e84f7b77c]
 8: (rgw::sal::RadosObject::restore_obj_from_cloud(rgw::sal::Bucket*, rgw::sal::PlacementTier*, ceph::common::CephContext*, std::optional<unsigned long>, bool&, unsigned long&, DoutPrefixProvider const*, optional_yield)+0x928) [0x557e84fe45e2]
 9: (rgw::restore::Restore::process_restore_entry(rgw::restore::RestoreEntry&, optional_yield)+0xd69) [0x557e851c41f7]
 10: (rgw::restore::Restore::process(int, int, optional_yield)+0x7ad) [0x557e851c53f5]
 11: (rgw::restore::Restore::process(rgw::restore::Restore::RestoreWorker*, optional_yield)+0x54) [0x557e851c5d30]
 12: (rgw::restore::Restore::RestoreWorker::entry()+0x1ab) [0x557e851c5eef]
 13: (Thread::entry_wrapper()+0x2f) [0x7f5259e7c2cd]
 14: (Thread::_entry_func(void*)+0x9) [0x7f5259e7c2df]
 15: /lib64/libc.so.6(+0x711d4) [0x7f524c5911d4]
 16: /lib64/libc.so.6(+0xf3cec) [0x7f524c613cec]

https://github.com/ceph/ceph/pull/68452 should fix the same.

MH Updated by Matthew Heler 8 months ago Actions #7

  • Pull request ID set to 68452

CB Updated by Casey Bodley 7 months ago Actions #8

  • Status changed from New to Fix Under Review
  • Assignee set to Soumya Koduri
  • Tags (freeform) set to restore

SK Updated by Soumya Koduri 7 months ago Actions #9

  • Backport set to tentacle

UB Updated by Upkeep Bot 7 months ago Actions #10

  • Status changed from Fix Under Review to Pending Backport
  • Merge Commit set to 322c29ee5a9e6529391e668c189198d64a1d1da3
  • Fixed In set to v21.0.0-1039-g322c29ee5a
  • Upkeep Timestamp set to 2026-04-30T11:09:54+00:00

UB Updated by Upkeep Bot 7 months ago Actions #11

  • Copied to Backport #76356: tentacle: rgw/cloud-restore: SIGSEGV in RGWIndexCompletionManager::create_completion from RestoreWorker added

UB Updated by Upkeep Bot 7 months ago Actions #12

  • Tags (freeform) changed from restore to restore backport_processed

SK Updated by Soumya Koduri 7 months ago Actions #13

  • Tags set to cloud-restore

UB Updated by Upkeep Bot 3 months ago Actions #14

  • Status changed from Pending Backport to Backporting
  • Upkeep Timestamp changed from 2026-04-30T11:09:54+00:00 to 2026-08-27T18:31:19+00:00

UB Updated by Upkeep Bot 3 months ago Actions #15

  • Tags (freeform) changed from restore backport_processed to restore
  • Upkeep Timestamp changed from 2026-08-27T18:31:19+00:00 to 2026-08-28T01:51:34+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #16

  • Released In set to v21.2.0~607
  • Upkeep Timestamp changed from 2026-08-28T01:51:34+00:00 to 2026-10-24T01:23:36+00:00

UB Updated by Upkeep Bot 29 days ago Actions #17

  • Released In changed from v21.2.0~607 to v21.2.0~608
  • Upkeep Timestamp changed from 2026-10-24T01:23:36+00:00 to 2026-11-04T01:11:24+00:00
Actions

Also available in: PDF Atom