Project

General

Profile

Actions

Bug #57267

open

Valgrind reports memory "Leak_IndirectlyLost" errors on ceph-mon in "KeyServerData::get_caps"

Added by Laura Flores over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
medium-hanging-fruit
Backport:
pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

/a/yuriw-2022-08-19_20:57:42-rados-wip-yuri6-testing-2022-08-19-0940-pacific-distro-default-smithi/6981517/remote/smithi130/log/valgrind/mon.a.log.gz

<error>
  <unique>0xc0cc5e</unique>
  <tid>1</tid>
  <threadname>ceph-mon</threadname>
  <kind>Leak_IndirectlyLost</kind>
  <xwhat>
    <text>312 bytes in 13 blocks are indirectly lost in loss record 14 of 40</text>
    <leakedbytes>312</leakedbytes>
    <leakedblocks>13</leakedblocks>
  </xwhat>
  <stack>
    <frame>
      <ip>0x4C38B6F</ip>
      <obj>/usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so</obj>
      <fn>operator new[](unsigned long)</fn>
      <dir>/builddir/build/BUILD/valgrind-3.19.0/coregrind/m_replacemalloc</dir>
      <file>vg_replace_malloc.c</file>
      <line>640</line>
    </frame>
    <frame>
      <ip>0x54342C6</ip>
      <obj>/usr/lib64/ceph/libceph-common.so.2</obj>
      <fn>ceph::buffer::v15_2_0::ptr_node::cloner::operator()(ceph::buffer::v15_2_0::ptr_node const&amp;)</fn>
      <dir>/usr/src/debug/ceph-16.2.10-668.g67571cd8.el8.x86_64/src/common</dir>
      <file>buffer.cc</file>
      <line>2228</line>
    </frame>
    <frame>
      <ip>0x4EF972</ip>
      <obj>/usr/bin/ceph-mon</obj>
      <fn>clone_from</fn>
      <dir>/usr/src/debug/ceph-16.2.10-668.g67571cd8.el8.x86_64/src/include</dir>
      <file>buffer.h</file>
      <line>593</line>
    </frame>
    <frame>
      <ip>0x4EF972</ip>
      <obj>/usr/bin/ceph-mon</obj>
      <fn>operator=</fn>
      <dir>/usr/src/debug/ceph-16.2.10-668.g67571cd8.el8.x86_64/src/include</dir>
      <file>buffer.h</file>
      <line>964</line>
    </frame>
    <frame>
      <ip>0x4EF972</ip>
      <obj>/usr/bin/ceph-mon</obj>
      <fn>operator=</fn>
      <dir>/usr/src/debug/ceph-16.2.10-668.g67571cd8.el8.x86_64/src/include</dir>
      <file>buffer.h</file>
      <line>961</line>
    </frame>
    <frame>
      <ip>0x4EF972</ip>
      <obj>/usr/bin/ceph-mon</obj>
      <fn>KeyServerData::get_caps(ceph::common::CephContext*, EntityName const&amp;, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, AuthCapsInfo&amp;) const</fn>
      <dir>/usr/src/debug/ceph-16.2.10-668.g67571cd8.el8.x86_64/src/auth/cephx</dir>
      <file>CephxKeyServer.cc</file>
      <line>128</line>
    </frame>

...

    <frame>
      <ip>0x53F9800</ip>
      <obj>/usr/lib64/ceph/libceph-common.so.2</obj>
      <fn>ProtocolV2::handle_read_frame_segment(std::unique_ptr&lt;ceph::buffer::v15_2_0::ptr_node, ceph::buffer::v15_2_0::ptr_node::disposer&gt;&amp;&amp;, int)</fn>
      <dir>/usr/src/debug/ceph-16.2.10-668.g67571cd8.el8.x86_64/src/msg/async</dir>
      <file>ProtocolV2.cc</file>
      <line>1190</line>
    </frame>
    <frame>
      <ip>0x53E1F6B</ip>
      <obj>/usr/lib64/ceph/libceph-common.so.2</obj>
      <fn>ProtocolV2::run_continuation(Ct&lt;ProtocolV2&gt;&amp;)</fn>
      <dir>/usr/src/debug/ceph-16.2.10-668.g67571cd8.el8.x86_64/src/msg/async</dir>
      <file>ProtocolV2.cc</file>
      <line>47</line>
    </frame>
    <frame>
      <ip>0x53E214E</ip>
      <obj>/usr/lib64/ceph/libceph-common.so.2</obj>
      <fn>ProtocolV2::read_event()</fn>
      <dir>/usr/src/debug/ceph-16.2.10-668.g67571cd8.el8.x86_64/src/msg/async</dir>
      <file>ProtocolV2.cc</file>
      <line>479</line>
    </frame>
    <frame>
      <ip>0x53AA18B</ip>
      <obj>/usr/lib64/ceph/libceph-common.so.2</obj>
      <fn>AsyncConnection::process()</fn>
      <dir>/usr/src/debug/ceph-16.2.10-668.g67571cd8.el8.x86_64/src/msg/async</dir>
      <file>AsyncConnection.cc</file>
      <line>464</line>
    </frame>
    <frame>
      <ip>0x5404E15</ip>
      <obj>/usr/lib64/ceph/libceph-common.so.2</obj>
      <fn>EventCenter::process_events(unsigned int, std::chrono::duration&lt;unsigned long, std::ratio&lt;1l, 1000000000l&gt; &gt;*)</fn>
      <dir>/usr/src/debug/ceph-16.2.10-668.g67571cd8.el8.x86_64/src/msg/async</dir>
      <file>Event.cc</file>
      <line>449</line>
    </frame>
    <frame>
      <ip>0x540AA9B</ip>
      <obj>/usr/lib64/ceph/libceph-common.so.2</obj>
      <fn>operator()</fn>
      <dir>/usr/src/debug/ceph-16.2.10-668.g67571cd8.el8.x86_64/src/msg/async</dir>
      <file>Stack.cc</file>
      <line>53</line>
    </frame>
    <frame>
      <ip>0x540AA9B</ip>
      <obj>/usr/lib64/ceph/libceph-common.so.2</obj>
      <fn>std::_Function_handler&lt;void (), NetworkStack::add_thread(unsigned int)::{lambda()#1}&gt;::_M_invoke(std::_Any_data const&amp;)</fn>
      <dir>/usr/include/c++/8/bits</dir>
      <file>std_function.h</file>
      <line>297</line>
    </frame>
    <frame>
      <ip>0x10529BA2</ip>
      <obj>/usr/lib64/libstdc++.so.6.0.25</obj>
    </frame>
    <frame>
      <ip>0xFB7D1C9</ip>
      <obj>/usr/lib64/libpthread-2.28.so</obj>
      <fn>start_thread</fn>
    </frame>
    <frame>
      <ip>0x10DCFDD2</ip>
      <obj>/usr/lib64/libc-2.28.so</obj>
      <fn>clone</fn>
    </frame>
  </stack>
</error>

Another occurrence reported here: /a/yuriw-2022-06-15_18:29:33-rados-wip-yuri4-testing-2022-06-15-1000-pacific-distro-default-smithi/6881215

Actions #1

Updated by Radoslaw Zarzynski over 1 year ago

  • Assignee set to Radoslaw Zarzynski
  • Tags set to medium-hanging-fruit
Actions

Also available in: Atom PDF