Skip to contentSkip to conversation

dumpling integration : valgrind leak

DISCUSSION Loic Dachary 2 participants 3 messages Jan 30, 2015

lore
Share & tools
lore
#0 lore raw

Hi Sam,

I stumbled upon what seems to be a leak at http://pulpito.ceph.com/loic-2015-01-29_15:41:06-rados-dumpling-backports---basic-multi/730305/ and the valgrind xml file is at http://tracker.ceph.com/attachments/download/1610/v.txt

    <text>612 (584 direct, 28 indirect) bytes in 1 blocks are definitely lost in loss record 268 of 287</text>
      <fn>operator new(unsigned long)</fn>
      <fn>ReplicatedPG::get_object_context(hobject_t const&amp;, bool)</fn>
      <line>4585</line>
      <fn>ReplicatedPG::find_object_context(hobject_t const&amp;, ObjectContext**, bool, snapid_t*)</fn>
      <line>4658</line>
      <fn>ReplicatedPG::do_op(std::tr1::shared_ptr&lt;OpRequest&gt;)</fn>
      <line>835</line>
      <fn>PG::do_request(std::tr1::shared_ptr&lt;OpRequest&gt;, ThreadPool::TPHandle&amp;)</fn>
      <line>1455</line>
      <fn>OSD::dequeue_op(boost::intrusive_ptr&lt;PG&gt;, std::tr1::shared_ptr&lt;OpRequest&gt;, ThreadPool::TPHandle&amp;)</fn>
      <line>7169</line>
      <fn>OSD::OpWQ::_process(boost::intrusive_ptr&lt;PG&gt;, ThreadPool::TPHandle&amp;)</fn>
      <line>7141</line>
      <fn>ThreadPool::WorkQueueVal&lt;std::pair&lt;boost::intrusive_ptr&lt;PG&gt;, std::tr1::shared_ptr&lt;OpRequest&gt; &gt;, boost::intrusive_ptr&lt;PG&gt; &gt;::_void_process(void*, ThreadPool::TPHandle&amp;)</fn>
      <line>191</line>
      <fn>ThreadPool::worker(ThreadPool::WorkThread*)</fn>
      <line>128</line>
      <fn>ThreadPool::WorkThread::entry()</fn>
      <line>318</line>
      <fn>start_thread</fn>
      <line>312</line>
      <fn>clone</fn>
      <line>111</line>

A quick grep of get_object_context in redmine does not hit. Does it ring a bell ?

Cheers

dumpling backport inventory: http://tracker.ceph.com/issues/10560
ticket: http://tracker.ceph.com/issues/10697

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#1 lore raw

Yeah, that's probably new.
-Sam

Quoted 31 lines · Loic Dachary

Hi Sam,

I stumbled upon what seems to be a leak at http://pulpito.ceph.com/loic-2015-01-29_15:41:06-rados-dumpling-backports---basic-multi/730305/ and the valgrind xml file is at http://tracker.ceph.com/attachments/download/1610/v.txt

    <text>612 (584 direct, 28 indirect) bytes in 1 blocks are definitely lost in loss record 268 of 287</text>
      <fn>operator new(unsigned long)</fn>
      <fn>ReplicatedPG::get_object_context(hobject_t const&amp;, bool)</fn>
      <line>4585</line>
      <fn>ReplicatedPG::find_object_context(hobject_t const&amp;, ObjectContext**, bool, snapid_t*)</fn>
      <line>4658</line>
      <fn>ReplicatedPG::do_op(std::tr1::shared_ptr&lt;OpRequest&gt;)</fn>
      <line>835</line>
      <fn>PG::do_request(std::tr1::shared_ptr&lt;OpRequest&gt;, ThreadPool::TPHandle&amp;)</fn>
      <line>1455</line>
      <fn>OSD::dequeue_op(boost::intrusive_ptr&lt;PG&gt;, std::tr1::shared_ptr&lt;OpRequest&gt;, ThreadPool::TPHandle&amp;)</fn>
      <line>7169</line>
      <fn>OSD::OpWQ::_process(boost::intrusive_ptr&lt;PG&gt;, ThreadPool::TPHandle&amp;)</fn>
      <line>7141</line>
      <fn>ThreadPool::WorkQueueVal&lt;std::pair&lt;boost::intrusive_ptr&lt;PG&gt;, std::tr1::shared_ptr&lt;OpRequest&gt; &gt;, boost::intrusive_ptr&lt;PG&gt; &gt;::_void_process(void*, ThreadPool::TPHandle&amp;)</fn>
      <line>191</line>
      <fn>ThreadPool::worker(ThreadPool::WorkThread*)</fn>
      <line>128</line>
      <fn>ThreadPool::WorkThread::entry()</fn>
      <line>318</line>
      <fn>start_thread</fn>
      <line>312</line>
      <fn>clone</fn>
      <line>111</line>

