Project

General

Profile

Actions

Bug #62063

closed
CB OO

quincy: notification tests fail on 'radosgw-admin -n client.0 user rm --uid foo.client.0 --purge-data --cluster ceph'

Bug #62063: quincy: notification tests fail on 'radosgw-admin -n client.0 user rm --uid foo.client.0 --purge-data --cluster ceph'

Added by Casey Bodley over 3 years ago. Updated about 1 month ago.

Status:
Resolved
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):
Fixed In:
v20.3.0-5093-g2c04247766
Released In:
v21.2.0~1336
Upkeep Timestamp:
2026-10-24T02:02:28+00:00
Tags:

Description

the 'user rm' command fails during cleanup:

2023-07-18T05:57:45.504 DEBUG:teuthology.orchestra.run.smithi092:> adjust-ulimits ceph-coverage /home/ubuntu/cephtest/archive/coverage radosgw-admin -n client.0 user rm --uid foo.client.0 --purge-data --cluster ceph
2023-07-18T05:57:45.592 INFO:teuthology.orchestra.run.smithi092.stderr:ignoring --setuser ceph since I am not root
2023-07-18T05:57:45.593 INFO:teuthology.orchestra.run.smithi092.stderr:ignoring --setgroup ceph since I am not root
2023-07-18T06:47:45.612 INFO:teuthology.orchestra.run.smithi092.stderr:failed to fetch mon config (--no-mon-config to skip)
2023-07-18T06:47:45.613 DEBUG:teuthology.orchestra.run:got remote process result: 1

but the real issue appears to be an earlier crash from radosgw:

2023-07-18T05:44:38.067 INFO:tasks.rgw.client.0.smithi092.stdout:*** Caught signal (Segmentation fault) **
2023-07-18T05:44:38.067 INFO:tasks.rgw.client.0.smithi092.stdout: in thread 7f29832f8700 thread_name:radosgw
2023-07-18T05:44:38.070 INFO:tasks.rgw.client.0.smithi092.stdout: ceph version 18.0.0-4979-g5f1dece0 (5f1dece0019cdc7070e1396837e4fc3ade471a1d) reef (dev)
2023-07-18T05:44:38.070 INFO:tasks.rgw.client.0.smithi092.stdout: 1: /lib64/libpthread.so.0(+0x12cf0) [0x7f2ab62cacf0]
2023-07-18T05:44:38.071 INFO:tasks.rgw.client.0.smithi092.stdout: 2: radosgw(+0x941371) [0x55b745c75371]
2023-07-18T05:44:38.071 INFO:tasks.rgw.client.0.smithi092.stdout: 3: (RGWObjManifest::~RGWObjManifest()+0x1d3) [0x55b745cceb13]
2023-07-18T05:44:38.071 INFO:tasks.rgw.client.0.smithi092.stdout: 4: (std::_Rb_tree<rgw_obj, std::pair<rgw_obj const, RGWObjStateManifest>, std::_Select1st<std::pair<rgw_obj const, RGWObjStateManifest> >, std::less<rgw_obj>, std::allocator<std::pair<rgw_obj const, RGWObjStateManifest> > >::_M_erase(std::_Rb_tree_node<std::pair<rgw_obj const, RGWObjStateManifest> >*)+0x4f) [0x55b745fa843f]
2023-07-18T05:44:38.071 INFO:tasks.rgw.client.0.smithi092.stdout: 5: (rgw::sal::RadosObject::~RadosObject()+0x41) [0x55b745f78e51]
2023-07-18T05:44:38.071 INFO:tasks.rgw.client.0.smithi092.stdout: 6: (rgw::sal::RadosObject::~RadosObject()+0xd) [0x55b745f7901d]
2023-07-18T05:44:38.071 INFO:tasks.rgw.client.0.smithi092.stdout: 7: (req_state::~req_state()+0x71c) [0x55b745c1316c]
2023-07-18T05:44:38.071 INFO:tasks.rgw.client.0.smithi092.stdout: 8: (process_request(RGWProcessEnv const&, RGWRequest*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, RGWRestfulIO*, optional_yield, rgw::dmclock::Scheduler*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::chrono::duration<unsigned long, std::ratio<1l, 1000000000l> >*, int*)+0x207d) [0x55b745ab1abd]
2023-07-18T05:44:38.072 INFO:tasks.rgw.client.0.smithi092.stdout: 9: radosgw(+0x6b22be) [0x55b7459e62be]
2023-07-18T05:44:38.072 INFO:tasks.rgw.client.0.smithi092.stdout: 10: radosgw(+0x6b2f87) [0x55b7459e6f87]
2023-07-18T05:44:38.072 INFO:tasks.rgw.client.0.smithi092.stdout: 11: make_fcontext()

