Project

General

Profile

Actions

Bug #68655

closed

Valgrind reports memory "Leak_DefinitelyLost" errors.

Added by Shraddha Agrawal over 1 year ago. Updated about 1 year ago.

Status:
Won't Fix
Priority:
Normal
Target version:
-
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

Description

Valgrind reported the memory leak error in the following jobs:

/a/skanta-2024-10-05_10:36:55-rados-wip-bharath15-testing-2024-10-05-1105-quincy-distro-default-smithi/7934382

<error>
  <unique>0x93c0f</unique>
  <tid>1</tid>
  <kind>Leak_DefinitelyLost</kind>
  <xwhat>
    <text>8 bytes in 1 blocks are definitely lost in loss record 178 of 6,069</text>
    <leakedbytes>8</leakedbytes>
    <leakedblocks>1</leakedblocks>
  </xwhat>
  <stack>
    <frame>
      <ip>0x4846743</ip>
      <obj>/usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so</obj>
      <fn>operator new[](unsigned long)</fn>
      <dir>/builddir/build/BUILD/valgrind-3.23.0/coregrind/m_replacemalloc</dir>
      <file>vg_replace_malloc.c</file>
      <line>729</line>
    </frame>
    <frame>
      <ip>0xF476EF</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>rocksdb::VersionStorageInfo::VersionStorageInfo(rocksdb::InternalKeyComparator const*, rocksdb::Comparator const*, int, rocksdb::CompactionStyle, rocksdb::VersionStorageInfo*, bool)</fn>
      <dir>/usr/src/debug/ceph-17.2.7-1693.g00fa28fd.el9.x86_64/src/rocksdb/db</dir>
      <file>version_set.cc</file>
      <line>1724</line>
    </frame>
    <frame>
      <ip>0xF476EF</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>rocksdb::VersionStorageInfo::VersionStorageInfo(rocksdb::InternalKeyComparator const*, rocksdb::Comparator const*, int, rocksdb::CompactionStyle, rocksdb::VersionStorageInfo*, bool)</fn>
      <dir>/usr/src/debug/ceph-17.2.7-1693.g00fa28fd.el9.x86_64/src/rocksdb/db</dir>
      <file>version_set.cc</file>
      <line>1724</line>
    </frame>
    <frame>
      <ip>0xF47CDA</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>rocksdb::Version::Version(rocksdb::ColumnFamilyData*, rocksdb::VersionSet*, rocksdb::FileOptions const&amp;, rocksdb::MutableCFOptions, std::shared_ptr&lt;rocksdb::IOTracer&gt; const&amp;, unsigned long)</fn>
      <dir>/usr/src/debug/ceph-17.2.7-1693.g00fa28fd.el9.x86_64/src/rocksdb/db</dir>
      <file>version_set.cc</file>
      <line>1772</line>
    </frame>
    <frame>
      <ip>0xF5CB35</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>rocksdb::VersionSet::CreateColumnFamily(rocksdb::ColumnFamilyOptions const&amp;, rocksdb::VersionEdit const*)</fn>
      <dir>/usr/src/debug/ceph-17.2.7-1693.g00fa28fd.el9.x86_64/src/rocksdb/db</dir>
      <file>version_set.cc</file>
      <line>5764</line>
    </frame>
    <frame>
      <ip>0x106CDC2</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>rocksdb::VersionEditHandler::CreateCfAndInit(rocksdb::ColumnFamilyOptions const&amp;, rocksdb::VersionEdit const&amp;)</fn>
      <dir>/usr/src/debug/ceph-17.2.7-1693.g00fa28fd.el9.x86_64/src/rocksdb/db</dir>
      <file>version_edit_handler.cc</file>
      <line>409</line>
    </frame>
    <frame>
      <ip>0x106DDB0</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>rocksdb::VersionEditHandler::Initialize()</fn>
      <dir>/usr/src/debug/ceph-17.2.7-1693.g00fa28fd.el9.x86_64/src/rocksdb/db</dir>
      <file>version_edit_handler.cc</file>
      <line>143</line>
    </frame>
    <frame>
      <ip>0x105D34C</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>rocksdb::VersionEditHandlerBase::Iterate(rocksdb::log::Reader&amp;, rocksdb::Status*)</fn>
      <dir>/usr/src/debug/ceph-17.2.7-1693.g00fa28fd.el9.x86_64/src/rocksdb/db</dir>
      <file>version_edit_handler.cc</file>
      <line>26</line>
    </frame>
    <frame>
      <ip>0xF62926</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>rocksdb::VersionSet::Recover(std::vector&lt;rocksdb::ColumnFamilyDescriptor, std::allocator&lt;rocksdb::ColumnFamilyDescriptor&gt; &gt; const&amp;, bool, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;*)</fn>
      <dir>/usr/src/debug/ceph-17.2.7-1693.g00fa28fd.el9.x86_64/src/rocksdb/db</dir>
      <file>version_set.cc</file>
      <line>4752</line>
    </frame>
    <frame>
      <ip>0xEE4B15</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>rocksdb::DBImpl::Recover(std::vector&lt;rocksdb::ColumnFamilyDescriptor, std::allocator&lt;rocksdb::ColumnFamilyDescriptor&gt; &gt; const&amp;, bool, bool, bool, unsigned long*)</fn>
      <dir>/usr/src/debug/ceph-17.2.7-1693.g00fa28fd.el9.x86_64/src/rocksdb/db/db_impl</dir>
      <file>db_impl_open.cc</file>
      <line>473</line>
    </frame>
    <frame>
      <ip>0xEE7286</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>rocksdb::DBImpl::Open(rocksdb::DBOptions const&amp;, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, std::vector&lt;rocksdb::ColumnFamilyDescriptor, std::allocator&lt;rocksdb::ColumnFamilyDescriptor&gt; &gt; const&amp;, std::vector&lt;rocksdb::ColumnFamilyHandle*, std::allocator&lt;rocksdb::ColumnFamilyHandle*&gt; &gt;*, rocksdb::DB**, bool, bool)</fn>
      <dir>/usr/src/debug/ceph-17.2.7-1693.g00fa28fd.el9.x86_64/src/rocksdb/db/db_impl</dir>
      <file>db_impl_open.cc</file>
      <line>1554</line>
    </frame>
    <frame>
      <ip>0xEE85D8</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>rocksdb::DB::Open(rocksdb::DBOptions const&amp;, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, std::vector&lt;rocksdb::ColumnFamilyDescriptor, std::allocator&lt;rocksdb::ColumnFamilyDescriptor&gt; &gt; const&amp;, std::vector&lt;rocksdb::ColumnFamilyHandle*, std::allocator&lt;rocksdb::ColumnFamilyHandle*&gt; &gt;*, rocksdb::DB**)</fn>
      <dir>/usr/src/debug/ceph-17.2.7-1693.g00fa28fd.el9.x86_64/src/rocksdb/db/db_impl</dir>
      <file>db_impl_open.cc</file>
      <line>1448</line>
    </frame>
    <frame>
      <ip>0xE51CDD</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>RocksDBStore::do_open(std::ostream&amp;, bool, bool, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;)</fn>
      <dir>/usr/src/debug/ceph-17.2.7-1693.g00fa28fd.el9.x86_64/src/kv</dir>
      <file>RocksDBStore.cc</file>
      <line>1193</line>
    </frame>
    <frame>
      <ip>0x9F9972</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>BlueStore::_open_db(bool, bool, bool)</fn>
      <dir>/usr/src/debug/ceph-17.2.7-1693.g00fa28fd.el9.x86_64/src/os/bluestore</dir>
      <file>BlueStore.cc</file>
      <line>6724</line>
    </frame>
    <frame>
      <ip>0x9FBBEB</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>BlueStore::_open_db_and_around(bool, bool)</fn>
      <dir>/usr/src/debug/ceph-17.2.7-1693.g00fa28fd.el9.x86_64/src/os/bluestore</dir>
      <file>BlueStore.cc</file>
      <line>6430</line>
    </frame>
    <frame>
      <ip>0xA03B5F</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>BlueStore::_mount()</fn>
      <dir>/usr/src/debug/ceph-17.2.7-1693.g00fa28fd.el9.x86_64/src/os/bluestore</dir>
      <file>BlueStore.cc</file>
      <line>7720</line>
    </frame>
    <frame>
      <ip>0x5ADCFB</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>OSD::init()</fn>
      <dir>/usr/src/debug/ceph-17.2.7-1693.g00fa28fd.el9.x86_64/src/osd</dir>
      <file>OSD.cc</file>
      <line>3660</line>
    </frame>
    <frame>
      <ip>0x5067CC</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>main</fn>
      <dir>/usr/src/debug/ceph-17.2.7-1693.g00fa28fd.el9.x86_64/src</dir>
      <file>ceph_osd.cc</file>
      <line>726</line>
    </frame>
  </stack>
</error>

Related issues 1 (0 open1 closed)

Related to RADOS - Bug #52136: Valgrind reports memory "Leak_DefinitelyLost" errors.ResolvedNitzan Mordechai

Actions
Actions #1

Updated by Shraddha Agrawal over 1 year ago

  • Related to Bug #52136: Valgrind reports memory "Leak_DefinitelyLost" errors. added
Actions #2

Updated by Radoslaw Zarzynski over 1 year ago

  • Project changed from RADOS to bluestore
Actions #3

Updated by Shraddha Agrawal over 1 year ago

  • Assignee set to Shraddha Agrawal
Actions #4

Updated by Adam Kupczyk about 1 year ago

  • Status changed from New to Won't Fix

We are unable to fix RocksDB internal leaks.
Maybe suppression file?

Actions

Also available in: Atom PDF