Project

General

Profile

Actions

Bug #50299

closed

PrimaryLogPG::inc_refcount_by_set leak

Added by Sage Weil about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
Target version:
-
% Done:

0%

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

Description

  <kind>Leak_DefinitelyLost</kind>
  <xwhat>
    <text>32 bytes in 1 blocks are definitely lost in loss record 7 of 33</text>
    <leakedbytes>32</leakedbytes>
    <leakedblocks>1</leakedblocks>
  </xwhat>
  <stack>
    <frame>
      <ip>0x4C31C93</ip>
      <obj>/usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so</obj>
      <fn>operator new[](unsigned long)</fn>
      <dir>/builddir/build/BUILD/valgrind-3.16.0/coregrind/m_replacemalloc</dir>
      <file>vg_replace_malloc.c</file>
      <line>431</line>
    </frame>
    <frame>
      <ip>0x8D6199</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>PrimaryLogPG::inc_refcount_by_set(PrimaryLogPG::OpContext*, object_manifest_t&amp;, OSDOp&amp;)</fn>
      <dir>/usr/src/debug/ceph-17.0.0-3058.g215b4290.el8.x86_64/src/osd</dir>
      <file>PrimaryLogPG.cc</file>
      <line>3542</line>
    </frame>
    <frame>
      <ip>0x91AFBE</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>PrimaryLogPG::do_osd_ops(PrimaryLogPG::OpContext*, std::vector&lt;OSDOp, std::allocator&lt;OSDOp&gt; &gt;&amp;)</fn>
      <dir>/usr/src/debug/ceph-17.0.0-3058.g215b4290.el8.x86_64/src/osd</dir>
      <file>PrimaryLogPG.cc</file>
      <line>7222</line>
    </frame>
    <frame>
      <ip>0x922366</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>PrimaryLogPG::prepare_transaction(PrimaryLogPG::OpContext*)</fn>
      <dir>/usr/src/debug/ceph-17.0.0-3058.g215b4290.el8.x86_64/src/osd</dir>
      <file>PrimaryLogPG.cc</file>
      <line>8800</line>
    </frame>
    <frame>
      <ip>0x92444C</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>PrimaryLogPG::execute_ctx(PrimaryLogPG::OpContext*)</fn>
      <dir>/usr/src/debug/ceph-17.0.0-3058.g215b4290.el8.x86_64/src/osd</dir>
      <file>PrimaryLogPG.cc</file>
      <line>4139</line>
    </frame>
    <frame>
      <ip>0x92DDCE</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>PrimaryLogPG::do_op(boost::intrusive_ptr&lt;OpRequest&gt;&amp;)</fn>
      <dir>/usr/src/debug/ceph-17.0.0-3058.g215b4290.el8.x86_64/src/osd</dir>
      <file>PrimaryLogPG.cc</file>
      <line>2450</line>
    </frame>
    <frame>
      <ip>0x934FCB</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>PrimaryLogPG::do_request(boost::intrusive_ptr&lt;OpRequest&gt;&amp;, ThreadPool::TPHandle&amp;)</fn>
      <dir>/usr/src/debug/ceph-17.0.0-3058.g215b4290.el8.x86_64/src/osd</dir>
      <file>PrimaryLogPG.cc</file>
      <line>1868</line>
    </frame>
    <frame>
      <ip>0x7BF628</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>OSD::dequeue_op(boost::intrusive_ptr&lt;PG&gt;, boost::intrusive_ptr&lt;OpRequest&gt;, ThreadPool::TPHandle&amp;)</fn>
      <dir>/usr/src/debug/ceph-17.0.0-3058.g215b4290.el8.x86_64/src/osd</dir>
      <file>OSD.cc</file>
      <line>9808</line>
    </frame>
    <frame>
      <ip>0xA1EEE7</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>ceph::osd::scheduler::PGOpItem::run(OSD*, OSDShard*, boost::intrusive_ptr&lt;PG&gt;&amp;, ThreadPool::TPHandle&amp;)</fn>
      <dir>/usr/src/debug/ceph-17.0.0-3058.g215b4290.el8.x86_64/src/osd/scheduler</dir>
      <file>OpSchedulerItem.cc</file>
      <line>32</line>
    </frame>
    <frame>
      <ip>0x7DC897</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>run</fn>
      <dir>/usr/src/debug/ceph-17.0.0-3058.g215b4290.el8.x86_64/src/osd/scheduler</dir>
      <file>OpSchedulerItem.h</file>
      <line>148</line>
    </frame>
    <frame>
      <ip>0x7DC897</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>OSD::ShardedOpWQ::_process(unsigned int, ceph::heartbeat_handle_d*)</fn>
      <dir>/usr/src/debug/ceph-17.0.0-3058.g215b4290.el8.x86_64/src/osd</dir>
      <file>OSD.cc</file>
      <line>10937</line>
    </frame>
    <frame>
      <ip>0xE689D3</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>ShardedThreadPool::shardedthreadpool_worker(unsigned int)</fn>
      <dir>/usr/src/debug/ceph-17.0.0-3058.g215b4290.el8.x86_64/src/common</dir>
      <file>WorkQueue.cc</file>
      <line>311</line>
    </frame>
    <frame>
      <ip>0xE69D73</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>ShardedThreadPool::WorkThreadSharded::entry()</fn>
      <dir>/usr/src/debug/ceph-17.0.0-3058.g215b4290.el8.x86_64/src/common</dir>
      <file>WorkQueue.h</file>
      <line>643</line>
    </frame>
...

/a/sage-2021-04-11_18:10:10-rados-wip-sage-testing-2021-04-10-1639-distro-basic-smithi/6036629
/a/sage-2021-04-11_18:10:10-rados-wip-sage-testing-2021-04-10-1639-distro-basic-smithi/6036800

Related issues 1 (0 open1 closed)

Has duplicate RADOS - Bug #50396: leak in PrimaryLogPG::inc_refcount_by_setDuplicate

Actions
Actions #1

Updated by Sage Weil about 3 years ago

  • Description updated (diff)
Actions #2

Updated by Neha Ojha about 3 years ago

/a/nojha-2021-04-15_20:05:27-rados-wip-50217-distro-basic-smithi/6049402

Actions #3

Updated by Neha Ojha about 3 years ago

  • Assignee set to Myoungwon Oh
Actions #4

Updated by Kefu Chai about 3 years ago

/a/kchai-2021-04-15_08:31:03-rados-wip-kefu-testing-2021-04-15-1359-distro-basic-smithi/6048611

Actions #5

Updated by Kefu Chai about 3 years ago

  • Priority changed from Normal to High
Actions #6

Updated by Myoungwon Oh about 3 years ago

  • Priority changed from High to Normal

I'll take a look.

Actions #7

Updated by Myoungwon Oh about 3 years ago

  • Priority changed from Normal to High
Actions #8

Updated by Kefu Chai about 3 years ago

created https://github.com/ceph/ceph/pull/40878 on my way looking into this issue.

Actions #10

Updated by Kefu Chai about 3 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 40879
Actions #11

Updated by Neha Ojha about 3 years ago

  • Has duplicate Bug #50396: leak in PrimaryLogPG::inc_refcount_by_set added
Actions #12

Updated by Kefu Chai about 3 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF