Bug #75212
closedRocky10 - MismatchedFree leak coming from ceph::common::CephContext via ceph-mon
0%
Description
Seen in these three jobs:
/a/nmordech-2026-02-25_11:36:23-rados-wip-rocky10-branch-of-the-day-2026-02-24-1771941190-distro-default-trial
3 jobs: ['70160', '70011', '70064']
The error frame was very long, but here is what seems to be the most relevant part:
<frame>
<ip>0x569D98C</ip>
<obj>/usr/lib64/ceph/libceph-common.so.2</obj>
<fn>UnknownInlinedFun</fn>
<dir>/usr/include/c++/14/bits</dir>
<file>stl_map.h</file>
<line>1183</line>
</frame>
<frame>
<ip>0x569D98C</ip>
<obj>/usr/lib64/ceph/libceph-common.so.2</obj>
<fn>ceph::common::CephContext::~CephContext()</fn>
<dir>/usr/src/debug/ceph-20.3.0-5580.g506b402a.el10.x86_64/src/common</dir>
<file>ceph_context.cc</file>
<line>833</line>
</frame>
<frame>
<ip>0x569DDC2</ip>
<obj>/usr/lib64/ceph/libceph-common.so.2</obj>
<fn>UnknownInlinedFun</fn>
<dir>/usr/src/debug/ceph-20.3.0-5580.g506b402a.el10.x86_64/src/common</dir>
<file>ceph_context.cc</file>
<line>890</line>
</frame>
<frame>
<ip>0x569DDC2</ip>
<obj>/usr/lib64/ceph/libceph-common.so.2</obj>
<fn>ceph::common::CephContext::put()</fn>
<dir>/usr/src/debug/ceph-20.3.0-5580.g506b402a.el10.x86_64/src/common</dir>
<file>ceph_context.cc</file>
<line>884</line>
</frame>
<frame>
And here is the suppression that was generated for it:
{
<insert_a_suppression_name_here>
Memcheck:Free
fun:_ZdaPvmSt11align_val_t
fun:UnknownInlinedFun
fun:UnknownInlinedFun
fun:UnknownInlinedFun
fun:UnknownInlinedFun
fun:UnknownInlinedFun
fun:_ZNSt8_Rb_treeISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10type_indexES0_IKS8_N4ceph12immobile_anyILm576EEEESt10_Select1stISD_ENSA_6common11CephContext19associated_objs_cmpESaISD_EE8_M_eraseEPSt13_Rb_tree_nodeISD_E.isra.0
fun:_ZNSt8_Rb_treeISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10type_indexES0_IKS8_N4ceph12immobile_anyILm576EEEESt10_Select1stISD_ENSA_6common11CephContext19associated_objs_cmpESaISD_EE8_M_eraseEPSt13_Rb_tree_nodeISD_E.isra.0
fun:UnknownInlinedFun
fun:UnknownInlinedFun
fun:_ZN4ceph6common11CephContextD1Ev
fun:UnknownInlinedFun
fun:_ZN4ceph6common11CephContext3putEv
fun:UnknownInlinedFun
fun:UnknownInlinedFun
fun:main
}
LF Updated by Laura Flores 9 months ago
In the same job, I also saw the leak documented in https://tracker.ceph.com/issues/74604 on the osds.
LF Updated by Laura Flores 9 months ago
- Description updated (diff)
LF Updated by Laura Flores 9 months ago
- Related to QA Run #75162: wip-rocky10-branch-of-the-day-2026-02-24-1771941190 added
RZ Updated by Radoslaw Zarzynski 9 months ago
@Nitzan Mordechai: isn't this just another symptom of the problem that was happening at OSDs (https://tracker.ceph.com/issues/74604) with the difference being just about inlining?
NM Updated by Nitzan Mordechai 9 months ago
Most likely, gcc14 and align_val_t, valgrind will show a mismatch during free. I'll add it to that PR
NM Updated by Nitzan Mordechai 9 months ago
- Assignee set to Nitzan Mordechai
- Pull request ID set to 67230
NM Updated by Nitzan Mordechai 9 months ago
- Status changed from New to Fix Under Review
NM Updated by Nitzan Mordechai 9 months ago
/a/yaarit-2026-03-05_03:07:52-rados-wip-rocky10-branch-of-the-day-2026-03-04-1772624857-tentacle-distro-default-trial/
3 jobs: ['86481', '86629', '86682']
LF Updated by Laura Flores 9 months ago
/a/yaarit-2026-03-05_02:43:32-rados-wip-rocky10-branch-of-the-day-2026-03-04-1772633736-distro-default-trial/86266
LF Updated by Laura Flores 9 months ago
- Related to QA Run #75339: wip-rocky10-branch-of-the-day-2026-03-04-1772633736 added
NM Updated by Nitzan Mordechai 9 months ago
/a/yuriw-2026-03-07_15:37:55-rados-wip-rocky10-branch-of-the-day-2026-03-06-1772840606-distro-default-trial/93243/remote/trial016/log/valgrind/mon.a.log.gz
Another flavor of that issue this time:
{
<insert_a_suppression_name_here>
Memcheck:Free
fun:_ZdaPvSt11align_val_t
fun:__cxa_finalize
obj:/usr/lib64/ceph/libceph-common.so.2
fun:_dl_call_fini
fun:_dl_fini
fun:__run_exit_handlers
fun:exit
fun:(below main)
}
i'll add it to the PR as well
RZ Updated by Radoslaw Zarzynski 9 months ago
Thanks! Reapproved the PR.
RZ Updated by Radoslaw Zarzynski 9 months ago
In QA.
UB Updated by Upkeep Bot 9 months ago
- Status changed from Fix Under Review to Resolved
- Merge Commit set to a4afb1000716a2cc2695561ae23cc17fc4dc8b56
- Fixed In set to v20.3.0-6292-ga4afb10007
- Upkeep Timestamp set to 2026-03-20T21:56:32+00:00
YH Updated by Yaarit Hatuka 8 months ago
- Related to Bug #74604: Rocky10 - MismatchedFree delete coming from ceph-osd-classic code added
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~978
- Upkeep Timestamp changed from 2026-03-20T21:56:32+00:00 to 2026-10-24T01:43:40+00:00