Project

General

Profile

Bug #13345

OSD: UninitCondition when printing MOSDOp debug output

Added by Greg Farnum almost 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
OSD
Target version:
-
Start date:
10/02/2015
Due date:
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

I think this is a result of the optimized decoding. :(
http://pulpito.ceph.com/ubuntu-2015-10-01_23:29:00-fs-greg-fs-testing---basic-multi/1081801

<error>
  <unique>0x0</unique>
  <tid>98</tid>
  <kind>UninitCondition</kind>
  <what>Conditional jump or move depends on uninitialised value(s)</what>
  <stack>
    <frame>
      <ip>0x6F6BCDE</ip>
      <obj>/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19</obj>
      <fn>std::ostreambuf_iterator&lt;char, std::char_traits&lt;char&gt; &gt; std::num_put&lt;char, std::ostreambuf_iterator&lt;char, std::char_traits&lt;char&gt; &gt; &gt;::_M_insert_int&lt;long&gt;(std::ostreambuf_iterator&lt;char, std::char_traits&lt;char&gt; &gt;, std::ios_base&amp;, char, long) const</fn>
    </frame>
    <frame>
      <ip>0x6F6C2BC</ip>
      <obj>/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19</obj>
      <fn>std::num_put&lt;char, std::ostreambuf_iterator&lt;char, std::char_traits&lt;char&gt; &gt; &gt;::do_put(std::ostreambuf_iterator&lt;char, std::char_traits&lt;char&gt; &gt;, std::ios_base&amp;, char, long) const</fn>
    </frame>
    <frame>
      <ip>0x6F7806D</ip>
      <obj>/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19</obj>
      <fn>std::ostream&amp; std::ostream::_M_insert&lt;long&gt;(long)</fn>
    </frame>
    <frame>
      <ip>0x4FA0EC</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>MOSDOp::print(std::ostream&amp;) const</fn>
      <dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-9.0.3-2133-g466c6d5/src/./osd</dir>
      <file>osd_types.h</file>
      <line>117</line>
    </frame>
    <frame>
      <ip>0xA990D3</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>DispatchQueue::pre_dispatch(Message*)</fn>
      <dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-9.0.3-2133-g466c6d5/src/./msg</dir>
      <file>Message.h</file>
      <line>468</line>
    </frame>
    <frame>
      <ip>0xA99612</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>DispatchQueue::fast_dispatch(Message*)</fn>
      <dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-9.0.3-2133-g466c6d5/src/msg/simple</dir>
      <file>DispatchQueue.cc</file>
      <line>70</line>
    </frame>
...

<error>
  <unique>0x1</unique>
  <tid>98</tid>
  <kind>UninitValue</kind>
  <what>Use of uninitialised value of size 8</what>
  <stack>
    <frame>
      <ip>0x6F6BBC3</ip>
      <obj>/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19</obj>
    </frame>
    <frame>
      <ip>0x6F6BD05</ip>
      <obj>/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19</obj>
      <fn>std::ostreambuf_iterator&lt;char, std::char_traits&lt;char&gt; &gt; std::num_put&lt;char, std::ostreambuf_iterator&lt;char, std::char_traits&lt;char&gt; &gt; &gt;::_M_insert_int&lt;long&gt;(std::ostreambuf_iterator&lt;char, std::char_traits&lt;char&gt; &gt;, std::ios_base&amp;, char, long) const</fn>
    </frame>
    <frame>
      <ip>0x6F6C2BC</ip>
      <obj>/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19</obj>
      <fn>std::num_put&lt;char, std::ostreambuf_iterator&lt;char, std::char_traits&lt;char&gt; &gt; &gt;::do_put(std::ostreambuf_iterator&lt;char, std::char_traits&lt;char&gt; &gt;, std::ios_base&amp;, char, long) const</fn>
    </frame>
    <frame>
      <ip>0x6F7806D</ip>
      <obj>/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19</obj>
      <fn>std::ostream&amp; std::ostream::_M_insert&lt;long&gt;(long)</fn>
    </frame>
    <frame>
      <ip>0x4FA0EC</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>MOSDOp::print(std::ostream&amp;) const</fn>
      <dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-9.0.3-2133-g466c6d5/src/./osd</dir>
      <file>osd_types.h</file>
      <line>117</line>
    </frame>
    <frame>
      <ip>0xA990D3</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>DispatchQueue::pre_dispatch(Message*)</fn>
      <dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-9.0.3-2133-g466c6d5/src/./msg</dir>
      <file>Message.h</file>
      <line>468</line>
    </frame>
    <frame>
      <ip>0xA99612</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>DispatchQueue::fast_dispatch(Message*)</fn>
      <dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-9.0.3-2133-g466c6d5/src/msg/simple</dir>
      <file>DispatchQueue.cc</file>
      <line>70</line>

...

There's more output but it looks to be all in the same vein.

History

#1 Updated by Greg Farnum almost 4 years ago

  • Description updated (diff)

#2 Updated by Sage Weil almost 4 years ago

  • Assignee set to Sage Weil
  • Priority changed from High to Urgent

#3 Updated by Sage Weil almost 4 years ago

  • Status changed from New to Need Review

#4 Updated by Sage Weil almost 4 years ago

  • Status changed from Need Review to Testing

#5 Updated by Sage Weil almost 4 years ago

  • Status changed from Testing to Resolved

Also available in: Atom PDF