A quick grep of get_object_context in redmine does not hit. Does it ring a bell ?

Quoted 8 lines

Cheers

dumpling backport inventory: http://tracker.ceph.com/issues/10560
ticket: http://tracker.ceph.com/issues/10697

--
Loïc Dachary, Artisan Logiciel Libre

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

After a little digging I found https://github.com/ceph/ceph/commit/02fae9fc54c10b5a932102bac43f32199d4cb612 which seems to be a plausible fix in dumpling also https://github.com/ceph/ceph/pull/3552. What do you think ?

Quoted 48 lines · Samuel Just

Yeah, that's probably new.
-Sam

Quoted 31 lines · Loic Dachary

Hi Sam,

I stumbled upon what seems to be a leak at http://pulpito.ceph.com/loic-2015-01-29_15:41:06-rados-dumpling-backports---basic-multi/730305/ and the valgrind xml file is at http://tracker.ceph.com/attachments/download/1610/v.txt

    <text>612 (584 direct, 28 indirect) bytes in 1 blocks are definitely lost in loss record 268 of 287</text>
      <fn>operator new(unsigned long)</fn>
      <fn>ReplicatedPG::get_object_context(hobject_t const&amp;, bool)</fn>
      <line>4585</line>
      <fn>ReplicatedPG::find_object_context(hobject_t const&amp;, ObjectContext**, bool, snapid_t*)</fn>
      <line>4658</line>
      <fn>ReplicatedPG::do_op(std::tr1::shared_ptr&lt;OpRequest&gt;)</fn>
      <line>835</line>
      <fn>PG::do_request(std::tr1::shared_ptr&lt;OpRequest&gt;, ThreadPool::TPHandle&amp;)</fn>
      <line>1455</line>
      <fn>OSD::dequeue_op(boost::intrusive_ptr&lt;PG&gt;, std::tr1::shared_ptr&lt;OpRequest&gt;, ThreadPool::TPHandle&amp;)</fn>
      <line>7169</line>
      <fn>OSD::OpWQ::_process(boost::intrusive_ptr&lt;PG&gt;, ThreadPool::TPHandle&amp;)</fn>
      <line>7141</line>
      <fn>ThreadPool::WorkQueueVal&lt;std::pair&lt;boost::intrusive_ptr&lt;PG&gt;, std::tr1::shared_ptr&lt;OpRequest&gt; &gt;, boost::intrusive_ptr&lt;PG&gt; &gt;::_void_process(void*, ThreadPool::TPHandle&amp;)</fn>
      <line>191</line>
      <fn>ThreadPool::worker(ThreadPool::WorkThread*)</fn>
      <line>128</line>
      <fn>ThreadPool::WorkThread::entry()</fn>
      <line>318</line>
      <fn>start_thread</fn>
      <line>312</line>
      <fn>clone</fn>
      <line>111</line>

A quick grep of get_object_context in redmine does not hit. Does it ring a bell ?

Quoted 8 lines

Cheers

dumpling backport inventory: http://tracker.ceph.com/issues/10560
ticket: http://tracker.ceph.com/issues/10697

--
Loïc Dachary, Artisan Logiciel Libre

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre