Actions
Bug #70965
closed
CB
CB
valgrind error: InvalidRead in RGWSI_Notify::init_watch()
Bug #70965:
valgrind error: InvalidRead in RGWSI_Notify::init_watch()
Due date:
% Done:
0%
Source:
Backport:
reef squid tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
valgrind
Merge Commit:
Fixed In:
v20.3.0-2019-ga3fa930be5
Released In:
v21.2.0~2358
Upkeep Timestamp:
2026-11-04T01:11:13+00:00
Description
https://qa-proxy.ceph.com/teuthology/cbodley-2025-04-16_16:25:31-rgw-wip-cbodley-testing-distro-default-smithi/8245226/teuthology.log
https://qa-proxy.ceph.com/teuthology/cbodley-2025-04-16_16:25:31-rgw-wip-cbodley-testing-distro-default-smithi/8245226/remote/smithi145/log/valgrind/ceph.client.0.log.gz
<error>
<unique>0x3a3</unique>
<tid>538</tid>
<threadname>io_context_pool</threadname>
<kind>InvalidRead</kind>
<what>Invalid read of size 8</what>
<stack>
<frame>
<ip>0x6202E0</ip>
<obj>/usr/bin/radosgw</obj>
<fn>void boost::asio::execution::detail::any_executor_base::destroy_object<boost::asio::io_context::basic_executor_type<std::allocator<void>, 4ul> >(boost::asio::execution::detail::any_executor_base&)</fn>
</frame>
<frame>
<ip>0xAFD0C4</ip>
<obj>/usr/bin/radosgw</obj>
</frame>
<frame>
<ip>0xAF941F</ip>
<obj>/usr/bin/radosgw</obj>
<fn>librados::detail::AsyncOp<void>::aio_dispatch(void*, void*)</fn>
</frame>
<frame>
<ip>0x5FDC0C8</ip>
<obj>/usr/lib64/librados.so.2.0.0</obj>
</frame>
<frame>
<ip>0x5FDDC7D</ip>
<obj>/usr/lib64/librados.so.2.0.0</obj>
</frame>
<frame>
<ip>0x5FDE2F0</ip>
<obj>/usr/lib64/librados.so.2.0.0</obj>
</frame>
<frame>
<ip>0x6007E55</ip>
<obj>/usr/lib64/librados.so.2.0.0</obj>
</frame>
<frame>
<ip>0x5FFC006</ip>
<obj>/usr/lib64/librados.so.2.0.0</obj>
</frame>
<frame>
<ip>0x77CBAE3</ip>
<obj>/usr/lib64/libstdc++.so.6.0.29</obj>
</frame>
<frame>
<ip>0x7A9A3B1</ip>
<obj>/usr/lib64/libc.so.6</obj>
<fn>start_thread</fn>
</frame>
<frame>
<ip>0x7B1E723</ip>
<obj>/usr/lib64/libc.so.6</obj>
<fn>clone</fn>
</frame>
</stack>
<auxwhat>Address 0x12e6a3350 is 96 bytes inside a block of size 112 free'd</auxwhat>
<stack>
<frame>
<ip>0x484AC35</ip>
<obj>/usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so</obj>
<fn>operator delete[](void*, unsigned long)</fn>
<dir>/builddir/build/BUILD/valgrind-3.24.0/coregrind/m_replacemalloc</dir>
<file>vg_replace_malloc.c</file>
<line>1444</line>
</frame>
<frame>
<ip>0xBF432D</ip>
<obj>/usr/bin/radosgw</obj>
<fn>RGWSI_Notify::init_watch(DoutPrefixProvider const*, optional_yield)</fn>
</frame>
<frame>
<ip>0xBF45FE</ip>
<obj>/usr/bin/radosgw</obj>
<fn>RGWSI_Notify::do_start(optional_yield, DoutPrefixProvider const*)</fn>
</frame>
<frame>
<ip>0xACD4CD</ip>
<obj>/usr/bin/radosgw</obj>
<fn>RGWServiceInstance::start(optional_yield, DoutPrefixProvider const*)</fn>
</frame>
<frame>
<ip>0xADF5D0</ip>
<obj>/usr/bin/radosgw</obj>
<fn>RGWServices_Def::init(ceph::common::CephContext*, rgw::sal::RadosStore*, bool, bool, bool, bool, optional_yield, DoutPrefixProvider const*)</fn>
</frame>
<frame>
<ip>0xAE068C</ip>
<obj>/usr/bin/radosgw</obj>
<fn>RGWServices::do_init(ceph::common::CephContext*, rgw::sal::RadosStore*, bool, bool, bool, bool, optional_yield, DoutPrefixProvider const*, rgw::SiteConfig const&)</fn>
</frame>
<frame>
<ip>0xA2E9FB</ip>
<obj>/usr/bin/radosgw</obj>
<fn>RGWRados::init_svc(bool, DoutPrefixProvider const*, bool, rgw::SiteConfig const&)</fn>
</frame>
<frame>
<ip>0xA33B35</ip>
<obj>/usr/bin/radosgw</obj>
<fn>RGWRados::init_begin(ceph::common::CephContext*, DoutPrefixProvider const*, bool, rgw::SiteConfig const&)</fn>
</frame>
<frame>
<ip>0x994828</ip>
<obj>/usr/bin/radosgw</obj>
<fn>DriverManager::init_storage_provider(DoutPrefixProvider const*, ceph::common::CephContext*, DriverManager::Config const&, boost::asio::io_context&, rgw::SiteConfig const&, bool, bool, bool, bool, bool, bool, bool, bool, bool, optional_yield)</fn>
</frame>
<frame>
<ip>0x5E1166</ip>
<obj>/usr/bin/radosgw</obj>
<fn>rgw::AppMain::init_storage()</fn>
</frame>
<frame>
<ip>0x5994DA</ip>
<obj>/usr/bin/radosgw</obj>
<fn>main</fn>
</frame>
</stack>
<auxwhat>Block was alloc'd at</auxwhat>
<stack>
<frame>
<ip>0x4846743</ip>
<obj>/usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so</obj>
<fn>operator new[](unsigned long)</fn>
<dir>/builddir/build/BUILD/valgrind-3.24.0/coregrind/m_replacemalloc</dir>
<file>vg_replace_malloc.c</file>
<line>729</line>
</frame>
<frame>
<ip>0x848A59</ip>
<obj>/usr/bin/radosgw</obj>
</frame>
<frame>
<ip>0xBF22EB</ip>
<obj>/usr/bin/radosgw</obj>
<fn>RGWSI_Notify::init_watch(DoutPrefixProvider const*, optional_yield)</fn>
</frame>
<frame>
<ip>0xBF45FE</ip>
<obj>/usr/bin/radosgw</obj>
<fn>RGWSI_Notify::do_start(optional_yield, DoutPrefixProvider const*)</fn>
</frame>
<frame>
<ip>0xACD4CD</ip>
<obj>/usr/bin/radosgw</obj>
<fn>RGWServiceInstance::start(optional_yield, DoutPrefixProvider const*)</fn>
</frame>
<frame>
<ip>0xADF5D0</ip>
<obj>/usr/bin/radosgw</obj>
<fn>RGWServices_Def::init(ceph::common::CephContext*, rgw::sal::RadosStore*, bool, bool, bool, bool, optional_yield, DoutPrefixProvider const*)</fn>
</frame>
<frame>
<ip>0xAE068C</ip>
<obj>/usr/bin/radosgw</obj>
<fn>RGWServices::do_init(ceph::common::CephContext*, rgw::sal::RadosStore*, bool, bool, bool, bool, optional_yield, DoutPrefixProvider const*, rgw::SiteConfig const&)</fn>
</frame>
<frame>
<ip>0xA2E9FB</ip>
<obj>/usr/bin/radosgw</obj>
<fn>RGWRados::init_svc(bool, DoutPrefixProvider const*, bool, rgw::SiteConfig const&)</fn>
</frame>
<frame>
<ip>0xA33B35</ip>
<obj>/usr/bin/radosgw</obj>
<fn>RGWRados::init_begin(ceph::common::CephContext*, DoutPrefixProvider const*, bool, rgw::SiteConfig const&)</fn>
</frame>
<frame>
<ip>0x994828</ip>
<obj>/usr/bin/radosgw</obj>
<fn>DriverManager::init_storage_provider(DoutPrefixProvider const*, ceph::common::CephContext*, DriverManager::Config const&, boost::asio::io_context&, rgw::SiteConfig const&, bool, bool, bool, bool, bool, bool, bool, bool, bool, optional_yield)</fn>
</frame>
<frame>
<ip>0x5E1166</ip>
<obj>/usr/bin/radosgw</obj>
<fn>rgw::AppMain::init_storage()</fn>
</frame>
<frame>
<ip>0x5994DA</ip>
<obj>/usr/bin/radosgw</obj>
<fn>main</fn>
</frame>
</stack>
<suppression>
<sname>insert_a_suppression_name_here</sname>
<skind>Memcheck:Addr8</skind>
<sframe> <fun>_ZN5boost4asio9execution6detail17any_executor_base14destroy_objectINS0_10io_context19basic_executor_typeISaIvELm4EEEEEvRS3_</fun> </sframe>
<sframe> <obj>/usr/bin/radosgw</obj> </sframe>
<sframe> <fun>_ZN8librados6detail7AsyncOpIvE12aio_dispatchEPvS3_</fun> </sframe>
<sframe> <obj>/usr/lib64/librados.so.2.0.0</obj> </sframe>
<sframe> <obj>/usr/lib64/librados.so.2.0.0</obj> </sframe>
<sframe> <obj>/usr/lib64/librados.so.2.0.0</obj> </sframe>
<sframe> <obj>/usr/lib64/librados.so.2.0.0</obj> </sframe>
<sframe> <obj>/usr/lib64/librados.so.2.0.0</obj> </sframe>
<sframe> <obj>/usr/lib64/libstdc++.so.6.0.29</obj> </sframe>
<sframe> <fun>start_thread</fun> </sframe>
<sframe> <fun>clone</fun> </sframe>
<rawtext>
<![CDATA[
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:_ZN5boost4asio9execution6detail17any_executor_base14destroy_objectINS0_10io_context19basic_executor_typeISaIvELm4EEEEEvRS3_
obj:/usr/bin/radosgw
fun:_ZN8librados6detail7AsyncOpIvE12aio_dispatchEPvS3_
obj:/usr/lib64/librados.so.2.0.0
obj:/usr/lib64/librados.so.2.0.0
obj:/usr/lib64/librados.so.2.0.0
obj:/usr/lib64/librados.so.2.0.0
obj:/usr/lib64/librados.so.2.0.0
obj:/usr/lib64/libstdc++.so.6.0.29
fun:start_thread
fun:clone
}
]]>
</rawtext>
</suppression>
</error>
probably caused by my https://github.com/ceph/ceph/pull/62538
CB Updated by Casey Bodley over 1 year ago
reproduced under vstart and got better traces:
~/ceph/build $ valgrind --tool=memcheck bin/radosgw-admin user modify --uid foo ==1552014== Memcheck, a memory error detector ==1552014== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al. ==1552014== Using Valgrind-3.24.0 and LibVEX; rerun with -h for copyright info ==1552014== Command: bin/radosgw-admin user modify --uid foo ==1552014== 2025-04-17T13:28:57.250-0400 8ab4680 -1 WARNING: all dangerous and experimental features are enabled. 2025-04-17T13:28:58.302-0400 8ab4680 -1 WARNING: all dangerous and experimental features are enabled. 2025-04-17T13:28:58.436-0400 8ab4680 -1 WARNING: all dangerous and experimental features are enabled. ==1552014== Thread 28 io_context_pool: ==1552014== Invalid read of size 8 ==1552014== at 0x16831C: boost::asio::io_context::basic_executor_type<std::allocator<void>, 4ul>::~basic_executor_type() (io_context.hpp:524) ==1552014== by 0x168406: void boost::asio::execution::detail::any_executor_base::destroy_object<boost::asio::io_context::basic_executor_type<std::allocator<void>, 4ul> >(boost::asio::execution::detail::any_executor_base&) (any_executor.hpp:814) ==1552014== by 0x213988: ~any_executor_base (any_executor.hpp:578) ==1552014== by 0x213988: ~any_executor (any_executor.hpp:1420) ==1552014== by 0x213988: ~any_io_executor (any_io_executor.ipp:80) ==1552014== by 0x213988: boost::asio::executor_work_guard<boost::asio::any_io_executor, void, void>::~executor_work_guard() (executor_work_guard.hpp:202) ==1552014== by 0x7919AC: ~pair (stl_pair.h:284) ==1552014== by 0x7919AC: ceph::async::detail::CompletionImpl<boost::asio::any_io_executor, boost::asio::detail::spawn_handler<boost::asio::any_io_executor, void (boost::system::error_code, unsigned long), void>, librados::detail::AsyncOp<void>, boost::system::error_code, unsigned long>::destroy_dispatch(std::tuple<boost::system::error_code, unsigned long>&&) (completion.h:215) ==1552014== by 0x214832: void ceph::async::Completion<void (boost::system::error_code, unsigned long), librados::detail::AsyncOp<void> >::dispatch<boost::system::error_code&, unsigned long&>(std::unique_ptr<ceph::async::Completion<void (boost::system::error_code, unsigned long), librados::detail::AsyncOp<void> >, std::default_delete<ceph::async::Completion<void (boost::system::error_code, unsigned long), librados::detail::AsyncOp<void> > > >&&, boost::system::error_code&, unsigned long&) (completion.h:283) ==1552014== by 0x214855: void ceph::async::dispatch<void (boost::system::error_code, unsigned long), librados::detail::AsyncOp<void>, boost::system::error_code&, unsigned long&>(std::unique_ptr<ceph::async::Completion<void (boost::system::error_code, unsigned long), librados::detail::AsyncOp<void> >, std::default_delete<ceph::async::Completion<void (boost::system::error_code, unsigned long), librados::detail::AsyncOp<void> > > >&&, boost::system::error_code&, unsigned long&) (completion.h:320) ==1552014== by 0x2148FE: dispatch<std::unique_ptr<ceph::async::Completion<void(boost::system::error_code, long unsigned int), librados::detail::AsyncOp<void> >, std::default_delete<ceph::async::Completion<void(boost::system::error_code, long unsigned int), librados::detail::AsyncOp<void> > > > > (librados_asio.h:74) ==1552014== by 0x2148FE: librados::detail::AsyncOp<void>::aio_dispatch(void*, void*) (librados_asio.h:100) ==1552014== by 0x49EE09B: librados::CB_AioComplete::operator()() (AioCompletionImpl.h:140) ==1552014== by 0x49F814F: operator() (bind_handler.hpp:56) ==1552014== by 0x49F814F: boost::asio::detail::executor_op<boost::asio::detail::binder0<librados::CB_AioComplete>, std::allocator<void>, boost::asio::detail::scheduler_operation>::do_complete(void*, boost::asio::detail::scheduler_operation*, boost::system::error_code const&, unsigned long) (executor_op.hpp:70) ==1552014== by 0x49EC838: complete (scheduler_operation.hpp:40) ==1552014== by 0x49EC838: boost::asio::detail::strand_executor_service::run_ready_handlers(std::shared_ptr<boost::asio::detail::strand_executor_service::strand_impl>&) (strand_executor_service.ipp:150) ==1552014== by 0x49F9EA9: boost::asio::detail::strand_executor_service::invoker<boost::asio::io_context::basic_executor_type<std::allocator<void>, 0ul> const, void>::operator()() (strand_executor_service.hpp:121) ==1552014== by 0x49FA753: boost::asio::detail::executor_op<boost::asio::detail::strand_executor_service::invoker<boost::asio::io_context::basic_executor_type<std::allocator<void>, 0ul> const, void>, std::allocator<void>, boost::asio::detail::scheduler_operation>::do_complete(void*, boost::asio::detail::scheduler_operation*, boost::system::error_code const&, unsigned long) (executor_op.hpp:70) ==1552014== Address 0x1b7a3af0 is 96 bytes inside a block of size 112 free'd ==1552014== at 0x4845BB8: operator delete(void*, unsigned long) (vg_replace_malloc.c:1181) ==1552014== by 0x813EDD: ceph::async::detail::sync_spawn_throttle_impl::~sync_spawn_throttle_impl() (spawn_throttle_impl.h:195) ==1552014== by 0x813585: void boost::sp_adl_block::intrusive_ptr_release<ceph::async::detail::spawn_throttle_impl, boost::sp_adl_block::thread_unsafe_counter>(boost::sp_adl_block::intrusive_ref_counter<ceph::async::detail::spawn_throttle_impl, boost::sp_adl_block::thread_unsafe_counter> const*) (intrusive_ref_counter.hpp:172) ==1552014== by 0x8135B9: ~intrusive_ptr (intrusive_ptr.hpp:75) ==1552014== by 0x8135B9: ceph::async::spawn_throttle::~spawn_throttle() (spawn_throttle.h:80) ==1552014== by 0x80F77F: RGWSI_Notify::init_watch(DoutPrefixProvider const*, optional_yield) (svc_notify.cc:231) ==1552014== by 0x80F9E3: RGWSI_Notify::do_start(optional_yield, DoutPrefixProvider const*) (svc_notify.cc:271) ==1552014== by 0x71E5E0: RGWServiceInstance::start(optional_yield, DoutPrefixProvider const*) (rgw_service.cc:313) ==1552014== by 0x72012E: RGWServices_Def::init(ceph::common::CephContext*, rgw::sal::RadosStore*, bool, bool, bool, bool, optional_yield, DoutPrefixProvider const*) (rgw_service.cc:124) ==1552014== by 0x721B36: RGWServices::do_init(ceph::common::CephContext*, rgw::sal::RadosStore*, bool, bool, bool, bool, optional_yield, DoutPrefixProvider const*, rgw::SiteConfig const&) (rgw_service.cc:270) ==1552014== by 0x67DDBE: init (rgw_service.h:153) ==1552014== by 0x67DDBE: RGWRados::init_svc(bool, DoutPrefixProvider const*, bool, rgw::SiteConfig const&) (rgw_rados.cc:1428) ==1552014== by 0x686F48: RGWRados::init_begin(ceph::common::CephContext*, DoutPrefixProvider const*, bool, rgw::SiteConfig const&) (rgw_rados.cc:1451) ==1552014== by 0x3D44E3: DriverManager::init_storage_provider(DoutPrefixProvider const*, ceph::common::CephContext*, DriverManager::Config const&, boost::asio::io_context&, rgw::SiteConfig const&, bool, bool, bool, bool, bool, bool, bool, bool, bool, optional_yield) (rgw_sal.cc:101) ==1552014== Block was alloc'd at ==1552014== at 0x4841FEC: operator new(unsigned long) (vg_replace_malloc.c:487) ==1552014== by 0x8154D3: ceph::async::detail::spawn_throttle_impl::create(optional_yield, unsigned long, ceph::async::cancel_on_error) (spawn_throttle_impl.h:356) ==1552014== by 0x80F4EA: spawn_throttle (spawn_throttle.h:65) ==1552014== by 0x80F4EA: RGWSI_Notify::init_watch(DoutPrefixProvider const*, optional_yield) (svc_notify.cc:181) ==1552014== by 0x80F9E3: RGWSI_Notify::do_start(optional_yield, DoutPrefixProvider const*) (svc_notify.cc:271) ==1552014== by 0x71E5E0: RGWServiceInstance::start(optional_yield, DoutPrefixProvider const*) (rgw_service.cc:313) ==1552014== by 0x72012E: RGWServices_Def::init(ceph::common::CephContext*, rgw::sal::RadosStore*, bool, bool, bool, bool, optional_yield, DoutPrefixProvider const*) (rgw_service.cc:124) ==1552014== by 0x721B36: RGWServices::do_init(ceph::common::CephContext*, rgw::sal::RadosStore*, bool, bool, bool, bool, optional_yield, DoutPrefixProvider const*, rgw::SiteConfig const&) (rgw_service.cc:270) ==1552014== by 0x67DDBE: init (rgw_service.h:153) ==1552014== by 0x67DDBE: RGWRados::init_svc(bool, DoutPrefixProvider const*, bool, rgw::SiteConfig const&) (rgw_rados.cc:1428) ==1552014== by 0x686F48: RGWRados::init_begin(ceph::common::CephContext*, DoutPrefixProvider const*, bool, rgw::SiteConfig const&) (rgw_rados.cc:1451) ==1552014== by 0x3D44E3: DriverManager::init_storage_provider(DoutPrefixProvider const*, ceph::common::CephContext*, DriverManager::Config const&, boost::asio::io_context&, rgw::SiteConfig const&, bool, bool, bool, bool, bool, bool, bool, bool, bool, optional_yield) (rgw_sal.cc:101) ==1552014== by 0x12D394: get_storage (rgw_sal.h:1894) ==1552014== by 0x12D394: main (radosgw-admin.cc:4591)
JI Updated by J. Eric Ivancich over 1 year ago
- Backport set to reef squid tentacle
CB Updated by Casey Bodley over 1 year ago
- Status changed from New to Fix Under Review
- Pull request ID set to 64624
UB Updated by Upkeep Bot over 1 year ago
- Merge Commit set to a3fa930be5396731ebc7f55aa3f6691a132b952e
- Fixed In set to v20.3.0-2019-ga3fa930be5
- Upkeep Timestamp set to 2025-07-31T15:54:57+00:00
JI Updated by J. Eric Ivancich over 1 year ago
- Status changed from Fix Under Review to Pending Backport
UB Updated by Upkeep Bot over 1 year ago
- Copied to Backport #72467: squid: valgrind error: InvalidRead in RGWSI_Notify::init_watch() added
UB Updated by Upkeep Bot over 1 year ago
- Copied to Backport #72468: tentacle: valgrind error: InvalidRead in RGWSI_Notify::init_watch() added
UB Updated by Upkeep Bot over 1 year ago
- Copied to Backport #72469: reef: valgrind error: InvalidRead in RGWSI_Notify::init_watch() added
UB Updated by Upkeep Bot over 1 year ago
- Tags (freeform) changed from valgrind to valgrind backport_processed
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Backporting
- Upkeep Timestamp changed from 2025-07-31T15:54:57+00:00 to 2026-08-27T18:05:25+00:00
UB Updated by Upkeep Bot 3 months ago
- Tags (freeform) changed from valgrind backport_processed to valgrind
- Upkeep Timestamp changed from 2026-08-27T18:05:25+00:00 to 2026-08-28T01:51:25+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~2357
- Upkeep Timestamp changed from 2026-08-28T01:51:25+00:00 to 2026-10-24T01:23:05+00:00
UB Updated by Upkeep Bot 29 days ago
- Released In changed from v21.2.0~2357 to v21.2.0~2358
- Upkeep Timestamp changed from 2026-10-24T01:23:05+00:00 to 2026-11-04T01:11:13+00:00
Actions