http://qa-proxy.ceph.com/teuthology/cbodley-2023-07-17_21:26:30-rgw-main-distro-default-smithi/7342641/teuthology.log


Related issues 1 (0 open — 1 closed)

Copied to rgw - Backport #75040: tentacle: quincy: notification tests fail on 'radosgw-admin -n client.0 user rm --uid foo.client.0 --purge-data --cluster ceph'ResolvedOguzhan Ozmen

Actions

CB Updated by Casey Bodley about 3 years ago Actions #1

  • Backport set to reef

CB Updated by Casey Bodley about 3 years ago Actions #2

  • Status changed from New to Can't reproduce

not seeing this lately. we'll reopen if it pops up again

CB Updated by Casey Bodley over 2 years ago Actions #3

  • Status changed from Can't reproduce to New

happening on quincy: https://qa-proxy.ceph.com/teuthology/yuriw-2024-04-20_15:31:09-rgw-wip-yuri4-testing-2024-04-19-0708-quincy-distro-default-smithi/7664647/teuthology.log

2024-04-20T15:58:29.356 INFO:tasks.rgw.client.0.smithi071.stdout:*** Caught signal (Segmentation fault) **
2024-04-20T15:58:29.356 INFO:tasks.rgw.client.0.smithi071.stdout: in thread 7f5fc4057700 thread_name:radosgw
2024-04-20T15:58:29.359 INFO:tasks.rgw.client.0.smithi071.stdout: ceph version 17.2.7-902-g7f4fa80c (7f4fa80c8c97f53f52b1189d2347b5761f6287e3) quincy (stable)
2024-04-20T15:58:29.359 INFO:tasks.rgw.client.0.smithi071.stdout: 1: /lib64/libpthread.so.0(+0x12cf0) [0x7f60dfddacf0]
2024-04-20T15:58:29.359 INFO:tasks.rgw.client.0.smithi071.stdout: 2: /lib64/libradosgw.so.2(+0x90c5b1) [0x7f60e289e5b1]
2024-04-20T15:58:29.359 INFO:tasks.rgw.client.0.smithi071.stdout: 3: (RGWObjManifest::~RGWObjManifest()+0x1d3) [0x7f60e28b5233]
2024-04-20T15:58:29.359 INFO:tasks.rgw.client.0.smithi071.stdout: 4: (RGWObjState::~RGWObjState()+0x1e3) [0x7f60e2acf883]
2024-04-20T15:58:29.359 INFO:tasks.rgw.client.0.smithi071.stdout: 5: /lib64/libradosgw.so.2(+0x6e46ee) [0x7f60e26766ee]
2024-04-20T15:58:29.359 INFO:tasks.rgw.client.0.smithi071.stdout: 6: (process_request(rgw::sal::Store*, RGWREST*, RGWRequest*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, rgw::auth::StrategyRegistry const&, RGWRestfulIO*, OpsLogSink*, optional_yield, rgw::dmclock::Scheduler*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::chrono::duration<unsigned long, std::ratio<1l, 1000000000l> >*, std::shared_ptr<RateLimiter>, int*)+0x1702) [0x7f60e267a882]
2024-04-20T15:58:29.359 INFO:tasks.rgw.client.0.smithi071.stdout: 7: /lib64/libradosgw.so.2(+0x645765) [0x7f60e25d7765]
2024-04-20T15:58:29.360 INFO:tasks.rgw.client.0.smithi071.stdout: 8: /lib64/libradosgw.so.2(+0x646ba6) [0x7f60e25d8ba6]
2024-04-20T15:58:29.360 INFO:tasks.rgw.client.0.smithi071.stdout: 9: make_fcontext()

JI Updated by J. Eric Ivancich over 2 years ago Actions #4

  • Backport changed from reef to reef, squid

