Project

General

Profile

Actions

Bug #16457

closed

osd|messenger: valgrind leak of MOSDMap payload

Added by Patrick Donnelly almost 8 years ago. Updated almost 7 years ago.

Status:
Can't reproduce
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

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

Description

From: http://pulpito.ceph.com/pdonnell-2016-06-21_12:17:20-fs-wip-pdonnell-i16164---basic-smithi/269072/

<?xml version="1.0"?>

<valgrindoutput>

<protocolversion>4</protocolversion>
<protocoltool>memcheck</protocoltool>

<preamble>
  <line>Memcheck, a memory error detector</line>
  <line>Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.</line>
  <line>Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info</line>
  <line>Command: ceph-osd -f --cluster ceph -i 0</line>
</preamble>

<pid>10420</pid>
<ppid>10416</ppid>
<tool>memcheck</tool>

<args>
  <vargv>
    <exe>/usr/bin/valgrind.bin</exe>
    <arg>--trace-children=no</arg>
    <arg>--child-silent-after-fork=yes</arg>
    <arg>--num-callers=50</arg>
    <arg>--suppressions=/home/ubuntu/cephtest/valgrind.supp</arg>
    <arg>--xml=yes</arg>
    <arg>--xml-file=/var/log/ceph/valgrind/osd.0.log</arg>
    <arg>--time-stamp=yes</arg>
    <arg>--tool=memcheck</arg>
  </vargv>
  <argv>
    <exe>ceph-osd</exe>
    <arg>-f</arg>
    <arg>--cluster</arg>
    <arg>ceph</arg>
    <arg>-i</arg>
    <arg>0</arg>
  </argv>
</args>

<status>
  <state>RUNNING</state>
  <time>00:00:00:02.482 </time>
</status>

<status>
  <state>FINISHED</state>
  <time>00:00:14:52.771 </time>
</status>

