Project

General

Profile

Actions

Bug #75212

closed
LF NM

Rocky10 - MismatchedFree leak coming from ceph::common::CephContext via ceph-mon

Bug #75212: Rocky10 - MismatchedFree leak coming from ceph::common::CephContext via ceph-mon

Added by Laura Flores 9 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Tags (freeform):
Fixed In:
v20.3.0-6292-ga4afb10007
Released In:
v21.2.0~978
Upkeep Timestamp:
2026-10-24T01:43:40+00:00
Tags:

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
}


Related issues 3 (2 open — 1 closed)

Related to Ceph QA - QA Run #75162: wip-rocky10-branch-of-the-day-2026-02-24-1771941190QA Testing

Actions
Related to Ceph QA - QA Run #75339: wip-rocky10-branch-of-the-day-2026-03-04-1772633736QA TestingYaarit Hatuka

Actions
Related to RADOS - Bug #74604: Rocky10 - MismatchedFree delete coming from ceph-osd-classic codeResolvedNitzan Mordechai

Actions

LF Updated by Laura Flores 9 months ago Actions #1

LF Updated by Laura Flores 9 months ago Actions #2

  • Description updated (diff)

LF Updated by Laura Flores 9 months ago Actions #3

  • Related to QA Run #75162: wip-rocky10-branch-of-the-day-2026-02-24-1771941190 added

RZ Updated by Radoslaw Zarzynski 9 months ago Actions #4

@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 Actions #5

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 Actions #6

  • Assignee set to Nitzan Mordechai
  • Pull request ID set to 67230

NM Updated by Nitzan Mordechai 9 months ago Actions #7

  • Status changed from New to Fix Under Review

NM Updated by Nitzan Mordechai 9 months ago Actions #8

/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 Actions #9

/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 Actions #10

  • Related to QA Run #75339: wip-rocky10-branch-of-the-day-2026-03-04-1772633736 added

NM Updated by Nitzan Mordechai 9 months ago Actions #11

/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 Actions #12

Thanks! Reapproved the PR.

RZ Updated by Radoslaw Zarzynski 9 months ago Actions #13

In QA.

UB Updated by Upkeep Bot 9 months ago Actions #14

  • 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 Actions #15

  • Related to Bug #74604: Rocky10 - MismatchedFree delete coming from ceph-osd-classic code added

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

  • 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
Actions

Also available in: PDF Atom