JI Updated by J. Eric Ivancich over 2 years ago Actions #5

  • Status changed from New to Can't reproduce

YL Updated by Yuval Lifshitz over 2 years ago Actions #6

looks like this is only happening on quincy.
is there a way to mark the tracker as a "quincy" tracker?
also, no point in adding any backports

CB Updated by Casey Bodley over 2 years ago Actions #7

  • Subject changed from notification tests fail on 'radosgw-admin -n client.0 user rm --uid foo.client.0 --purge-data --cluster ceph' to quincy: notification tests fail on 'radosgw-admin -n client.0 user rm --uid foo.client.0 --purge-data --cluster ceph'
  • Backport deleted (reef, squid)
  • Affected Versions v17.2.7 added

OO Updated by Oguzhan Ozmen 12 months ago Actions #8

  • Tags set to rgw
  • Status changed from Can't reproduce to Fix Under Review
  • Assignee set to Oguzhan Ozmen
  • Priority changed from Urgent to Normal
  • Pull request ID set to 66514

Reopening the case as we have been seeing radosgw service crashes with the same backtrace in Squid (19.2.1) as well in our production clusters.

It's rare; only 3 incidents in the last couple of months. Also lowering the prio to Normal.

The core issue is corruption of the RGWObjectCtx::objs_state map (std::map<rgw_obj, RGWObjStateManifest>), which leads to crashes either during the copy constructor (while copying from one RGWObjectCtx to another) or later during destruction of an RGWObjectCtx instance.

Squid backtrace

#0  0x00007ffaf651057b in tcmalloc::ThreadCache::ReleaseToCentralCache(tcmalloc::ThreadCache::FreeList*, unsigned int, int) () from /lib64/libtcmalloc.so.4
#1  0x00007ffaf651086e in tcmalloc::ThreadCache::Scavenge() ()
   from /lib64/libtcmalloc.so.4
#2  0x00007ffaf595b4a6 in std::__new_allocator<std::_Rb_tree_node<std::pair<unsigned long, char const*> > >::deallocate (this=<optimized out>, __n=1,
    __p=0x558581e1d4a0)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/new_allocator.h:142