<error>
  <unique>0x68</unique>
  <tid>1</tid>
  <kind>Leak_DefinitelyLost</kind>
  <xwhat>
    <text>16,667 (120 direct, 16,547 indirect) bytes in 1 blocks are definitely lost in loss record 105 of 106</text>
    <leakedbytes>16667</leakedbytes>
    <leakedblocks>1</leakedblocks>
  </xwhat>
  <stack>
    <frame>
      <ip>0x9F590E0</ip>
      <obj>/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so</obj>
      <fn>operator new(unsigned long)</fn>
    </frame>
    <frame>
      <ip>0x5133CC</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>allocate</fn>
      <dir>/usr/include/c++/4.8/ext</dir>
      <file>new_allocator.h</file>
      <line>104</line>
    </frame>
    <frame>
      <ip>0x5133CC</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>_M_get_node</fn>
      <dir>/usr/include/c++/4.8/bits</dir>
      <file>stl_tree.h</file>
      <line>370</line>
    </frame>
    <frame>
      <ip>0x5133CC</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>_M_create_node&lt;const std::piecewise_construct_t&amp;, std::tuple&lt;unsigned int const&amp;&gt;, std::tuple&lt;&gt; &gt;</fn>
      <dir>/usr/include/c++/4.8/bits</dir>
      <file>stl_tree.h</file>
      <line>403</line>
    </frame>
    <frame>
      <ip>0x5133CC</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>std::_Rb_tree_iterator&lt;std::pair&lt;unsigned int const, ceph::buffer::list&gt; &gt; std::_Rb_tree&lt;unsigned int, std::pair&lt;unsigned int const, ceph::buffer::list&gt;, std::_Select1st&lt;std::pair&lt;unsigned int const, ceph::buffer::list&gt; &gt;, std::less&lt;unsigned int&gt;, std::allocator&lt;std::pair&lt;unsigned int const, ceph::buffer::list&gt; &gt; &gt;::_M_emplace_hint_unique&lt;std::piecewise_construct_t const&amp;, std::tuple&lt;unsigned int const&amp;&gt;, std::tuple&lt;&gt; &gt;(std::_Rb_tree_const_iterator&lt;std::pair&lt;unsigned int const, ceph::buffer::list&gt; &gt;, std::piecewise_construct_t const&amp;, std::tuple&lt;unsigned int const&amp;&gt;&amp;&amp;, std::tuple&lt;&gt;&amp;&amp;)</fn>
      <dir>/usr/include/c++/4.8/bits</dir>
      <file>stl_tree.h</file>
      <line>1669</line>
    </frame>
    <frame>
      <ip>0x51382C</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>operator[]</fn>
      <dir>/usr/include/c++/4.8/bits</dir>
      <file>stl_map.h</file>
      <line>465</line>
    </frame>
    <frame>
      <ip>0x51382C</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>decode&lt;unsigned int, ceph::buffer::list&gt;</fn>
      <dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-10.2.0-2497-gcaa5a8b/src/./include</dir>
      <file>encoding.h</file>
      <line>687</line>
    </frame>
    <frame>
      <ip>0x51382C</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>MOSDMap::decode_payload()</fn>
      <dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-10.2.0-2497-gcaa5a8b/src/./messages</dir>
      <file>MOSDMap.h</file>
      <line>72</line>
    </frame>
    <frame>
      <ip>0xAAE586</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>decode_message(CephContext*, int, ceph_msg_header&amp;, ceph_msg_footer&amp;, ceph::buffer::list&amp;, ceph::buffer::list&amp;, ceph::buffer::list&amp;)</fn>
      <dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-10.2.0-2497-gcaa5a8b/src/msg</dir>
      <file>Message.cc</file>
      <line>767</line>
    </frame>
    <frame>
      <ip>0xC79F41</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>AsyncConnection::process()</fn>
      <dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-10.2.0-2497-gcaa5a8b/src/msg/async</dir>
      <file>AsyncConnection.cc</file>
      <line>817</line>
    </frame>
    <frame>
      <ip>0xC2044E</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>EventCenter::process_events(int)</fn>
      <dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-10.2.0-2497-gcaa5a8b/src/msg/async</dir>
      <file>Event.cc</file>
      <line>374</line>
    </frame>
    <frame>
      <ip>0xC0069F</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>Worker::entry()</fn>
      <dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-10.2.0-2497-gcaa5a8b/src/msg/async</dir>
      <file>AsyncMessenger.cc</file>
      <line>298</line>
    </frame>
    <frame>
      <ip>0xAE26181</ip>
      <obj>/lib/x86_64-linux-gnu/libpthread-2.19.so</obj>
      <fn>start_thread</fn>
      <dir>/build/eglibc-3GlaMS/eglibc-2.19/nptl</dir>
      <file>pthread_create.c</file>
      <line>312</line>
    </frame>
    <frame>
      <ip>0xCF5047C</ip>
      <obj>/lib/x86_64-linux-gnu/libc-2.19.so</obj>
      <fn>clone</fn>
      <dir>/build/eglibc-3GlaMS/eglibc-2.19/misc/../sysdeps/unix/sysv/linux/x86_64</dir>
      <file>clone.S</file>
      <line>111</line>
    </frame>
  </stack>
</error>

<errorcounts>
</errorcounts>

<suppcounts>
  <pair>
    <count>13</count>
    <name>osd: ignore ec plugin loading (FIXME SOMEDAY)</name>
  </pair>
  <pair>
    <count>64</count>
    <name>ignore libnss3 leaks</name>
  </pair>
  <pair>
    <count>4</count>
    <name>libleveldb: ignore all dynamic libleveldb leaks</name>
  </pair>
</suppcounts>

</valgrindoutput>
Actions #1

Updated by Greg Farnum almost 8 years ago

  • Subject changed from osd|messenger: valgrind leak to osd|messenger: valgrind leak of MOSDMap payload
Actions #2

Updated by Josh Durgin almost 7 years ago

  • Status changed from New to Can't reproduce
Actions

Also available in: Atom PDF