Project

General

Profile

Actions

Bug #37781

closed

mem leak in DaemonServer::send_report()

Added by Kefu Chai over 5 years ago. Updated over 5 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

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

Description

<error>
  <unique>0x6fd3</unique>
  <tid>1</tid>
  <threadname>ceph-mgr</threadname>
  <kind>Leak_DefinitelyLost</kind>
  <xwhat>
    <text>130,775 (24 direct, 130,751 indirect) bytes in 1 blocks are definitely lost in loss record 28,628 of 28,726</text>
    <leakedbytes>130775</leakedbytes>
    <leakedblocks>1</leakedblocks>
  </xwhat>
  <stack>
    <frame>
      <ip>0x4C2A243</ip>
      <obj>/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so</obj>
      <fn>operator new(unsigned long)</fn>
      <dir>/builddir/build/BUILD/valgrind-3.13.0/coregrind/m_replacemalloc</dir>
      <file>vg_replace_malloc.c</file>
      <line>334</line>
    </frame>
    <frame>
      <ip>0x53BE531</ip>
      <obj>/usr/lib64/ceph/libceph-common.so.1</obj>
      <fn>create&lt;const ceph::buffer::ptr&amp;, unsigned int&amp;, unsigned int&amp;&gt;</fn>
      <dir>/usr/src/debug/ceph-14.0.1-2079-g7c87113/src/include</dir>
      <file>buffer.h</file>
      <line>399</line>
    </frame>
    <frame>
      <ip>0x53BE531</ip>
      <obj>/usr/lib64/ceph/libceph-common.so.1</obj>
      <fn>ceph::buffer::list::append(ceph::buffer::ptr const&amp;, unsigned int, unsigned int)</fn>
      <dir>/usr/src/debug/ceph-14.0.1-2079-g7c87113/src/common</dir>
      <file>buffer.cc</file>
      <line>1462</line>
    </frame>
    <frame>
      <ip>0x53BEB5B</ip>
      <obj>/usr/lib64/ceph/libceph-common.so.1</obj>
      <fn>ceph::buffer::list::append(char const*, unsigned int)</fn>
      <dir>/usr/src/debug/ceph-14.0.1-2079-g7c87113/src/common</dir>
      <file>buffer.cc</file>
      <line>1421</line>
    </frame>
    <frame>
      <ip>0x54786D3</ip>
      <obj>/usr/lib64/ceph/libceph-common.so.1</obj>
      <fn>object_stat_sum_t::encode(ceph::buffer::list&amp;) const</fn>
      <dir>/usr/src/debug/ceph-14.0.1-2079-g7c87113/src/osd</dir>
      <file>osd_types.cc</file>
      <line>2199</line>
    </frame>
    <frame>
      <ip>0x5478E7E</ip>
      <obj>/usr/lib64/ceph/libceph-common.so.1</obj>
      <fn>object_stat_collection_t::encode(ceph::buffer::list&amp;) const</fn>
      <dir>/usr/src/debug/ceph-14.0.1-2079-g7c87113/src/osd</dir>
      <file>osd_types.cc</file>
      <line>2478</line>
    </frame>
    <frame>
      <ip>0x5479E7E</ip>
      <obj>/usr/lib64/ceph/libceph-common.so.1</obj>
      <fn>encode</fn>
      <dir>/usr/src/debug/ceph-14.0.1-2079-g7c87113/src/osd</dir>
      <file>osd_types.h</file>
      <line>1972</line>
    </frame>
    <frame>
      <ip>0x5479E7E</ip>
      <obj>/usr/lib64/ceph/libceph-common.so.1</obj>
      <fn>pool_stat_t::encode(ceph::buffer::list&amp;, unsigned long) const</fn>
      <dir>/usr/src/debug/ceph-14.0.1-2079-g7c87113/src/osd</dir>
      <file>osd_types.cc</file>
      <line>2917</line>
    </frame>
    <frame>
      <ip>0x1D90A9</ip>
      <obj>/usr/bin/ceph-mgr</obj>
      <fn>encode</fn>
      <dir>/usr/src/debug/ceph-14.0.1-2079-g7c87113/src/osd</dir>
      <file>osd_types.h</file>
      <line>2417</line>
    </frame>
    <frame>
      <ip>0x1D90A9</ip>
      <obj>/usr/bin/ceph-mgr</obj>
      <fn>encode&lt;int, pool_stat_t, std::hash&lt;int&gt;, std::equal_to&lt;int&gt;, mempool::pool_allocator&lt;(mempool::pool_index_t)17, std::pair&lt;int const, pool_stat_t&gt; &gt; &gt;</fn>
      <dir>/usr/src/debug/ceph-14.0.1-2079-g7c87113/src/include</dir>
      <file>encoding.h</file>
      <line>1160</line>
    </frame>
    <frame>
      <ip>0x1D90A9</ip>
      <obj>/usr/bin/ceph-mgr</obj>
      <fn>PGMapDigest::encode(ceph::buffer::list&amp;, unsigned long) const</fn>
      <dir>/usr/src/debug/ceph-14.0.1-2079-g7c87113/src/mon</dir>
      <file>PGMap.cc</file>
      <line>41</line>
    </frame>
    <frame>
      <ip>0x282538</ip>
      <obj>/usr/bin/ceph-mgr</obj>
      <fn>operator()</fn>
      <dir>/usr/src/debug/ceph-14.0.1-2079-g7c87113/src/mgr</dir>
      <file>DaemonServer.cc</file>
      <line>2214</line>
    </frame>
    <frame>
      <ip>0x282538</ip>
      <obj>/usr/bin/ceph-mgr</obj>
      <fn>with_osdmap&lt;DaemonServer::send_report()::&lt;lambda(PGMap&amp;)&gt;::&lt;lambda(const OSDMap&amp;)&gt; &gt;</fn>
      <dir>/usr/src/debug/ceph-14.0.1-2079-g7c87113/src/osdc</dir>
      <file>Objecter.h</file>
      <line>2057</line>
    </frame>
...

see /a/kchai-2019-01-03_01:34:33-rados-wip-kefu2-testing-2019-01-02-2221-distro-basic-smithi/3416676/remote/smithi115/log/valgrind/mgr.x.log.gz


Related issues 1 (0 open1 closed)

Is duplicate of mgr - Bug #37884: mgr leak of MMonMgrReport from DaemonServer::send_report()Can't reproduceKefu Chai

Actions
Actions #1

Updated by Sage Weil over 5 years ago

  • Status changed from New to Duplicate
Actions #2

Updated by Sage Weil over 5 years ago

  • Is duplicate of Bug #37884: mgr leak of MMonMgrReport from DaemonServer::send_report() added
Actions

Also available in: Atom PDF