#3  std::allocator<std::_Rb_tree_node<std::pair<unsigned long, char const*> > >::deallocate (__n=1, __p=0x558581e1d4a0, this=0x7fdb682e43a0)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/allocator.h:200
#4  std::allocator_traits<std::allocator<std::_Rb_tree_node<std::pair<unsigned long, char const*> > > >::deallocate (__n=1, __p=0x558581e1d4a0, __a=...)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/alloc_traits.h:496
#5  std::_Rb_tree<std::pair<unsigned long, char const*>, std::pair<unsigned long, char const*>, std::_Identity<std::pair<unsigned long, char const*> >, std::less<std::pair<unsigned long, char const*> >, std::allocator<std::pair
<unsigned long, char const*> > >::_M_put_node (__p=0x558581e1d4a0, this=0x7fdb682e43a0)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_tree.h:565
#6  std::_Rb_tree<std::pair<unsigned long, char const*>, std::pair<unsigned long, char const*>, std::_Identity<std::pair<unsigned long, char const*> >, std::less<std::pair<unsigned long, char const*> >, std::allocator<std::pair
<unsigned long, char const*> > >::_M_drop_node (__p=0x558581e1d4a0, this=0x7fdb682e43a0)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_tree.h:632
#7  std::_Rb_tree<std::pair<unsigned long, char const*>, std::pair<unsigned long, char const*>, std::_Identity<std::pair<unsigned long, char const*> >, std::less<std::pair<unsigned long, char const*> >, std::allocator<std::pair
<unsigned long, char const*> > >::_M_erase (this=<optimized out>, __x=0x558581e1d4a0)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_tree.h:1937
#8  std::_Rb_tree<std::pair<unsigned long, char const*>, std::pair<unsigned long, char const*>, std::_Identity<std::pair<unsigned long, char const*> >, std::less<std::pair<unsigned long, char const*> >, std::allocator<std::pair
<unsigned long, char const*> > >::_M_erase (this=<optimized out>, __x=0x558581e1d500)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_tree.h:1935
#9  std::_Rb_tree<std::pair<unsigned long, char const*>, std::pair<unsigned long, char const*>, std::_Identity<std::pair<unsigned long, char const*> >, std::less<std::pair<unsigned long, char const*> >, std::allocator<std::pair
<unsigned long, char const*> > >::_M_erase (this=<optimized out>, __x=0x55863f7e9dd0)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_tree.h:1935
#10 std::_Rb_tree<std::pair<unsigned long, char const*>, std::pair<unsigned long, char const*>, std::_Identity<std::pair<unsigned long, char const*> >, std::less<std::pair<unsigned long, char const*> >, std::allocator<std::pair
<unsigned long, char const*> > >::_M_erase (this=<optimized out>, __x=0x55855fe91a10)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_tree.h:1935
#11 std::_Rb_tree<std::pair<unsigned long, char const*>, std::pair<unsigned long, char const*>, std::_Identity<std::pair<unsigned long, char const*> >, std::less<std::pair<unsigned long, char const*> >, std::allocator<std::pair
<unsigned long, char const*> > >::_M_erase (this=<optimized out>, __x=0x5584567a3650)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_tree.h:1935
#12 std::_Rb_tree<std::pair<unsigned long, char const*>, std::pair<unsigned long, char const*>, std::_Identity<std::pair<unsigned long, char const*> >, std::less<std::pair<unsigned long, char const*> >, std::allocator<std::pair
<unsigned long, char const*> > >::_M_erase (this=<optimized out>, __x=0x5584e16d7ec0)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_tree.h:1935
#13 std::_Rb_tree<std::pair<unsigned long, char const*>, std::pair<unsigned long, char const*>, std::_Identity<std::pair<unsigned long, char const*> >, std::less<std::pair<unsigned long, char const*> >, std::allocator<std::pair
<unsigned long, char const*> > >::_M_erase (__x=0x5585056dc4e0, this=0x7fdb682e4540)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_tree.h:1935
#14 0x00007ffaf5961d56 in std::_Rb_tree<std::pair<unsigned long, char const*>, std::pair<unsigned long, char const*>, std::_Identity<std::pair<unsigned long, char const*> >, std::less<std::pair<unsigned long, char const*> >, st
d::allocator<std::pair<unsigned long, char const*> > >::~_Rb_tree (this=0x7fdb682e4540,
    __in_chrg=<optimized out>)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_tree.h:734
#15 std::set<std::pair<unsigned long, char const*>, std::less<std::pair<unsigned long, char const*> >, std::allocator<std::pair<unsigned long, char const*> > >::~set (this=0x7fdb682e4540, __in_chrg=<optimized out>)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_set.h:281
#16 ceph::logging::Log::dump_recent (this=0x55843c610b40)
    at /usr/src/debug/ceph-19.2.1-19.bb.squid_release.el8.x86_64/src/log/Log.cc:534
#17 0x000055843b573eb3 in handle_oneshot_fatal_signal (signum=11)
    at /usr/src/debug/ceph-19.2.1-19.bb.squid_release.el8.x86_64/src/global/signal_handler.cc:351
#18 <signal handler called>
#19 0x00007ffaf651057b in tcmalloc::ThreadCache::ReleaseToCentralCache(tcmalloc::ThreadCache::FreeList*, unsigned int, int) () from /lib64/libtcmalloc.so.4
#20 0x00007ffaf651086e in tcmalloc::ThreadCache::Scavenge() ()
   from /lib64/libtcmalloc.so.4
#21 0x000055843af9fdfd in std::__new_allocator<std::_Rb_tree_node<std::pair<rgw_obj const, RGWObjStateManifest> > >::deallocate (this=<optimized out>, __n=1,
    __p=0x55852826cc00)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/new_allocator.h:142
#22 std::allocator<std::_Rb_tree_node<std::pair<rgw_obj const, RGWObjStateManifest> > >::deallocate (__n=1, __p=0x55852826cc00, this=<optimized out>)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/allocator.h:200
#23 std::allocator_traits<std::allocator<std::_Rb_tree_node<std::pair<rgw_obj const, RGWObjStateManifest> > > >::deallocate (__n=1, __p=0x55852826cc00,
    __a=...)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/alloc_traits.h:496
