Project

General

Profile

Actions

Bug #76725

closed
MK CB

RGW crash in LC delete path under OLH/versioning stress (tcmalloc; RGWDeleteMultiObj/RadosObject);

Bug #76725: RGW crash in LC delete path under OLH/versioning stress (tcmalloc; RGWDeleteMultiObj/RadosObject);

Added by Mark Kogan 7 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
squid tentacle umbrella
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.0.0-2138-g8456be4d6e
Released In:
v21.2.0~246
Upkeep Timestamp:
2026-10-24T01:50:01+00:00

Description

this tracker issue is for WIP on the crash reported below:

[root@ceph21 ~]# ceph crash info 2026-01-20T10:28:56.789284Z_a072e855-5df7-47c5-9ff1-a98a939e6a1f
{
"backtrace": [
"/lib64/libc.so.6(+0x3fc30) [0x7efdd8c8ec30]",
"(tcmalloc::ThreadCache::ReleaseToCentralCache(tcmalloc::ThreadCache::FreeList*, unsigned int, int)+0xe3) [0x7efddbe74763]",
"(tcmalloc::ThreadCache::Scavenge()+0x4e) [0x7efddbe74a9e]",
"/usr/bin/radosgw(+0x5c5abc) [0x561a93864abc]",
"/usr/bin/radosgw(+0x5c5a54) [0x561a93864a54]",
"/usr/bin/radosgw(+0x5c5a54) [0x561a93864a54]",
"/usr/bin/radosgw(+0xa73ef9) [0x561a93d12ef9]",
"(rgw::sal::RadosObject::~RadosObject()+0xd) [0x561a93dbb3cd]",
"(RGWDeleteMultiObj::handle_individual_object(RGWMultiDelObject const&, optional_yield, bool)+0x695) [0x561a93aee8e5]",
"/usr/bin/radosgw(+0x86a150) [0x561a93b09150]",
"/usr/bin/radosgw(+0x86a4b3) [0x561a93b094b3]",
"/usr/bin/radosgw(+0x1265f7f) [0x561a94504f7f]" 
],

when reproducing with ASAN, on main at the commit: (for line numbers sync)

❯ git branch -vv
* main a7304789d5e [origin/main] Merge pull request #68137 from lumir-sliva/fix/rgw-replication-duplicate-arn

the reproducer ASAN log looks like this:

❯ sudo cat asan.log.1869106
==1869106==WARNING: ASan is ignoring requested __asan_handle_no_return: stack type: default top: 0x7fffba8e6640; bottom 0x7fff1ddb9000; size: 0x00009cb2d640 (2628965952)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
=================================================================
==1869106==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fff04777400 at pc 0x7ffff4cdc44b bp 0x7fff047771f0 sp 0x7fff047771e0
WRITE of size 8 at 0x7fff04777400 thread T33
    #0 0x7ffff4cdc44a in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Alloc_hider::_Alloc_hider(char*, std::allocator<char> const&) /usr/include/c++/14/bits/basic_string.h:194
    #1 0x7ffff4cdc44a in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<std::allocator<char> >(char const*, std::allocator<char> const&) /usr/include/c++/14/bits/basic_string.h:647
    #2 0x7ffff4cdc44a in ceph::XMLFormatter::reset() /mnt/sdb/src-git/ceph--mk--ASAN/src/common/XMLFormatter.cc:60
    #3 0x5555571b7b61 in rgw_flush_formatter_and_reset(req_state*, ceph::Formatter*) /mnt/sdb/src-git/ceph--mk--ASAN/src/rgw/rgw_rest.cc:271
    #4 0x555557264b7e in RGWDeleteMultiObj_ObjStore_S3::end_response() /mnt/sdb/src-git/ceph--mk--ASAN/src/rgw/rgw_rest_s3.cc:5058
    #5 0x5555570010de in RGWDeleteMultiObj::execute(optional_yield) /mnt/sdb/src-git/ceph--mk--ASAN/src/rgw/rgw_op.cc:8247
    #6 0x5555567e3a81 in rgw_process_authenticated(RGWHandler_REST*, RGWOp*&, RGWRequest*, req_state*, optional_yield, rgw::sal::Driver*, bool) /mnt/sdb/src-git/ceph--mk--ASAN/src/rgw/rgw_process.cc:300
    #7 0x5555567f1534 in 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*) /mnt/sdb/src-git/ceph--mk--ASAN/src/rgw/rgw_process.cc:454
    #8 0x5555563afb98 in handle_connection<boost::asio::basic_stream_socket<boost::asio::ip::tcp> > /mnt/sdb/src-git/ceph--mk--ASAN/src/rgw/rgw_asio_frontend.cc:355
    #9 0x5555563b44e7 in operator() /mnt/sdb/src-git/ceph--mk--ASAN/src/rgw/rgw_asio_frontend.cc:1250
    #10 0x5555563b44e7 in call /mnt/sdb/src-git/ceph--mk--ASAN/build/boost/include/boost/asio/impl/spawn.hpp:748
    #11 0x5555563b44e7 in operator() /mnt/sdb/src-git/ceph--mk--ASAN/build/boost/include/boost/asio/impl/spawn.hpp:737
    #12 0x5555563b44e7 in operator() /mnt/sdb/src-git/ceph--mk--ASAN/build/boost/include/boost/asio/impl/spawn.hpp:152
    #13 0x5555563b5f9c in __invoke_impl<boost::context::fiber, boost::asio::detail::spawned_fiber_thread::entry_point<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)::<lambda(boost::asio::yield_context)>, (anonymous namespace)::AsioFrontend::on_accept(Listener&, boost::asio::ip::tcp::socket)::<lambda(std::__exception_ptr::exception_ptr)> > >&, boost::context::fiber> /usr/include/c++/14/bits/invoke.h:61
    #14 0x5555563b5f9c in __invoke<boost::asio::detail::spawned_fiber_thread::entry_point<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)::<lambda(boost::asio::yield_context)>, (anonymous namespace)::AsioFrontend::on_accept(Listener&, boost::asio::ip::tcp::socket)::<lambda(std::__exception_ptr::exception_ptr)> > >&, boost::context::fiber> /usr/include/c++/14/bits/invoke.h:97
    #15 0x5555563b5f9c in invoke<boost::asio::detail::spawned_fiber_thread::entry_point<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)::<lambda(boost::asio::yield_context)>, (anonymous namespace)::AsioFrontend::on_accept(Listener&, boost::asio::ip::tcp::socket)::<lambda(std::__exception_ptr::exception_ptr)> > >&, boost::context::fiber> /usr/include/c++/14/functional:121
    #16 0x5555563b5f9c in run /mnt/sdb/src-git/ceph--mk--ASAN/build/boost/include/boost/context/fiber_fcontext.hpp:157
    #17 0x5555563b5f9c in fiber_entry<boost::context::detail::fiber_record<boost::context::fiber, boost::context::basic_protected_fixedsize_stack<boost::context::stack_traits>, boost::asio::detail::spawned_fiber_thread::entry_point<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)::<lambda(boost::asio::yield_context)>, (anonymous namespace)::AsioFrontend::on_accept(Listener&, boost::asio::ip::tcp::socket)::<lambda(std::__exception_ptr::exception_ptr)> > > > > /mnt/sdb/src-git/ceph--mk--ASAN/build/boost/include/boost/context/fiber_fcontext.hpp:97
    #18 0x55555a93d89e in make_fcontext (/mnt/sdb/src-git/ceph--mk--ASAN/build/bin/radosgw+0x53e989e) (BuildId: 715a2bb7d60909c383f0151bc2ed901e7e4ccdf9)

Address 0x7fff04777400 is a wild pointer inside of access range of size 0x000000000008.
SUMMARY: AddressSanitizer: stack-buffer-overflow /usr/include/c++/14/bits/basic_string.h:194 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Alloc_hider::_Alloc_hider(char*, std::allocator<char> const&)
Shadow bytes around the buggy address:
  0x7fff04777180: 00 00 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00
  0x7fff04777200: 00 00 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 01 f2
  0x7fff04777280: 00 f2 f2 f2 00 f2 f2 f2 f3 f3 00 00 f2 f2 f2 f2
  0x7fff04777300: 00 00 00 00 f2 f2 f2 f2 00 00 00 00 f2 f2 f2 f2
  0x7fff04777380: f1 f1 f1 f1 f2 f2 f2 f2 00 00 00 00 f2 f2 f2 f2
=>0x7fff04777400:[f3]f3 f3 f3 f2 f2 f2 f2 00 00 00 00 f3 f3 f3 f3
  0x7fff04777480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x7fff04777500: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 f8 f2 f8 f2
  0x7fff04777580: 00 00 00 00 f2 f2 f2 f2 00 00 00 00 00 00 00 00
  0x7fff04777600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x7fff04777680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
Thread T33 created by T0 here:
    #0 0x7ffff78f40a3 in pthread_create (/usr/lib64/libasan.so.8+0xf40a3) (BuildId: 056be1fcf267a221be3234b7611a94d0ee6a19bc)
    #1 0x7ffff3aee1f8 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (/lib64/libstdc++.so.6+0xee1f8) (BuildId: 56cbcc735611e8301d75babe03c73f19621893a3)
    #2 0x55555629cdac in rgw::AppMain::init_storage() /mnt/sdb/src-git/ceph--mk--ASAN/src/rgw/rgw_appmain.cc:239
    #3 0x55555623f8c9 in main /mnt/sdb/src-git/ceph--mk--ASAN/src/rgw/rgw_main.cc:143
    #4 0x7ffff385258d in __libc_start_call_main (/lib64/libc.so.6+0x2a58d) (BuildId: a0fecbb478ee32896bfb8b799a0e09a376f95939)

==1869106==ABORTING

for future refrence - reproducer flow – run the repro script:
./test_olh_with_lc_deletion-v10.py

when RGW is built with ASAN and started with the below specific parameters:

❯ sudo pkill -9 radosgw ; sudo truncate -s0 ./out/radosgw.8000.log ; sudo sh -c "ulimit -s 32768 ; ulimit -s ; /usr/local/bin/eatmydata env  ASAN_OPTIONS='detect_stack_use_after_return=0:detect_stack_use_after_scope=0:detect_leaks=0:quarantine_size_mb=0:halt_on_error=1:log_path=./asan.log:symbolize=1:fast_unwind_on_malloc=1' ASAN_SYMBOLIZER_PATH=$(command -v llvm-symbolizer) LD_PRELOAD=/usr/lib64/libasan.so.8 /mnt/sdb/src-git/ceph--mk--ASAN/build/bin/radosgw -c ./ceph.conf --log-file=./out/radosgw.8000.log --admin-socket=./out/radosgw.8000.asok --pid-file=./out/radosgw.8000.pid -n client.rgw.8000 --rgw_frontends='beast port=8000' --debug_ms=0 --debug_rgw=1 --rgw_thread_pool_size=4 --rgw_multi_obj_del_max_aio=1000 -f" 

Note: --rgw_thread_pool_size=4 --rgw_multi_obj_del_max_aio=1000
AND: ASAN_OPTIONS='detect_stack_use_after_return=0:detect_stack_use_after_scope=0:detect_leaks=0:quarantine_size_mb=0:halt_on_error=1:log_path=./asan.log:symbolize=1:fast_unwind_on_malloc=1'

[IBMCEPH-12842]


Files


Related issues 4 (0 open — 4 closed)

Has duplicate rgw - Bug #78420: RGW daemon crashes during multi-object deletesDuplicate

Actions
Copied to rgw - Backport #77273: squid: RGW crash in LC delete path under OLH/versioning stress (tcmalloc; RGWDeleteMultiObj/RadosObject);ResolvedCasey Bodley

Actions
Copied to rgw - Backport #77274: tentacle: RGW crash in LC delete path under OLH/versioning stress (tcmalloc; RGWDeleteMultiObj/RadosObject);ResolvedCasey Bodley

Actions
Copied to rgw - Backport #77275: umbrella: RGW crash in LC delete path under OLH/versioning stress (tcmalloc; RGWDeleteMultiObj/RadosObject);ResolvedCasey Bodley

Actions

JI Updated by J. Eric Ivancich 7 months ago Actions #1

  • Status changed from New to In Progress

MK Updated by Mark Kogan 6 months ago Actions #2

posting updated repro script

MK Updated by Mark Kogan 6 months ago Actions #3

posting updated ASAN log generated with the test_olh_with_lc_deletion-v14.py repro script

❯ sudo cat asan.log.3180444
=================================================================
==3180444==ERROR: AddressSanitizer: heap-use-after-free on address 0x512000210040 at pc 0x5555573c515e bp 0x7fff77ca9e40 sp 0x7fff77ca9e38
READ of size 8 at 0x512000210040 thread T460
    #0 0x5555573c515d in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_data() const /usr/include/c++/14/bits/basic_string.h:228
    #1 0x5555573c515d in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_is_local() const /usr/include/c++/14/bits/basic_string.h:269
    #2 0x5555573c515d in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&) /usr/include/c++/14/bits/basic_string.h:685
    #3 0x5555573c515d in delete_multi_obj_entry::delete_multi_obj_entry(delete_multi_obj_entry&&) /mnt/raid/src-git/ceph--up--main/src/rgw/rgw_log.h:17
    #4 0x5555573c515d in decltype (::new ((void*)(0)) delete_multi_obj_entry((declval<delete_multi_obj_entry>)())) std::construct_at<delete_multi_obj_entry, delete_multi_obj_entry>(delete_multi_obj_entry*, delete_multi_obj_entry&&) /usr/include/c++/14/bits/stl_construct.h:97
    #5 0x5555573c515d in void std::allocator_traits<std::allocator<delete_multi_obj_entry> >::construct<delete_multi_obj_entry, delete_multi_obj_entry>(std::allocator<delete_multi_obj_entry>&, delete_multi_obj_entry*, delete_multi_obj_entry&&) /usr/include/c++/14/bits/alloc_traits.h:536
    #6 0x5555573c515d in void std::__relocate_object_a<delete_multi_obj_entry, delete_multi_obj_entry, std::allocator<delete_multi_obj_entry> >(delete_multi_obj_entry*, delete_multi_obj_entry*, std::allocator<delete_multi_obj_entry>&) /usr/include/c++/14/bits/stl_uninitialized.h:1075
    #7 0x5555573c515d in delete_multi_obj_entry* std::__relocate_a_1<delete_multi_obj_entry*, delete_multi_obj_entry*, std::allocator<delete_multi_obj_entry> >(delete_multi_obj_entry*, delete_multi_obj_entry*, delete_multi_obj_entry*, std::allocator<delete_multi_obj_entry>&) /usr/include/c++/14/bits/stl_uninitialized.h:1103
    #8 0x5555573c515d in delete_multi_obj_entry* std::__relocate_a<delete_multi_obj_entry*, delete_multi_obj_entry*, std::allocator<delete_multi_obj_entry> >(delete_multi_obj_entry*, delete_multi_obj_entry*, delete_multi_obj_entry*, std::allocator<delete_multi_obj_entry>&) /usr/include/c++/14/bits/stl_uninitialized.h:1145
    #9 0x5555573c515d in std::vector<delete_multi_obj_entry, std::allocator<delete_multi_obj_entry> >::_S_relocate(delete_multi_obj_entry*, delete_multi_obj_entry*, delete_multi_obj_entry*, std::allocator<delete_multi_obj_entry>&) /usr/include/c++/14/bits/stl_vector.h:509
    #10 0x5555573c515d in void std::vector<delete_multi_obj_entry, std::allocator<delete_multi_obj_entry> >::_M_realloc_append<delete_multi_obj_entry>(delete_multi_obj_entry&&) /usr/include/c++/14/bits/vector.tcc:647
    #11 0x555557302bcf in delete_multi_obj_entry& std::vector<delete_multi_obj_entry, std::allocator<delete_multi_obj_entry> >::emplace_back<delete_multi_obj_entry>(delete_multi_obj_entry&&) /usr/include/c++/14/bits/vector.tcc:123
    #12 0x555557302bcf in std::vector<delete_multi_obj_entry, std::allocator<delete_multi_obj_entry> >::push_back(delete_multi_obj_entry&&) /usr/include/c++/14/bits/stl_vector.h:1301
    #13 0x555557302bcf in RGWDeleteMultiObj_ObjStore_S3::send_partial_response(rgw_obj_key const&, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int) /mnt/raid/src-git/ceph--up--main/src/rgw/rgw_rest_s3.cc:4996
    #14 0x555556f96bfd in RGWDeleteMultiObj::handle_individual_object(RGWMultiDelObject const&, optional_yield, bool) /mnt/raid/src-git/ceph--up--main/src/rgw/rgw_op.cc:8069
    #15 0x55555706f1cd in operator() /mnt/raid/src-git/ceph--up--main/src/rgw/rgw_op.cc:8091
    #16 0x55555706f1cd in call /mnt/raid/src-git/ceph--up--main/build/boost/include/boost/asio/impl/spawn.hpp:748
    #17 0x55555706f1cd in operator() /mnt/raid/src-git/ceph--up--main/build/boost/include/boost/asio/impl/spawn.hpp:737
    #18 0x55555706f1cd in operator() /mnt/raid/src-git/ceph--up--main/build/boost/include/boost/asio/impl/spawn.hpp:152
    #19 0x55555707035c in __invoke_impl<boost::context::fiber, boost::asio::detail::spawned_fiber_thread::entry_point<boost::asio::detail::spawn_entry_point<boost::asio::any_io_executor, RGWDeleteMultiObj::handle_versioned_objects(const std::vector<RGWMultiDelObject>&, uint32_t, boost::asio::yield_context)::<lambda(boost::asio::yield_context)>, ceph::async::detail::spawn_throttle_handler> >&, boost::context::fiber> /usr/include/c++/14/bits/invoke.h:61
    #20 0x55555707035c in __invoke<boost::asio::detail::spawned_fiber_thread::entry_point<boost::asio::detail::spawn_entry_point<boost::asio::any_io_executor, RGWDeleteMultiObj::handle_versioned_objects(const std::vector<RGWMultiDelObject>&, uint32_t, boost::asio::yield_context)::<lambda(boost::asio::yield_context)>, ceph::async::detail::spawn_throttle_handler> >&, boost::context::fiber> /usr/include/c++/14/bits/invoke.h:97
    #21 0x55555707035c in invoke<boost::asio::detail::spawned_fiber_thread::entry_point<boost::asio::detail::spawn_entry_point<boost::asio::any_io_executor, RGWDeleteMultiObj::handle_versioned_objects(const std::vector<RGWMultiDelObject>&, uint32_t, boost::asio::yield_context)::<lambda(boost::asio::yield_context)>, ceph::async::detail::spawn_throttle_handler> >&, boost::context::fiber> /usr/include/c++/14/functional:121
    #22 0x55555707035c in run /mnt/raid/src-git/ceph--up--main/build/boost/include/boost/context/fiber_fcontext.hpp:157
    #23 0x55555707035c in fiber_entry<boost::context::detail::fiber_record<boost::context::fiber, boost::context::basic_fixedsize_stack<boost::context::stack_traits>, boost::asio::detail::spawned_fiber_thread::entry_point<boost::asio::detail::spawn_entry_point<boost::asio::any_io_executor, RGWDeleteMultiObj::handle_versioned_objects(const std::vector<RGWMultiDelObject>&, uint32_t, boost::asio::yield_context)::<lambda(boost::asio::yield_context)>, ceph::async::detail::spawn_throttle_handler> > > > /mnt/raid/src-git/ceph--up--main/build/boost/include/boost/context/fiber_fcontext.hpp:97
    #24 0x55555a9b4dbe in make_fcontext (/mnt/osd--host/src-git/ceph--up--main/build/bin/radosgw+0x5460dbe) (BuildId: 6a2fc2f49d410632abc6ea1ab95881ef444cf7ed)

0x512000210040 is located 0 bytes inside of 272-byte region [0x512000210040,0x512000210150)
freed by thread T448 here:
    #0 0x7ffff78f93b8 in operator delete(void*, unsigned long) (/usr/lib64/libasan.so.8+0xf93b8) (BuildId: a4ad7eb954b390cf00f07fa10952988a41d9fc7a)

previously allocated by thread T458 here:
    #0 0x7ffff78f84b8 in operator new(unsigned long) (/usr/lib64/libasan.so.8+0xf84b8) (BuildId: a4ad7eb954b390cf00f07fa10952988a41d9fc7a)

Thread T460 created by T0 here:
    #0 0x7ffff78ef871 in pthread_create (/usr/lib64/libasan.so.8+0xef871) (BuildId: a4ad7eb954b390cf00f07fa10952988a41d9fc7a)
    #1 0x7ffff3ae7638 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (/lib64/libstdc++.so.6+0xe7638) (BuildId: efdde18722aa72a0a779270371aeee5a9f6ddf87)
    #2 0x5555562751da in rgw::AppMain::init_storage() /mnt/raid/src-git/ceph--up--main/src/rgw/rgw_appmain.cc:239
    #3 0x55555621661d in main /mnt/raid/src-git/ceph--up--main/src/rgw/rgw_main.cc:143
    #4 0x7ffff3838087 in __libc_start_call_main (/lib64/libc.so.6+0x2a087) (BuildId: c8c3fa52aaee3f5d73b6fd862e39e9d4c010b6ba)
    #5 0x7ffff383814a in __libc_start_main_impl (/lib64/libc.so.6+0x2a14a) (BuildId: c8c3fa52aaee3f5d73b6fd862e39e9d4c010b6ba)
    #6 0x55555624df04 in _start (/mnt/osd--host/src-git/ceph--up--main/build/bin/radosgw+0xcf9f04) (BuildId: 6a2fc2f49d410632abc6ea1ab95881ef444cf7ed)

Thread T448 created by T0 here:
    #0 0x7ffff78ef871 in pthread_create (/usr/lib64/libasan.so.8+0xef871) (BuildId: a4ad7eb954b390cf00f07fa10952988a41d9fc7a)
    #1 0x7ffff3ae7638 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (/lib64/libstdc++.so.6+0xe7638) (BuildId: efdde18722aa72a0a779270371aeee5a9f6ddf87)
    #2 0x5555562751da in rgw::AppMain::init_storage() /mnt/raid/src-git/ceph--up--main/src/rgw/rgw_appmain.cc:239
    #3 0x55555621661d in main /mnt/raid/src-git/ceph--up--main/src/rgw/rgw_main.cc:143
    #4 0x7ffff3838087 in __libc_start_call_main (/lib64/libc.so.6+0x2a087) (BuildId: c8c3fa52aaee3f5d73b6fd862e39e9d4c010b6ba)
    #5 0x7ffff383814a in __libc_start_main_impl (/lib64/libc.so.6+0x2a14a) (BuildId: c8c3fa52aaee3f5d73b6fd862e39e9d4c010b6ba)
    #6 0x55555624df04 in _start (/mnt/osd--host/src-git/ceph--up--main/build/bin/radosgw+0xcf9f04) (BuildId: 6a2fc2f49d410632abc6ea1ab95881ef444cf7ed)

Thread T458 created by T0 here:
    #0 0x7ffff78ef871 in pthread_create (/usr/lib64/libasan.so.8+0xef871) (BuildId: a4ad7eb954b390cf00f07fa10952988a41d9fc7a)
    #1 0x7ffff3ae7638 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (/lib64/libstdc++.so.6+0xe7638) (BuildId: efdde18722aa72a0a779270371aeee5a9f6ddf87)
    #2 0x5555562751da in rgw::AppMain::init_storage() /mnt/raid/src-git/ceph--up--main/src/rgw/rgw_appmain.cc:239
    #3 0x55555621661d in main /mnt/raid/src-git/ceph--up--main/src/rgw/rgw_main.cc:143
    #4 0x7ffff3838087 in __libc_start_call_main (/lib64/libc.so.6+0x2a087) (BuildId: c8c3fa52aaee3f5d73b6fd862e39e9d4c010b6ba)
    #5 0x7ffff383814a in __libc_start_main_impl (/lib64/libc.so.6+0x2a14a) (BuildId: c8c3fa52aaee3f5d73b6fd862e39e9d4c010b6ba)
    #6 0x55555624df04 in _start (/mnt/osd--host/src-git/ceph--up--main/build/bin/radosgw+0xcf9f04) (BuildId: 6a2fc2f49d410632abc6ea1ab95881ef444cf7ed)

SUMMARY: AddressSanitizer: heap-use-after-free /usr/include/c++/14/bits/basic_string.h:228 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_data() const
Shadow bytes around the buggy address:
  0x51200020fd80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x51200020fe00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x51200020fe80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x51200020ff00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x51200020ff80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x512000210000: fa fa fa fa fa fa fa fa[fd]fd fd fd fd fd fd fd
  0x512000210080: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x512000210100: fd fd fd fd fd fd fd fd fd fd fa fa fa fa fa fa
  0x512000210180: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x512000210200: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x512000210280: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==3180444==ABORTING

CB Updated by Casey Bodley 6 months ago Actions #4

  • Status changed from In Progress to Pending Backport
  • Assignee changed from Mark Kogan to Casey Bodley
  • Backport set to squid tentacle umbrella
  • Pull request ID set to 69253

UB Updated by Upkeep Bot 6 months ago Actions #5

  • Merge Commit set to 8456be4d6e76841b5db38c3d83aa75d49d9b182f
  • Fixed In set to v21.0.0-2138-g8456be4d6e
  • Upkeep Timestamp set to 2026-06-09T12:25:56+00:00

UB Updated by Upkeep Bot 6 months ago Actions #6

  • Copied to Backport #77273: squid: RGW crash in LC delete path under OLH/versioning stress (tcmalloc; RGWDeleteMultiObj/RadosObject); added

UB Updated by Upkeep Bot 6 months ago Actions #7

  • Copied to Backport #77274: tentacle: RGW crash in LC delete path under OLH/versioning stress (tcmalloc; RGWDeleteMultiObj/RadosObject); added

UB Updated by Upkeep Bot 6 months ago Actions #8

  • Copied to Backport #77275: umbrella: RGW crash in LC delete path under OLH/versioning stress (tcmalloc; RGWDeleteMultiObj/RadosObject); added

UB Updated by Upkeep Bot 6 months ago Actions #9

  • Tags (freeform) set to backport_processed

CB Updated by Casey Bodley 4 months ago Actions #10

  • Has duplicate Bug #78420: RGW daemon crashes during multi-object deletes added

UB Updated by Upkeep Bot 3 months ago Actions #11

  • Status changed from Pending Backport to Resolved
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2026-06-09T12:25:56+00:00 to 2026-08-27T18:34:00+00:00

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

  • Released In set to v21.2.0~246
  • Upkeep Timestamp changed from 2026-08-27T18:34:00+00:00 to 2026-10-24T01:50:01+00:00
Actions

Also available in: PDF Atom