#24 std::_Rb_tree<rgw_obj, std::pair<rgw_obj const, RGWObjStateManifest>, std::_Select1st<std::pair<rgw_obj const, RGWObjStateManifest> >, std::less<rgw_obj>, std::allocator<std::pair<rgw_obj const, RGWObjStateManifest> > >::_M
_put_node (
    __p=0x55852826cc00, this=<optimized out>)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_tree.h:565
#25 std::_Rb_tree<rgw_obj, std::pair<rgw_obj const, RGWObjStateManifest>, std::_Select1st<std::pair<rgw_obj const, RGWObjStateManifest> >, std::less<rgw_obj>, std::allocator<std::pair<rgw_obj const, RGWObjStateManifest> > >::_M
_drop_node (
    this=<optimized out>, __p=0x55852826cc00)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_tree.h:632
#26 std::_Rb_tree<rgw_obj, std::pair<rgw_obj const, RGWObjStateManifest>, std::_Select1st<std::pair<rgw_obj const, RGWObjStateManifest> >, std::less<rgw_obj>, std::allocator<std::pair<rgw_obj const, RGWObjStateManifest> > >::_M
_erase (
    __x=0x55852826cc00, this=0x5585f2ecf230)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_tree.h:1937
#27 0x000055843afac70d in std::_Rb_tree<rgw_obj, std::pair<rgw_obj const, RGWObjStateManifest>, std::_Select1st<std::pair<rgw_obj const, RGWObjStateManifest> >, std::less<rgw_obj>, std::allocator<std::pair<rgw_obj const, RGWObj
StateManifest> > >::~_Rb_tree (this=0x5585f2ecf230, __in_chrg=<optimized out>)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_tree.h:984
#28 std::map<rgw_obj, RGWObjStateManifest, std::less<rgw_obj>, std::allocator<std::pair<rgw_obj const, RGWObjStateManifest> > >::~map (this=0x5585f2ecf230,
    __in_chrg=<optimized out>)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_map.h:312
#29 RGWObjectCtx::~RGWObjectCtx (this=0x5585f2ecf1f0,
    __in_chrg=<optimized out>)
    at /usr/src/debug/ceph-19.2.1-19.bb.squid_release.el8.x86_64/src/rgw/driver/rados/rgw_rados.h:190
#30 rgw::sal::RadosObject::~RadosObject (this=0x5586688f0d00,
    __in_chrg=<optimized out>)
    at /usr/src/debug/ceph-19.2.1-19.bb.squid_release.el8.x86_64/src/rgw/driver/rados/rgw_sal_rados.cc:2218
#31 0x000055843afac84d in rgw::sal::RadosObject::~RadosObject (
    this=0x5586688f0d00, __in_chrg=<optimized out>)
    at /usr/src/debug/ceph-19.2.1-19.bb.squid_release.el8.x86_64/src/rgw/driver/rados/rgw_sal_rados.cc:2219
#32 0x000055843ac44fdf in std::default_delete<rgw::sal::Object>::operator() (
    __ptr=<optimized out>, this=<optimized out>)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/unique_ptr.h:89
#33 std::unique_ptr<rgw::sal::Object, std::default_delete<rgw::sal::Object> >::~unique_ptr (this=0x7fdb682e94f8, __in_chrg=<optimized out>)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/unique_ptr.h:396
#34 req_state::~req_state (this=this@entry=0x7fdb682e92c0,
    __in_chrg=<optimized out>)
    at /usr/src/debug/ceph-19.2.1-19.bb.squid_release.el8.x86_64/src/rgw/rgw_common.cc:292
#35 0x000055843aad0d49 in process_request (penv=...,
    req=req@entry=0x7fdb682ea330, frontend_prefix="",
    client_io=client_io@entry=0x7fdb682ea390, yield=..., yield@entry=...,
    scheduler=scheduler@entry=0x558441624ab8, user=0x7fdb682ea520,
    latency=0x7fdb682ea2e0, http_ret=0x7fdb682ea2d0)
    at /usr/src/debug/ceph-19.2.1-19.bb.squid_release.el8.x86_64/src/rgw/rgw_process.cc:498
#36 0x000055843aa0baa7 in (anonymous namespace)::handle_connection<boost::asio::basic_stream_socket<boost::asio::ip::tcp> > (env=..., stream=..., timeout=...,
    header_limit=<optimized out>, buffer=..., pause_mutex=...,
    scheduler=0x558441624ab8, uri_prefix="", ec=..., yield=..., context=...,
    is_ssl=false)
    at /usr/src/debug/ceph-19.2.1-19.bb.squid_release.el8.x86_64/src/rgw/rgw_asio_frontend.cc:333
#37 0x000055843aa0cbb9 in operator() (yield=..., __closure=0x7fdb682ebd98)
    at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/unique_ptr.h:191
#38 boost::asio::detail::spawn_entry_point<boost::asio::strand<boost::asio::io_context::basic_executor_type<std::allocator<void>, 0> >, (anonymous namespace)::AsioFrontend::on_accept(Listener&, boost::asio::ip::tcp::socket)::<l
ambda(boost::asio::yield_context)>, (anonymous namespace)::AsioFrontend::on_accept(Listener&, boost::asio::ip::tcp::socket)::<lambda(std::__exception_ptr::exception_ptr)> >::call (yield=..., this=<optimized out>)
    at /usr/src/debug/ceph-19.2.1-19.bb.squid_release.el8.x86_64/x86_64-redhat-linux-gnu/boost/include/boost/asio/impl/spawn.hpp:1034
#39 boost::asio::detail::spawn_entry_point<boost::asio::strand<boost::asio::io_context::basic_executor_type<std::allocator<void>, 0> >, (anonymous namespace)::AsioFrontend::on_accept(Listener&, boost::asio::ip::tcp::socket)::<l
ambda(boost::asio::yield_context)>, (anonymous namespace)::AsioFrontend::on_accept(Listener&, boost::asio::ip::tcp::socket)::<lambda(std::__exception_ptr::exception_ptr)> >::operator() (spawned_thread=0x7fdb682ebbe0, this=0x7fd
b682ebd80)
    at /usr/src/debug/ceph-19.2.1-19.bb.squid_release.el8.x86_64/x86_64-redhat-linux-gnu/boost/include/boost/asio/impl/spawn.hpp:1022
.
.
.

The interesting part indicating the issue is

#28 std::map<rgw_obj, RGWObjStateManifest, std::less<rgw_obj>, std::allocator<std::pair<rgw_obj const, RGWObjStateManifest> > >::~map (this=0x5585f2ecf230,
    __in_chrg=<optimized out>)

Destroying that map (_M_erase → _M_drop_node → deallocate) calls into tcmalloc, and that is where we crash. This would be happening in scenarios like a corrupted heap / use-after-free / double-free.
So, the original bug is very likely in the code that manipulates RGWObjectCtx / RGWObjStateManifest / rgw_obj map for a request. By the time the std::map or std::set destructors run, their internal tree nodes’ pointers are no longer valid.

(gdb) f 29
#29 RGWObjectCtx::~RGWObjectCtx (this=0x5585f2ecf1f0, ...)
(gdb) p objs_state
$2 = std::map with 1 element = { [key] = { state = ..., manifest = std::optional [no contained value] } }
(gdb) p objs_state.size()
$3 = 1
(gdb) p &objs_state
$4 = (std::map<rgw_obj, RGWObjStateManifest, std::less<rgw_obj>, std::allocator<std::pair<rgw_obj const, RGWObjStateManifest> > > *) 0x5585f2ecf230
(gdb) p this
$5 = (RGWObjectCtx * const) 0x5585f2ecf1f0

The map seems totally sane at the high level.

(gdb) f 26
#26 std::_Rb_tree<rgw_obj, std::pair<rgw_obj const, RGWObjStateManifest>, std::_Select1st<std::pair<rgw_obj const, RGWObjStateManifest> >, std::less<rgw_obj>, std::allocator<std::pair<rgw_obj const, RGWObjStateManifest> > >::_M_erase (__x=0x55852826cc00, this=0x5585f2ecf230) at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_tree.h:1937 1937 /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_tree.h: No such file or directory.
(gdb) p this
$6 = ( std::_Rb_tree<rgw_obj, std::pair<rgw_obj const, RGWObjStateManifest>, std::_Select1st<std::pair<rgw_obj const, RGWObjStateManifest> >, std::less<rgw_obj>, std::allocator<std::pair<rgw_obj const, RGWObjStateManifest> > > * const) 0x5585f2ecf230
(gdb) p __x $7 = (std::_Rb_tree<rgw_obj, std::pair<rgw_obj const, RGWObjStateManifest>, std::_Select1st<std::pair<rgw_obj const, RGWObjStateManifest> >, std::less<rgw_obj>, std::allocator<std::pair<rgw_obj const, RGWObjStateManifest> > >::_Link_type) 0x55852826cc00
(gdb) p *(std::_Rb_tree_node<std::pair<rgw_obj const, RGWObjStateManifest> >*)__x
$8 = { <std::_Rb_tree_node_base> = { _M_color = (unknown: 0x1a58f800), _M_parent = 0x5585f2ecf238, _M_left = 0x0, _M_right = 0x0 }, members of std::_Rb_tree_node<std::pair<rgw_obj const, RGWObjStateManifest> >: _M_storage = { _M_storage = "0\314&(\205U", '\000' <repeats 26 times>, "\223\374\\\204U\000\000\020\000\000\000\000\000\000\000\020\000\000\000\000\000\000\000d\000\000\000\000\000\000\000\000 ᘅU\000\000\064\000\000\000\000\000\000\000\064", '\000' <repeats 15 times>, "\200ؑ\364\205U\000\000\064\000\000\000\000\000\000\000\064", '\000' <repeats 15 times>, "\260\314&(\205U", '\000' <repeats 11 times>, "\314&(\205U\000\000\000\000\000\000\000\000\000\000\320\314&(\205U", '\000' <repeats 11 times>, "\314&(\205U\000\000\000\000\000\000\000\000\000\000\360\314&(\205U", '\000' <repeats 11 times>... } }

The last entry shows RB tree node is corrupted I think. _M_color is some random 0x1a58f800 — that’s not a valid std::_Rb_tree_color enum (should be 0 or 1 for red/black). _M_storage is just raw junk; gdb can’t even interpret it as the pair<rgw_obj const, RGWObjStateManifest>.

Potential Root-Cause

I think the problem is in the copy constructor of the RGWObjectCtx class:

  RGWObjectCtx(RGWObjectCtx& _o) {
    std::unique_lock wl{lock};
    this->driver = _o.driver;
    this->objs_state = _o.objs_state;
  }

this->objs_state = _o.objs_state is a full, deep copy of the std::map contents but this doesn't seem to be thread-safe. This can indeed cause heap corruption is the source object (i.e., _o) changes while map is being copied.
The destination object locks but source object can change during the copy as its lock is not held.

Proposed Solution

https://github.com/ceph/ceph/pull/66514 suggests a solution based on the above root-cause. It also introduces a unittest to reproduce the issue and verify the proposed fix.

UB Updated by Upkeep Bot 10 months ago Actions #9

  • Status changed from Fix Under Review to Resolved
  • Merge Commit set to 2c04247766fd65884826993ecbd3bd6ceeebe57a
  • Fixed In set to v20.3.0-5093-g2c04247766
  • Upkeep Timestamp set to 2026-02-03T17:32:22+00:00

OO Updated by Oguzhan Ozmen 10 months ago Actions #10

  • Status changed from Resolved to Pending Backport
  • Backport set to tentacle

UB Updated by Upkeep Bot 10 months ago Actions #11

  • Copied to Backport #75040: tentacle: quincy: notification tests fail on 'radosgw-admin -n client.0 user rm --uid foo.client.0 --purge-data --cluster ceph' added

UB Updated by Upkeep Bot 10 months ago Actions #12

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 5 months ago Actions #13

  • Status changed from Pending Backport to Resolved
  • Upkeep Timestamp changed from 2026-02-03T17:32:22+00:00 to 2026-07-10T13:26:33+00:00

UB Updated by Upkeep Bot 3 months ago Actions #14

  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2026-07-10T13:26:33+00:00 to 2026-08-28T01:41:41+00:00

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

  • Released In set to v21.2.0~1336
  • Upkeep Timestamp changed from 2026-08-28T01:41:41+00:00 to 2026-10-24T02:02:28+00:00
Actions

Also available in: PDF Atom